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
gwr
36c3560196
Use the symbol "_kernel_text" if it exists, instead of KERNTEXTOFF.
...
This allows /usr/sbin/kvm_mkdb to be shared among m68k machines.
1996-05-16 21:17:21 +00:00
cgd
d8806814a6
specify man pages the new way.
1994-12-22 11:32:57 +00:00
mycroft
ba95b05235
Major speed improvement.
1994-08-29 23:17:00 +00:00
mycroft
c250a07889
Fix up RCS ids.
1994-06-11 07:50:42 +00:00
pk
ec1b77781f
Update to 4.4-lite, local changes to man page.
1994-06-10 14:12:08 +00:00
chopps
13bd07192f
don't think this ever really worked on non hp300 m68k machines.
1994-04-05 01:45:22 +00:00
pk
6ff21e941b
Get offset of `_version' right for sparc.
...
Remove temporary file on error exit.
Some general cleanup.
1993-12-02 20:55:47 +00:00
mycroft
52efca41cd
Nuke remaining patchkit headers.
1993-08-02 18:17:24 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
c3e42d1c64
Add RCS indentifiers.
1993-08-01 07:22:47 +00:00
mycroft
b465cf4697
Add RCS identifiers.
1993-07-30 22:11:51 +00:00
mycroft
2b5a456ba9
Fix kvm_mkdb to work with kernels loaded >=1MB. Note: This is a KLUGE, but
...
there is probably no better way to do it with a.out.
1993-07-19 07:24:41 +00:00
mycroft
b6e9697594
DUH. This is kvm_mkdb, not symorder. Display the correct name in error
...
messages.
1993-07-18 10:36:47 +00:00
cgd
892404628d
patch from Paul Kranenburg <pk@cs.few.eur.nl> so that if given a kernel
...
name, kvm_mkdb will work properly.
1993-07-10 01:16:15 +00:00