]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
microblaze: Check UNDEFWEAK_NO_DYNAMIC_RELOC
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 14 Oct 2017 18:03:26 +0000 (11:03 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 14 Oct 2017 18:03:37 +0000 (11:03 -0700)
commit112fef4084ff0bdd6dd9aacca85f5fe62e1a5423
tree2184f891c0b33df3128fe5a3d5c6a552aa762d50
parent5056ba1d4df19006b873bc8e752f85fcc712b65b
microblaze: 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-microblaze.c (microblaze_elf_relocate_section): Don't
generate dynamic relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is
true.
(allocate_dynrelocs): Discard dynamic relocations if
UNDEFWEAK_NO_DYNAMIC_RELOC is true.
bfd/ChangeLog
bfd/elf32-microblaze.c