]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
This commit affects ELF kernels only.
authorJohn Polstra <jdp@FreeBSD.org>
Wed, 21 May 1997 23:21:30 +0000 (23:21 +0000)
committerJohn Polstra <jdp@FreeBSD.org>
Wed, 21 May 1997 23:21:30 +0000 (23:21 +0000)
commit61b005296f6d6b14f6408a9c3453445a347580b8
treee46f9a0962b10444509f92b510c76ee6dde005a2
parent5851a3655a8251ab048dae4807bde18945ed2a29
This commit affects ELF kernels only.

Remove "setdefs.h" and arrange to generate it automatically at
ELF kernel build time.

"gensetdefs.c" is a utility which scans a set of ELF object files
and outputs a line ``DEFINE_SET(name, length);'' for each linker
set that it finds.  When generating an ELF kernel, this is run just
before the final link to generate "setdefs.h".

Remove the init_sets() function from "setdef0.c", and its call from
"machdep.c".  Since "gensetdefs.c" calculates the length of each
set, it is no longer necessary in an ELF kernel to count the set
elements at kernel initialization time.  Also remove "set_of_sets"
which was used for this purpose.

Link "setdef0" and "setdef1" into the kernel only if building for
ELF.  Since init_sets() is no longer used, there is no need to link
them into an a.out kernel.
sys/amd64/amd64/machdep.c
sys/conf/Makefile.i386
sys/conf/Makefile.powerpc
sys/i386/conf/Makefile.i386
sys/i386/i386/gensetdefs.c [new file with mode: 0644]
sys/i386/i386/machdep.c
sys/i386/i386/setdef0.c
sys/i386/i386/setdef1.c
sys/i386/i386/setdefs.h [deleted file]