From: Nathan Sidwell Date: Wed, 11 Apr 2007 12:02:32 +0000 (+0000) Subject: * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot X-Git-Tag: binutils-2_18-branchpoint~1106 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8776bb8aa5a46ecab041559e96d5a10538710275;p=thirdparty%2Fbinutils-gdb.git * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot relocs too. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b2eff80b524..45269778a7b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-04-11 Nathan Sidwell + + * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot + relocs too. + 2007-04-10 Richard Henderson * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip. diff --git a/bfd/elf-vxworks.c b/bfd/elf-vxworks.c index 5b673f2a8e8..27660eb4678 100644 --- a/bfd/elf-vxworks.c +++ b/bfd/elf-vxworks.c @@ -170,7 +170,8 @@ elf_vxworks_emit_relocs (bfd *output_bfd, && *rel_hash && (*rel_hash)->def_dynamic && !(*rel_hash)->def_regular - && (*rel_hash)->root.type == bfd_link_hash_defined + && ((*rel_hash)->root.type == bfd_link_hash_defined + || (*rel_hash)->root.type == bfd_link_hash_weakdef) && (*rel_hash)->root.u.def.section->output_section != NULL) { /* This is a relocation from an executable or shared library