diff options
author | 1997-01-09 03:49:38 +0000 | |
---|---|---|
committer | 1997-01-09 03:49:38 +0000 | |
commit | 3886e1dcfb3221524e06fe42592e864a7e7c3896 (patch) | |
tree | eb6ed272a882c96db68b40b1f72a536ae648894a /lib/libc | |
parent | port is powerpc not, ppc. (diff) | |
download | wireguard-openbsd-3886e1dcfb3221524e06fe42592e864a7e7c3896.tar.xz wireguard-openbsd-3886e1dcfb3221524e06fe42592e864a7e7c3896.zip |
ELF does not use the leading '_' on any port, not just MIPS.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/nlist.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c index d571ed8b6ba..4cc64b045d2 100644 --- a/lib/libc/gen/nlist.c +++ b/lib/libc/gen/nlist.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: nlist.c,v 1.17 1996/12/23 02:42:22 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: nlist.c,v 1.18 1997/01/09 03:49:38 rahnds Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -393,15 +393,12 @@ __elf_fdnlist(fd, list) if (soff == 0) continue; for (p = list; !ISLAST(p); p++) { - /* - * XXX - ABI crap, they - * really fucked this up - * for MIPS and PowerPC - */ - if (!strcmp(&strtab[soff], - ehdr.e_machine == EM_MIPS ? - p->n_un.n_name+1 : - p->n_un.n_name)) { + /* + * ELF ports do not use the leading + * underscore that is given with "standard" + * nlist calls as a.out format does. + */ + if (!strcmp(&strtab[soff], p->n_un.n_name+1)) { p->n_value = s->st_value; /* XXX - type conversion */ |