summaryrefslogtreecommitdiffstats
path: root/usr.bin/gensetdefs/gensetdefs.8
blob: 8b0bf59073a0f88852c0e939cd078307d7a7dcbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.\"
.\" $FreeBSD$
.\"
.Dd March 10, 1999
.Dt GENSETDEFS 8
.Os
.Sh NAME
.Nm gensetdefs
.Nd generate linker set definitions
.Sh SYNOPSIS
.Nm gensetdefs
.Ar file ...
.Sh DESCRIPTION
The
.Nm
command is a special-purpose program to generate the
linker set definitions needed when building an ELF kernel.
Its
.Ar file
arguments are the names of ELF object files.
It scans the section names of the object files,
building a table of those that begin with
.Dv .set. ,
which represent linker sets.  Finally, for each set
.Dv foo
with 
.Dv count
elements, it writes a line 
.Fn DEFINE_SET foo count ;
to the standard output.
.Pp
This command is used by the kernel
.Pa makefile ,
such as
.Pa /sys/i386/conf/Makefile.i386
generic makefile for the
.Tn i386 .
.Sh SEE ALSO
.Xr config 8
.Sh AUTHORS
The
.Nm
command was written by
.An John D. Polstra .
OpenPOWER on IntegriCloud