OSDN Git Service

* elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
authornathan <nathan>
Wed, 11 Apr 2007 12:02:32 +0000 (12:02 +0000)
committernathan <nathan>
Wed, 11 Apr 2007 12:02:32 +0000 (12:02 +0000)
relocs too.

bfd/ChangeLog
bfd/elf-vxworks.c

index b2eff80..4526977 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 5b673f2..27660eb 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