diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-09-20 22:57:21 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-09-20 22:57:21 +0000 |
commit | 59ce9a39822efec79df1a4395ff2934021e3140f (patch) | |
tree | 9afe00e81b9af87c49b4ce993732e019ec0bd395 | |
parent | e4723315f18f203c6c814d4b41698428cc250adb (diff) |
Avoid erasing a GOT definition.
This is needed for a -fPIC libgcc.
-rw-r--r-- | gnu/usr.bin/ld/ld.c | 4 |
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; } |