summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-03-30 15:35:52 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-03-30 15:35:52 +0000
commit89d91eaca338050a91a4758a41d288f45d5e0e64 (patch)
treeaf861e29d0dbc6c0738877664bd6c7f31e96b581 /usr.bin
parenteac715d6b63cb0ecd8849bb740d290afca38518c (diff)
no need to force N_EXT as deducted later from type
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/nm/elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/nm/elf.c b/usr.bin/nm/elf.c
index 0b3131f909a..7c34f5bee08 100644
--- a/usr.bin/nm/elf.c
+++ b/usr.bin/nm/elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elf.c,v 1.4 2004/03/30 15:29:44 mickey Exp $ */
+/* $OpenBSD: elf.c,v 1.5 2004/03/30 15:35:51 mickey Exp $ */
/*
* Copyright (c) 2003 Michael Shalayeff
@@ -180,7 +180,7 @@ elf2nlist(Elf_Sym *sym, Elf_Ehdr *eh, Elf_Shdr *shdr, char *shstr, struct nlist
} else if (!strcmp(sn, ELF_DATA))
np->n_type = N_DATA;
else if (!strcmp(sn, ELF_BSS))
- np->n_type = N_BSS | N_EXT;
+ np->n_type = N_BSS;
else if (!strcmp(sn, ELF_SBSS))
np->n_type = N_BSS;
else
@@ -211,7 +211,7 @@ elf2nlist(Elf_Sym *sym, Elf_Ehdr *eh, Elf_Shdr *shdr, char *shstr, struct nlist
else if (!strcmp(sn, ELF_SBSS))
np->n_type = N_BSS;
else if (!strcmp(sn, ELF_BSS))
- np->n_type = N_BSS | N_EXT;
+ np->n_type = N_BSS;
else if (!strcmp(sn, ELF_RODATA))
np->n_other = 'r';
break;