aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1997-02-01 20:28:38 +0000
committerJohn Polstra <jdp@FreeBSD.org>1997-02-01 20:28:38 +0000
commit725f849afd097978baabd39a9ecec9a4081a99cb (patch)
tree46a2c962129fca561544c702b10fee5dbb2ad461
parentf552063e6cb74d37c1a0305fe0d7a8dfc7268824 (diff)
Notes
-rw-r--r--gnu/usr.bin/ld/ld.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/usr.bin/ld/ld.c b/gnu/usr.bin/ld/ld.c
index 900eb6892695..ce2b3a4725a8 100644
--- a/gnu/usr.bin/ld/ld.c
+++ b/gnu/usr.bin/ld/ld.c
@@ -1373,8 +1373,6 @@ enter_global_ref(lsp, name, entry)
lsp->nzlist.nz_type = N_TEXT|N_EXT;
lsp->nzlist.nz_value = 0;
make_executable = 0;
- } else {
- global_alias_count++;
}
#if 0
if (sp->flags & GS_REFERENCED)
@@ -2382,6 +2380,14 @@ digest_pass2()
defined_global_sym_count++;
}
+ /*
+ * Count the aliases that will appear in the output.
+ */
+ if (sp->alias && !sp->so_defined && !sp->alias->so_defined &&
+ (sp->defined || relocatable_output ||
+ !building_shared_object))
+ global_alias_count++;
+
if ((sp->defined & N_TYPE) == N_SETV) {
/*
* Set length word at front of vector and zero byte