From: tholo Date: Fri, 21 Feb 1997 07:28:11 +0000 (+0000) Subject: Get symbol counts right when counting weak symbols in shared libraries as X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6762fac16d977cbd06bf47b665662bf08cef9c28;p=openbsd Get symbol counts right when counting weak symbols in shared libraries as shared objects are being built. --- 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