Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Use ELF_ST_BIND() and ELF_ST_TYPE().



details:   https://anonhg.NetBSD.org/src/rev/32a421c3ba56
branches:  trunk
changeset: 572260:32a421c3ba56
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Dec 27 20:07:09 2004 +0000

description:
Use ELF_ST_BIND() and ELF_ST_TYPE().

diffstat:

 lib/libc/gen/nlist_elf32.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a8982e9333cb -r 32a421c3ba56 lib/libc/gen/nlist_elf32.c
--- a/lib/libc/gen/nlist_elf32.c        Mon Dec 27 20:04:45 2004 +0000
+++ b/lib/libc/gen/nlist_elf32.c        Mon Dec 27 20:07:09 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist_elf32.c,v 1.24 2003/07/26 19:24:43 salo Exp $ */
+/* $NetBSD: nlist_elf32.c,v 1.25 2004/12/27 20:07:09 thorpej Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou
@@ -153,7 +153,7 @@
                        kg.kg_sym = &sym;
                        if (ioctl(fd, KIOCGSYMBOL, &kg) == 0) {
                                p->n_value = sym.st_value;
-                               switch (ELFDEFNNAME(ST_TYPE)(sym.st_info)) {
+                               switch (ELF_ST_TYPE(sym.st_info)) {
                                case STT_NOTYPE:
                                        p->n_type = N_UNDF;
                                        break;
@@ -171,7 +171,7 @@
                                        /* catch other enumerations for gcc */
                                        break;
                                }
-                               if (ELFDEFNNAME(ST_BIND)(sym.st_info) !=
+                               if (ELF_ST_BIND(sym.st_info) !=
                                    STB_LOCAL)
                                        p->n_type |= N_EXT;
                        } else {



Home | Main Index | Thread Index | Old Index