Commit Graph

13 Commits

Author SHA1 Message Date
peter
750cc9c766 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
466353d34a 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
64eccdd3ce Add -c to usage output. 1995-10-23 15:19:10 +00:00
phk
1852092e18 Add a '-c' option for cleaning namelists of various things. 1995-10-15 14:31:10 +00:00
dg
6e88c3cedd KNFize. 1995-10-09 08:13:09 +00:00
phk
591ef5eca7 Symorder relies on malloc to return zero'ed data. Found with phkmalloc/2. 1995-10-07 08:13:24 +00:00
rgrimes
a14d555c87 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
bde
ac917deba6 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
3f2abb0c11 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
43d02c481a Added a missing 'break;' 1994-10-16 22:07:47 +00:00
phk
0c882a91f1 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
72694b8f1f Christoph Robitschko manual page fixes to correct the references to vmunix
by replacing the name with 386bsd.
1993-10-08 01:36:20 +00:00
rgrimes
f078b88a16 Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:49:13 +00:00