diff options
author | 2008-04-25 16:02:43 +0000 | |
---|---|---|
committer | 2008-04-25 16:02:43 +0000 | |
commit | fc2db3b82bf0731973ceb21b63921644ae537412 (patch) | |
tree | a41da89818b85da14e1253b8f9b379d139d42b18 /bfd/reloc16.c | |
parent | * amd64-tdep.c (amd64_get_longjmp_target): New. (diff) | |
download | binutils-gdb-fc2db3b82bf0731973ceb21b63921644ae537412.tar.gz binutils-gdb-fc2db3b82bf0731973ceb21b63921644ae537412.tar.bz2 binutils-gdb-fc2db3b82bf0731973ceb21b63921644ae537412.zip |
* reloc16.c (bfd_coff_reloc16_get_value): Add support for
undefined weak symbols.
Diffstat (limited to 'bfd/reloc16.c')
-rw-r--r-- | bfd/reloc16.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/reloc16.c b/bfd/reloc16.c index 4e3107fb937..b4087cbd58a 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) |