aarch64: Check UNDEFWEAK_NO_DYNAMIC_RELOC
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 14 Oct 2017 17:23:48 +0000 (10:23 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 14 Oct 2017 17:24:04 +0000 (10:24 -0700)
commitddb7fd0f7b43e4c755c4b8c7752948e050363525
tree183ada9421a7f19d252ed59f68cfcf47e2121a9d
parent62cd30f167be56e68cb0a37789d400b47bbdbc6c
aarch64: 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
* elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Don't
generate dynamic relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is
true.
(elfNN_aarch64_allocate_dynrelocs): Discard dynamic relocations
if UNDEFWEAK_NO_DYNAMIC_RELOC is true.
bfd/ChangeLog
bfd/elfnn-aarch64.c
This page took 0.025862 seconds and 4 git commands to generate.