Commit Graph

15 Commits

Author SHA1 Message Date
peter
e4b04a2b21 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
charnier
46e0c7e9ba Use err(3) instead of local redefinition. Add prototypes. 1997-08-12 06:46:56 +00:00
imp
cd84ece5fd compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 04:34:07 +00:00
peter
d116455f94 Repair the detection of undefined symbols that my last "quick fix" commit
broke.  It's much easier to debug the symbol export lists in lkm makefiles
if you know what your errors are during the build process. :-)

Bleah.. symorder.c is *horrible*. :-(
1995-11-03 18:27:18 +00:00
peter
90d5861925 symorder appears to have been designed to run on executable files
only, as it payes no attention to the relocation table (which
references the symbols).

As a result, running "symorder -c" to clean up the visibility of a LKM
".o" file (as is done in the new bsd.kmod.mk) totally screws up the
relocation table, making the LKM file unloadable. (ld: bogus
relocation record)

This is a pretty crude fix - I've changed symorder so that when
running in "cleanup" mode, it disables the reordering which was
screwing up the relocation table.  I'm sure there is a better fix, but
I didn't have the energy.  Feel free to fix this hack, probably by
renumbering the symbol indexes in the relocation table.
1995-10-28 12:27:20 +00:00
dg
03b611bc9b Add -c to usage output. 1995-10-23 15:19:10 +00:00
phk
6929fff09c Add a '-c' option for cleaning namelists of various things. 1995-10-15 14:31:10 +00:00
dg
9685d153b9 KNFize. 1995-10-09 08:13:09 +00:00
phk
6d9af90376 Symorder relies on malloc to return zero'ed data. Found with phkmalloc/2. 1995-10-07 08:13:24 +00:00
rgrimes
79e59e9123 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
bde
9b9fa2b031 Use exactly the same checks in excluded() as in inlist(): ignore stabs and
stringless symbols in excluded(); check for too-small (nonzero) string table
offsets in inlist().
1995-01-21 10:24:18 +00:00
bde
c19d2b51dc Add option `-x excludelist'. This will be used for removing variously
spelled g*compiled* symbols from the kernel so that ddb doesn't have to
do it.  The symbols are currently removed by dbsym but dbsym will go
away when symbols are loaded by the boot loader.

Document -m option in usage message.

Check for overrunning some arrays.

Fix some misformatting.
1995-01-17 07:20:26 +00:00
phk
661efa6cbd Added a missing 'break;' 1994-10-16 22:07:47 +00:00
phk
bf9e117cea Symorder complains if INET isn't in the kernel. I added '-m' to inform it
that it should exit(0) even if this is so.  fixed a /386bsd -> /kernel in
the man-page while at it.
1994-10-16 22:01:44 +00:00
rgrimes
f078b88a16 Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:49:13 +00:00