summaryrefslogtreecommitdiff
path: root/bfd/reloc16.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-04-25 16:02:43 +0000
committerNick Clifton <nickc@redhat.com>2008-04-25 16:02:43 +0000
commit05f6d2933db4ede02fe80b0ac1a6e68774ee012c (patch)
tree948ec40969c103191627660d0add4d2010856baa /bfd/reloc16.c
parentf12df8d172ecb46d4ad18aeae76bdc6c7299eb96 (diff)
downloadbinutils-redhat-05f6d2933db4ede02fe80b0ac1a6e68774ee012c.tar.gz
* reloc16.c (bfd_coff_reloc16_get_value): Add support for
undefined weak symbols.
Diffstat (limited to 'bfd/reloc16.c')
-rw-r--r--bfd/reloc16.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/reloc16.c b/bfd/reloc16.c
index 4e3107fb93..b4087cbd58 100644
--- a/bfd/reloc16.c
+++ b/bfd/reloc16.c
@@ -76,6 +76,10 @@ bfd_coff_reloc16_get_value (reloc, link_info, input_section)
else if (h != (struct bfd_link_hash_entry *) NULL
&& h->type == bfd_link_hash_common)
value = h->u.c.size;
+ else if (h != (struct bfd_link_hash_entry *) NULL
+ && h->type == bfd_link_hash_undefweak)
+ /* This is a GNU extension. */
+ value = 0;
else
{
if (!((*link_info->callbacks->undefined_symbol)