summaryrefslogtreecommitdiff
path: root/bfd/elf-vxworks.c
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
commitafed677ebad48e0046e93c1e8c374f4a48e13672 (patch)
tree8482c7ee63f16033a8a1d158cf54ccf40727beb8 /bfd/elf-vxworks.c
parent3581df0206daf52f570ad020ddc2e117ad4f17f5 (diff)
downloadbinutils-redhat-afed677ebad48e0046e93c1e8c374f4a48e13672.tar.gz
* elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
relocs too.
Diffstat (limited to 'bfd/elf-vxworks.c')
-rw-r--r--bfd/elf-vxworks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf-vxworks.c b/bfd/elf-vxworks.c
index 5b673f2a8e..27660eb467 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