summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1998-03-03 08:48:23 +0000
committerniklas <niklas@openbsd.org>1998-03-03 08:48:23 +0000
commit2421419f579fdff4673b793878d924844ff767c3 (patch)
treeba2d1afc2e33ed7ef306d51d96f3c7326b1595c3
parentfix attach message (diff)
downloadwireguard-openbsd-2421419f579fdff4673b793878d924844ff767c3.tar.xz
wireguard-openbsd-2421419f579fdff4673b793878d924844ff767c3.zip
rewrite construct that made GCC 2.8 do an implicit memset before libc
is there
-rw-r--r--gnu/libexec/ld.so/ld.so/mips/elfinterp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/libexec/ld.so/ld.so/mips/elfinterp.c b/gnu/libexec/ld.so/ld.so/mips/elfinterp.c
index de1507e1945..148010527a1 100644
--- a/gnu/libexec/ld.so/ld.so/mips/elfinterp.c
+++ b/gnu/libexec/ld.so/ld.so/mips/elfinterp.c
@@ -61,7 +61,9 @@ _dl_lookup_symbol (const char *undef_name, const Elf32_Sym **ref,
{
Elf32_Addr a;
const Elf32_Sym *s;
- } weak_value = { 0, NULL };
+ } weak_value; /* = { 0, NULL }; breaks GCC 2.8 due to implicit memset */
+
+ _dl_memset (&weak_value, 0, sizeof (weak_value));
/* Search the relevant loaded objects for a definition. */
for (map = symbol_scope; map; map = map->next)