NetBSD/sys/kern/kern_ksyms_buf.c
joerg a26164117a Reorganize symbol table embedding. The existing option SYMTAB_SPACE is
replaced by the make option COPY_SYMTAB set to any value. The copy of
the symbol table is no longer put into a buffer in kern_ksyms.o, but a
small helper object. This object is build first with a dummy size, then
the kernel is linked to compute the real dimension of the symbol table
buffer. After that, the helper object is rebuild and the kernel linked
again.
2014-08-17 21:17:43 +00:00

11 lines
235 B
C

#define SYMTAB_FILLER "|This is the symbol table!"
#ifdef COPY_SYMTAB
#ifndef SYMTAB_SPACE
char db_symtab[] = SYMTAB_FILLER;
#else
char db_symtab[SYMTAB_SPACE] = SYMTAB_FILLER;
#endif
int db_symtabsize = sizeof(db_symtab);
#endif