aboutsummaryrefslogtreecommitdiff
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
commit8776bb8aa5a46ecab041559e96d5a10538710275 (patch)
treed9e10fb8a2ff86e66e9e9b9f02bb8ca476f4b2e7 /bfd/elf-vxworks.c
parent8a3dae3ed03f381d0bf16cdea31243ee831159a4 (diff)
downloadfsf-binutils-gdb-8776bb8aa5a46ecab041559e96d5a10538710275.zip
fsf-binutils-gdb-8776bb8aa5a46ecab041559e96d5a10538710275.tar.gz
fsf-binutils-gdb-8776bb8aa5a46ecab041559e96d5a10538710275.tar.bz2
* 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 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