From fc2db3b82bf0731973ceb21b63921644ae537412 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 25 Apr 2008 16:02:43 +0000 Subject: [PATCH] * reloc16.c (bfd_coff_reloc16_get_value): Add support for undefined weak symbols. --- bfd/ChangeLog | 5 +++++ bfd/reloc16.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b5eb09d145c..d652d97e94d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-04-25 Jay Foad + + * reloc16.c (bfd_coff_reloc16_get_value): Add support for + undefined weak symbols. + 2008-04-25 Nick Clifton * po/vi.po: Updated Vietnamese translation. 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) -- 2.30.2