summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorPhil Blundell <pb@futuretv.com>2000-11-27 11:08:15 +0000
committerPhil Blundell <pb@futuretv.com>2000-11-27 11:08:15 +0000
commit58790f5bf25159ebf3a56acac1d75b745fc61b83 (patch)
treeb1177e9920d557840b0116e4569291f936c9cfae /bfd
parent1564d341916d26f75b4e77aded51af59dfd14932 (diff)
downloadgdb-58790f5bf25159ebf3a56acac1d75b745fc61b83.tar.gz
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 3229922c056..99de56774aa 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 8c825968dd5..05c0689ea94 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)