aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2007-04-11 12:02:32 +0000
committerNathan Sidwell <nathan@codesourcery.com>2007-04-11 12:02:32 +0000
commit8776bb8aa5a46ecab041559e96d5a10538710275 (patch)
treed9e10fb8a2ff86e66e9e9b9f02bb8ca476f4b2e7
parent8a3dae3ed03f381d0bf16cdea31243ee831159a4 (diff)
downloadgdb-8776bb8aa5a46ecab041559e96d5a10538710275.zip
gdb-8776bb8aa5a46ecab041559e96d5a10538710275.tar.gz
gdb-8776bb8aa5a46ecab041559e96d5a10538710275.tar.bz2
* elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
relocs too.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf-vxworks.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b2eff80..4526977 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elf-vxworks.c b/bfd/elf-vxworks.c
index 5b673f2..27660eb 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