* elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 11 Apr 2007 12:02:32 +0000 (12:02 +0000)
committerNathan Sidwell <nathan@codesourcery.com>
Wed, 11 Apr 2007 12:02:32 +0000 (12:02 +0000)
relocs too.

bfd/ChangeLog
bfd/elf-vxworks.c

index b2eff80b524f5d521fa46a355dfe2f7939b0d694..45269778a7b52e1d4174a23015fcf40c48415bff 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-11  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
+       relocs too.
+
 2007-04-10  Richard Henderson  <rth@redhat.com>
 
        * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip.
index 5b673f2a8e8402682fed35c6332311220f5fb6fb..27660eb4678d2e20643fb2a3e4989d75d4b0b00e 100644 (file)
@@ -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