Module Name: src
Committed By: martin
Date: Fri May 8 07:41:07 UTC 2015
Modified Files:
src/sys/kern: kern_ksyms_buf.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/kern/kern_ksyms_buf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_ksyms_buf.c
diff -u src/sys/kern/kern_ksyms_buf.c:1.1 src/sys/kern/kern_ksyms_buf.c:1.2
--- src/sys/kern/kern_ksyms_buf.c:1.1 Sun Aug 17 21:17:44 2014
+++ src/sys/kern/kern_ksyms_buf.c Fri May 8 07:41:07 2015
@@ -4,7 +4,12 @@
#ifndef SYMTAB_SPACE
char db_symtab[] = SYMTAB_FILLER;
#else
-char db_symtab[SYMTAB_SPACE] = SYMTAB_FILLER;
+#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