Commit Graph

25 Commits

Author SHA1 Message Date
grehan
b3557d5c4d Doh, erase unused variable... 2005-03-03 06:38:00 +00:00
grehan
9cbbd424d8 PowerPC support for kldxref by handling the PPC-specific relocations. 2005-03-02 12:27:42 +00:00
iedowse
d0d1e68e58 Explicitly pass in the relocation base and data offset into ef_reloc()
rather than relying on a trick that happens to work for the current
relocation schemes. Also add some comments and improve variable
naming.
2004-08-28 19:31:10 +00:00
iedowse
d29d728a27 Use a temporary void * variable to work around a strict aliasing
warning that gcc generates at -O2 and higher.
2004-08-27 08:54:40 +00:00
iedowse
3fe1377c6a Add MD relocation support for amd64 and i386 platforms. The no-op
relocation is not sufficient for ELF relocatable object format
modules, since accessing the module metadata involves following
pointers between different ELF sections.

This allows kldxref to correctly build linker.hints on the amd64
platform.
2004-08-27 01:06:57 +00:00
iedowse
c3e1384b73 Add support for reading ELF relocatable object file format modules. 2004-08-27 00:58:40 +00:00
iedowse
ca4083743c Call the file format specific code through a table of function
pointers and remove knowledge of the file format from kldxref.c.
This will make it possible to support more than one file format.
2004-08-27 00:51:21 +00:00
ru
63d9df2be5 Fixed manpage's synopsis, and synchronized it with the program's usage(). 2004-06-01 09:34:04 +00:00
sobomax
1c5fa3c156 Check that specified in the command line path is actually a directory,
otherwise we are risking to coredump later on.
2004-04-30 00:20:58 +00:00
des
4c7061da8c Remove bogus (void **) casts. This unbreaks the -O2 build. 2004-03-15 17:43:36 +00:00
des
42f562f3a8 I don't normally use my middle name, so remove it from attributions in
man pages (though not from copyright notices).  While I'm here, add email
addresses where appropriate.
2004-01-25 11:39:42 +00:00
obrien
a920d12f89 style.Makefile(5) 2003-04-04 17:49:21 +00:00
ru
bc6ef60e0e 3rd party modules live in /boot/modules nowadays. 2003-03-03 22:49:21 +00:00
jake
af44b94319 Fix kldxref on sparc64 by allowing non-trivial relocations to be performed
on variables read out of raw kld files.  Unlike other platforms the value
will be in an Elf_Rela, not in the data section of the elf file.

Submitted by:	Hartmut Brandt <brandt@fokus.gmd.de>
PR:		46730
Tested on:	alpha (obrien), i386, sparc64
2003-01-21 03:51:53 +00:00
peter
f9fc595091 This is a userland tool, not a kernel component or libstand client. 2002-07-17 23:41:58 +00:00
charnier
d2168fe021 The .Nm utility 2002-07-14 14:47:15 +00:00
des
4d6b787d2d Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
peter
961ff64e43 Make kldxref work for Elf64 (which has 32 bit hash tables) 2002-04-11 09:30:15 +00:00
jhb
b0ee025908 Remove unnecessary machine/bootinfo.h includes.
Submitted by:	jake
2002-01-03 19:10:49 +00:00
mikeh
e408e50776 Reorder WARNS line for style.
Pointed out by:	bde
2001-12-10 21:13:36 +00:00
mikeh
41747ff124 WARNS=2 cleanup.
PR:		bin/32567
MFC after:	2 weeks
2001-12-09 07:22:26 +00:00
ru
57f082bf43 mdoc(7) police: oops, didn't catch this one without ispell(1). 2001-11-22 12:08:35 +00:00
ru
eea089732d mdoc(7) police: tiny markup fixes. 2001-11-22 12:03:31 +00:00
des
591edbb022 Write a real man page. 2001-10-12 02:06:34 +00:00
peter
2975fbf1b3 Add kldxref(8), for maintaining the linker.hints file for translating
module->pathname.ko.  It supports only ELF for now.

Submitted by:   bp  (with some minor tweaks)
2001-09-11 01:13:15 +00:00