aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-02-06 20:01:38 +0000
committerIan Lance Taylor <ian@airs.com>1995-02-06 20:01:38 +0000
commit8ed88239b4e44167abc75d9423596284de5a001d (patch)
tree6b6ca5ab9f69b98760c782a68508a5a8f2c76f8a /ld/ldlang.c
parent6c97aedf2686633d3e837802ce51ebe630f64056 (diff)
downloadgdb-8ed88239b4e44167abc75d9423596284de5a001d.zip
gdb-8ed88239b4e44167abc75d9423596284de5a001d.tar.gz
gdb-8ed88239b4e44167abc75d9423596284de5a001d.tar.bz2
* ldctor.c (ldctor_build_sets): Handle bfd_link_hah_defweak.
* ldexp.c (fold_name): Likewise. * ldlang.c (print_one_symbol): Likewise. (lang_finish): Likewise. * ldmain.c (multiple_common): Likewise. * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak renamed to bfd_link_hash_undefweak.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index c2b8e7d..bd71f2b 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1280,7 +1280,8 @@ PTR ptr;
{
asection * sec = (asection *)ptr;
- if (hash_entry->type == bfd_link_hash_defined)
+ if (hash_entry->type == bfd_link_hash_defined
+ || hash_entry->type == bfd_link_hash_defweak)
{
if (sec == hash_entry->u.def.section) {
print_section ("");
@@ -2149,7 +2150,8 @@ lang_finish ()
h = bfd_link_hash_lookup (link_info.hash, entry_symbol, false, false, true);
if (h != (struct bfd_link_hash_entry *) NULL
- && h->type == bfd_link_hash_defined)
+ && (h->type == bfd_link_hash_defined
+ || h->type == bfd_link_hash_defweak))
{
bfd_vma val;