diff options
author | 1997-02-21 07:28:11 +0000 | |
---|---|---|
committer | 1997-02-21 07:28:11 +0000 | |
commit | 6762fac16d977cbd06bf47b665662bf08cef9c28 (patch) | |
tree | 206605c76d5f0af121edbfbd3c4ec59ed9f52aa4 | |
parent | Fix a const poisoning warning (diff) | |
download | wireguard-openbsd-6762fac16d977cbd06bf47b665662bf08cef9c28.tar.xz wireguard-openbsd-6762fac16d977cbd06bf47b665662bf08cef9c28.zip |
Get symbol counts right when counting weak symbols in shared libraries as
shared objects are being built.
-rw-r--r-- | gnu/usr.bin/ld/ld.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |