diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-14 10:27:33 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-14 10:32:46 -0700 |
commit | 95b03e4ad68e7a90f5096b47df595636344b783a (patch) | |
tree | 48aec6b6afbdb8bdb04fe5fa121c64897af76d40 /bfd/ChangeLog | |
parent | a3cd202aae50abe5a571fb8c186b6b6af68edce2 (diff) | |
download | gdb-95b03e4ad68e7a90f5096b47df595636344b783a.zip gdb-95b03e4ad68e7a90f5096b47df595636344b783a.tar.gz gdb-95b03e4ad68e7a90f5096b47df595636344b783a.tar.bz2 |
arm: Check UNDEFWEAK_NO_DYNAMIC_RELOC
Don't generate dynamic relocation against weak undefined symbol if it
is resolved to zero. FIXME: UNDEFWEAK_NO_DYNAMIC_RELOC may need to be
checked in more places.
PR ld/22269
* elf32-arm.c (elf32_arm_final_link_relocate): Don't generate
dynamic relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is true.
(allocate_dynrelocs_for_symbol): Discard dynamic relocations
if UNDEFWEAK_NO_DYNAMIC_RELOC is true.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0dc2f44a..849ce20 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,6 +1,14 @@ 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> PR ld/22269 + * elf32-arm.c (elf32_arm_final_link_relocate): Don't generate + dynamic relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is true. + (allocate_dynrelocs_for_symbol): Discard dynamic relocations + if UNDEFWEAK_NO_DYNAMIC_RELOC is true. + +2017-10-14 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/22269 * elf32-tilepro.c (allocate_dynrelocs): Discard dynamic relocations if UNDEFWEAK_NO_DYNAMIC_RELOC is true. (tilepro_elf_relocate_section): Don't generate dynamic |