summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2000-09-20 22:57:20 +0000
committerespie <espie@openbsd.org>2000-09-20 22:57:20 +0000
commit370948ce495f0b704edad27dae40efff2a5b7c72 (patch)
treee0e0cb54823981b552709cbb2c70c8fc0d90d659
parentuse TM_YEAR_BASE and set seconds to zero in obsolescent "compatibility" case; (diff)
downloadwireguard-openbsd-370948ce495f0b704edad27dae40efff2a5b7c72.tar.xz
wireguard-openbsd-370948ce495f0b704edad27dae40efff2a5b7c72.zip
Avoid erasing a GOT definition.
This is needed for a -fPIC libgcc.
-rw-r--r--gnu/usr.bin/ld/ld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/ld/ld.c b/gnu/usr.bin/ld/ld.c
index 992e1633d94..2c417153627 100644
--- a/gnu/usr.bin/ld/ld.c
+++ b/gnu/usr.bin/ld/ld.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ld.c,v 1.15 2000/02/21 16:56:56 art Exp $ */
+/* $OpenBSD: ld.c,v 1.16 2000/09/20 22:57:20 espie Exp $ */
/* $NetBSD: ld.c,v 1.52 1998/02/20 03:12:51 jonathan Exp $ */
/*-
@@ -1469,7 +1469,7 @@ enter_global_ref(lsp, name, entry)
if (com)
common_defined_global_count--;
sp->common_size = 0;
- if (sp != dynamic_symbol)
+ if (sp != dynamic_symbol && sp != got_symbol)
sp->defined = 0;
}