From 6762fac16d977cbd06bf47b665662bf08cef9c28 Mon Sep 17 00:00:00 2001 From: tholo Date: Fri, 21 Feb 1997 07:28:11 +0000 Subject: [PATCH] Get symbol counts right when counting weak symbols in shared libraries as shared objects are being built. --- gnu/usr.bin/ld/ld.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/usr.bin/ld/ld.c b/gnu/usr.bin/ld/ld.c index df0c8d9f245..88db530db28 100644 --- a/gnu/usr.bin/ld/ld.c +++ b/gnu/usr.bin/ld/ld.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ld.c,v 1.5 1996/12/22 20:54:16 tholo Exp $ */ +/* $OpenBSD: ld.c,v 1.6 1997/02/21 07:28:11 tholo Exp $ */ /*- * This code is derived from software copyrighted by the Free Software @@ -2361,6 +2361,10 @@ digest_pass2() * compute the correct number of symbol table entries. */ if (!sp->defined) { + if (building_shared_object && + !sp->alias->defined) + /* Exclude aliases in shared objects */ + continue; /* * Change aliased symbol's definition too. * These things happen if shared object commons -- 2.20.1