aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2000-11-27 11:08:15 +0000
committerPhil Blundell <philb@gnu.org>2000-11-27 11:08:15 +0000
commitbc7a577dc7781416ff8a6e8ea295c7999e1673a9 (patch)
treebbfb064ee993461f1baee3583449a245e99e542e /bfd
parent7f7e9482db3f4c15bcc4f2b341b6fc7244a418aa (diff)
downloadgdb-bc7a577dc7781416ff8a6e8ea295c7999e1673a9.zip
gdb-bc7a577dc7781416ff8a6e8ea295c7999e1673a9.tar.gz
gdb-bc7a577dc7781416ff8a6e8ea295c7999e1673a9.tar.bz2
2000-11-22 Philip Blundell <pb@futuretv.com>
* cofflink.c (_bfd_coff_generic_relocate_section): Don't object to weak undefined symbols.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/cofflink.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 3229922..99de567 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-22 Philip Blundell <pb@futuretv.com>
+
+ * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
+ weak undefined symbols.
+
2000-11-24 Nick Clifton <nickc@redhat.com>
* archures.c (bfd_mach_arm_5TE): Define.
diff --git a/bfd/cofflink.c b/bfd/cofflink.c
index 8c82596..05c0689 100644
--- a/bfd/cofflink.c
+++ b/bfd/cofflink.c
@@ -2937,6 +2937,9 @@ _bfd_coff_generic_relocate_section (output_bfd, info, input_bfd,
+ sec->output_offset);
}
+ else if (h->root.type == bfd_link_hash_undefweak)
+ val = 0;
+
else if (! info->relocateable)
{
if (! ((*info->callbacks->undefined_symbol)