2 .\" $FreeBSD: src/usr.bin/genassym/genassym.8,v 1.2.2.1 2000/12/08 15:13:37 ru Exp $
9 .Nd generate assembler symbols from C
17 command is a special-purpose program to generate assembler
18 symbols from C code and is used to interface the low-level
19 assembly code with the C code.
20 This, for example, is used
26 argument is the name of an ELF object file that holds the
28 These definitions are extracted from
29 the object file and written to standard output or to the
32 suitable for inclusion in assembler source files.
36 command only extracts symbols from the object file if they
39 and are global data types, whose value is the value given
41 The following C declaration
42 .Bd -literal -offset indent -compact
43 int assym_MY_SYMBOL = 3;
45 is used to create the following assembler symbol.
46 .Bd -literal -offset indent -compact
49 Note that the size of the symbol is extracted from the
50 object file, which means that the symbol may have any type
51 that is wide enough to hold the value.
58 command was written by
59 .An Marcel Moolenaar Aq marcel@FreeBSD.org
64 Not all linkers store the size of the symbol in the ELF
66 The GNU linker for Alpha has this bug for
67 example (binutils 2.9.1). In those cases the size of the
68 symbol is assumed to be equal to the word size of the ELF
70 For Alpha this is 64 bits and for i386 this
75 command first appeared in