Commit Graph

69 Commits

Author SHA1 Message Date
wiz
bcfe662395 Fix fd leaks in error cases. Found by cppcheck. 2011-01-04 09:32:31 +00:00
joerg
c1e0a5bd50 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.
2010-08-28 21:30:02 +00:00
lukem
9c1945664c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
grant
cacf2d0f45 s/netbsd.org/NetBSD.org/i 2003-11-12 13:31:07 +00:00
itojun
a82a0d12e2 realloc pedant 2003-09-19 06:22:03 +00:00
agc
326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
itojun
bd719499fb use bounded string op 2003-07-15 12:33:17 +00:00
wiz
64c914b286 Bump date for last. 2003-05-06 08:37:34 +00:00
ragge
64d8c965d1 Note change to use /dev/ksyms. Add BUGS section. 2003-05-03 10:03:55 +00:00
ragge
40c743b278 Remove some unneccessary kmem open/close code. 2003-05-02 16:28:34 +00:00
ragge
ead8c24788 Teach kvm_mkdb to use /dev/ksyms if possible. 2003-05-02 16:25:22 +00:00
scw
05774dcd91 Define NLIST_ELF32 and Define NLIST_ELF64 for SH5. 2002-07-11 19:15:54 +00:00
fredette
dcff733bb9 Use NLIST_ELF32 for hppa. 2002-06-10 14:28:14 +00:00
fvdl
d06e65a248 Use NLIST_ELF64 for x86-64. 2002-06-05 19:39:15 +00:00
msaitoh
959914993f fix a check of the cpu types from __sh3__ to __sh__ 2002-04-16 18:36:08 +00:00
thorpej
ba472566c5 Support Elf32 on VAX. 2002-02-19 02:16:08 +00:00
wiz
a9356936b4 seperate -> separate 2001-07-22 13:33:58 +00:00
msaitoh
1af40d9ce4 Fix a long standing bug.
Old kvm_mkdb had a possibility to check old kernel's version
string retained at a hole between text segment and data segment.
It might happen a misunderstanding that the running kernel's version
matches kvm.db's version.

This had been caused by checking current kernel's version string
via /dev/kmem. The version string can get via sysctl, so use it!
2001-03-19 15:18:59 +00:00
agc
22e9dcf29e Prevent a core dump if a kernel doesn't have a valid symbol section
header - instead, fail gracefully with a "no symbol section header
found" message.
2001-03-16 14:12:43 +00:00
bjh21
d47ff437ed Make both ARM ports support both NLIST_AOUT and NLIST_ELF32. 2001-02-17 21:18:40 +00:00
cgd
db755e7c76 sweep of my licenses (userland files w/o only my copyright) for
consistency.  (no functional changes)
2000-06-14 17:24:02 +00:00
cgd
d220ca5ba3 fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.
2000-06-14 06:48:47 +00:00
bjh21
6c97e2bd78 Initial commit of arm26 port 2000-05-09 21:55:44 +00:00
msaitoh
049ad0d982 machine/exec_coff.h -> sys/exec_coff.h 2000-01-07 09:40:33 +00:00
erh
6752f572d8 Remove ELFNAME defines since they are defined in sys/exec_elf.h 1999-11-04 02:00:17 +00:00
kleink
522cbf0248 Update to match new SVR4-style definition names in <sys/exec_elf.h>. 1999-10-25 13:55:06 +00:00
msaitoh
dac65e51e9 skip check if the output database file name != "/var/db/kvm.db" 1999-10-23 04:02:09 +00:00
hannken
5fb16f4d15 Undo last change. While these macros are defined in exec_elf.h, they are
enclosed by `#ifdef _KERNEL'.
1999-10-22 10:58:00 +00:00
erh
59b90d4a0e Remove ELFNAME macros which are already defines in exec_elf.h 1999-10-21 21:17:08 +00:00
msaitoh
c67cb58b47 add "-o database" option to specify alternate database file path. 1999-09-24 20:08:08 +00:00
itojun
ec7f04c32c support coff image file.
(this is part of NetBSD/sh3 patches)
1999-09-12 16:08:13 +00:00
thorpej
5df8e38280 Add ELF support for i386 and m68k. 1999-01-29 22:23:36 +00:00
eeh
861fc18871 We need to support both elf32 and elf64 for sparc64. 1999-01-17 01:42:07 +00:00
perry
34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
gwr
f4889dbff7 Begone KERNBASE, and KERNTEXTOFF too! 1998-02-05 03:46:46 +00:00
mrg
1d8157e01a use MAP_PRIVATE|MAP_FILE 1997-12-15 04:21:33 +00:00
enami
758c6a0d0f Work around GCC uninitialized variable warning. 1997-10-23 12:30:32 +00:00
lukem
c9fcc32882 deprecate register, use memset/memmove instead of bzero/bcopy 1997-10-18 08:40:40 +00:00
lukem
e5436d326b WARNSify, getopt returns -1 not EOF 1997-10-17 10:14:59 +00:00
thorpej
05297fb9f5 Sync "which nlist formats should I support?" with libc's nlist code.
Makes kvm_mkdb work properly on MIPS and PowerPC.
1997-06-15 23:51:09 +00:00
mikel
35b9d06596 make testdb() fail if database version string has length zero. 1997-01-11 06:18:11 +00:00
cgd
3b6f768ed2 Create only /var/db/kvm.db, and only create it if it doesn't
already match the running kernel.  Fixes an inconsistency
where /var/db/kvm_filename.db would be created, but only
if /var/db/kvm_netbsd.db didn't match the running kernel.
1996-10-12 00:51:44 +00:00
cgd
892f00d3e6 fix slight thinko in that last change 1996-10-03 23:14:23 +00:00
cgd
3e1fe814f0 since get_kerntext() is only used by the a.out code, move it there and
make it private.
1996-10-03 23:06:42 +00:00
cgd
ca2617f88a use ECOFF header, not get_kerntext() to help calculate version's file offset 1996-10-03 23:05:27 +00:00
cgd
61dc0e200c fix pasto: Elf_{Off,Word} rather than Elf32_{Off,Word} 1996-10-03 04:55:31 +00:00
cgd
a022251922 clean up Lite2 merge. Only real difference is this now includes <unistd.h>
and new Berkeley SCCS ID.
1996-09-30 19:48:44 +00:00
thorpej
63488d7365 RCS id police. 1996-09-30 18:26:58 +00:00
cgd
c347bc09f1 Add ECOFF and ELF32/ELF64 support, both written from scratch.
Also, fix things so that on unexpected exit, no temporary file is
left around.
1996-09-29 02:19:55 +00:00
cgd
b165a43791 update comment for KERNTEXTOFF -> kerntextoff changes. 1996-05-16 22:48:09 +00:00