Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen More ELF_ST_BIND()/ELF_ST_TYPE() cleanup.
details: https://anonhg.NetBSD.org/src/rev/45904341a11b
branches: trunk
changeset: 572263:45904341a11b
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Dec 28 00:08:08 2004 +0000
description:
More ELF_ST_BIND()/ELF_ST_TYPE() cleanup.
diffstat:
lib/libc/gen/nlist_elf32.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 74f3d6bf2ea7 -r 45904341a11b lib/libc/gen/nlist_elf32.c
--- a/lib/libc/gen/nlist_elf32.c Tue Dec 28 00:07:31 2004 +0000
+++ b/lib/libc/gen/nlist_elf32.c Tue Dec 28 00:08:08 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist_elf32.c,v 1.25 2004/12/27 20:07:09 thorpej Exp $ */
+/* $NetBSD: nlist_elf32.c,v 1.26 2004/12/28 00:08:08 thorpej Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou
@@ -171,8 +171,7 @@
/* catch other enumerations for gcc */
break;
}
- if (ELF_ST_BIND(sym.st_info) !=
- STB_LOCAL)
+ if (ELF_ST_BIND(sym.st_info) != STB_LOCAL)
p->n_type |= N_EXT;
} else {
nent++;
@@ -265,7 +264,7 @@
* Translate (roughly) from ELF to nlist
*/
p->n_value = symp[i].st_value;
- switch (ELFDEFNNAME(ST_TYPE)(symp[i].st_info)) {
+ switch (ELF_ST_TYPE(symp[i].st_info)) {
case STT_NOTYPE:
p->n_type = N_UNDF;
break;
@@ -282,8 +281,7 @@
/* catch other enumerations for gcc */
break;
}
- if (ELFDEFNNAME(ST_BIND)(symp[i].st_info) !=
- STB_LOCAL)
+ if (ELF_ST_BIND(symp[i].st_info) != STB_LOCAL)
p->n_type |= N_EXT;
p->n_desc = 0; /* XXX */
p->n_other = 0; /* XXX */
Home |
Main Index |
Thread Index |
Old Index