NetBSD/sys/kern/kern_ksyms_buf.c
martin fe65851c65 On mips64, the size calculation for the symbol table is off by a few bytes
(probably a bfd bug or misconfiguration), so add a bit of slope here
untill we fix it.
2015-05-08 07:41:07 +00:00

16 lines
350 B
C

#define SYMTAB_FILLER "|This is the symbol table!"
#ifdef COPY_SYMTAB
#ifndef SYMTAB_SPACE
char db_symtab[] = SYMTAB_FILLER;
#else
#ifdef __mips64
#define MDADD 32 /* work around a bfd/dbsym/ld bug on mips64 */
#else
#define MDADD 0
#endif
char db_symtab[SYMTAB_SPACE+MDADD] = SYMTAB_FILLER;
#endif
int db_symtabsize = sizeof(db_symtab);
#endif