*/
#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>
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 */