OSDN Git Service

* elflink.c (_bfd_elf_link_create_dynamic_sections): If the
authornickc <nickc>
Fri, 10 Jun 2011 14:04:23 +0000 (14:04 +0000)
committernickc <nickc>
Fri, 10 Jun 2011 14:04:23 +0000 (14:04 +0000)
commitf5c1e632f0a037fc228108266b6fc5d16ed466cc
tree408b0dbf6b9cd1fc46607836ecbb614f4e33fb1f
parent6ce03d1e610cda32a928bc7e02b152a1cf408971
* elflink.c (_bfd_elf_link_create_dynamic_sections): If the
backend does not provide a function for creating dynamic sections
then fail.
(bfd_elf_final_link): Issue a warning message if a dynamic section
has the SHT_NOTE type.
(bfd_elf_final_link): Do not look for dynamic strings in a section
that does not have the SHT_STRTAB type or the name .dynstr.
* elf32-arm.c (elf32_arm_finish_dynamic_sections): Fail if the got
section is not in the output binary.
* elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Likewise.

* ld-elf/elf.exp: Add test for linking a shared library with a
broken linker script that marks dynamic sections as being notes.
* ld-elf/note-3.s: New test source file.
* ld-elf/note-3.t: New test linker script.
* ld-elf/note-3.l: Expected output from the linker.
* lib/ld-lib.exp (run_ld_link_tests): Improve description.
bfd/ChangeLog
bfd/elf32-arm.c
bfd/elf32-hppa.c
bfd/elflink.c
bfd/linker.c
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/elf.exp
ld/testsuite/ld-elf/note-3.l [new file with mode: 0644]
ld/testsuite/ld-elf/note-3.s [new file with mode: 0644]
ld/testsuite/ld-elf/note-3.t [new file with mode: 0644]
ld/testsuite/lib/ld-lib.exp