summaryrefslogtreecommitdiff
path: root/bfd/linker.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/linker.c')
-rw-r--r--bfd/linker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/linker.c b/bfd/linker.c
index 34f66d1e94a..5868b955d13 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -1604,6 +1604,7 @@ _bfd_generic_link_add_one_symbol (struct bfd_link_info *info,
/* Make a new weak undefined symbol. */
h->type = bfd_link_hash_undefweak;
h->u.undef.abfd = abfd;
+ h->u.undef.weak = abfd;
break;
case CDEF: