Home | History | Annotate | Download | only in gen
History log of /src/lib/libc/gen/nlist_elf32.c
RevisionDateAuthorComments
 1.39  26-Feb-2016  christos lint comment
 1.38  20-May-2015  matt Rework ksym defines and includes.
 1.37  20-May-2015  matt Change the ksyms ioctls to more compat_netbsd32 friendly. Use _IOWR ioctls
to avoid extra copyouts. With these changes, netstat and vmstat work on
mips64eb with the normal N32 userland and a N64 kernel.
 1.36  19-May-2015  matt Support ELF64 on MIPS N32 even though it's ILP32.
XXX should we do this for other arches that support compat_netbsd32?
 1.35  21-Mar-2012  christos - don't compile unreachable code.
- convert uintmax_t to uintptr_t
 1.34  20-Mar-2012  matt Use C89 definitions.
Remove use of __P
 1.33  15-Oct-2011  christos branches: 1.33.2;
report STT_COMMON symbols as data.
 1.32  28-Aug-2010  joerg Replace the current usage of Elf64_Half with Elf64_Word and rename
NetBSD specific Elf64_Quarter to Elf64_Half. This restores compatibility
with the common ELF specifications.
 1.31  21-Aug-2009  he Introduce a new accessor macro N_NAME() to access the n_name field
in struct nlist, since it's accessed differently depending on
whether we do a.out or not. Use this macro as appropriate in the
nlist* functions.
Also replace some includes of <a.out.h> with <nlist.h>, to fix build
problem for mips.
 1.30  16-Feb-2009  lukem A variation on the sign-compare fix for these.
 1.29  06-Feb-2009  lukem branches: 1.29.2;
sign-compare fix
 1.28  12-Jun-2005  lukem Add missing __RCSID()
 1.27  01-Jun-2005  lukem Exit via the correct cleanup path; we can't munmap until the mmap has
been performed.
Detected with gcc -Wuninitialized.
(The bug was introduced in rev 1.22. Hi Ragge! :)
 1.26  28-Dec-2004  thorpej branches: 1.26.2;
More ELF_ST_BIND()/ELF_ST_TYPE() cleanup.
 1.25  27-Dec-2004  thorpej Use ELF_ST_BIND() and ELF_ST_TYPE().
 1.24  26-Jul-2003  salo netbsd.org->NetBSD.org
 1.23  11-May-2003  christos make this compile again.
 1.22  11-May-2003  ragge Teach nlist to retrieve symbols from /dev/ksyms (using the quick-search
ioctl's).
 1.21  14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.20  14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.19  04-Nov-1999  erh branches: 1.19.2;
Remove ELFNAME defines since they are defined in sys/exec_elf.h
 1.18  25-Oct-1999  kleink Update to match new SVR4-style definition names in <sys/exec_elf.h>.
 1.17  22-Oct-1999  hannken Undo last change. While these macros are defined in exec_elf.h, they are
enclosed by `#ifdef _KERNEL'.
 1.16  21-Oct-1999  erh Remove ELFNAME macros which are already defined in exec_elf.h.
 1.15  20-Sep-1999  lukem branches: 1.15.2;
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.14  16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.13  17-Jun-1999  thorpej MAP_COPY -> MAP_PRIVATE
 1.12  13-Nov-1998  christos delint
 1.11  14-Oct-1998  kleink Need "namespace.h".
 1.10  10-Aug-1998  perry bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.9  26-Jul-1998  mycroft const poisoning.
 1.8  03-Feb-1998  perry remove obsolete register declarations
 1.7  15-Dec-1997  mrg use MAP_COPY|MAP_FILE.
 1.6  17-Jul-1997  thorpej - Don't deref a bad pointer in the event the object has no symbol
section header. Instead, treat the object as stripped.
- Add a "default" case to the symbol type switch to calm GCC's jets.
 1.5  03-Oct-1996  cgd fix pasto: Elf_{Off,Word} rather than Elf32_{Off,Word}
 1.4  01-Oct-1996  cgd clean up comments a bit.
 1.3  01-Oct-1996  cgd "do over." Rewrite from scratch, or, more precisely, based on a high-speed
merge of libc's ECOFF nlist support (written by me, a while ago), and the
(relatively new, but again written by me) kvm_mkdb ELF support.
 1.2  30-Sep-1996  cgd kill recently added 'check' functions, since they only add code to be more
expensive, i.e. they save nothing and add code. also, beat it with the
style stick.
 1.1  27-Sep-1996  cgd Seriously revamp libc's nlist()/__fdnlist() support:
(1) split nlist() into multiple files, for clarity and to make
ELF 32/64 support easier,
(2) support multiple executable types at the same time, and
(3) add support for 32- and 64-bit ELF (32-bit ELF support
originally from OpenBSD, but with several bug fixes so
that it actually handles symbols types more correctly
(and therefore _works_ for some of the more tricky uses
of the nlist routines) and changes for 64-bit ELF support).
 1.15.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.19.2.1  23-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.26.2.1  11-Jun-2005  tron Pull up revision 1.27 (requested by lukem in ticket #393):
Exit via the correct cleanup path; we can't munmap until the mmap has
been performed.
Detected with gcc -Wuninitialized.
(The bug was introduced in rev 1.22. Hi Ragge! :)
 1.29.2.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.33.2.1  17-Apr-2012  yamt sync with head

RSS XML Feed