a26164117a
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.
11 lines
235 B
C
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
|