Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern On mips64, the size calculation for the symbol tabl...



details:   https://anonhg.NetBSD.org/src/rev/64de6c93eca9
branches:  trunk
changeset: 808147:64de6c93eca9
user:      martin <martin%NetBSD.org@localhost>
date:      Fri May 08 07:41:07 2015 +0000

description:
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.

diffstat:

 sys/kern/kern_ksyms_buf.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r c3c61b288bc6 -r 64de6c93eca9 sys/kern/kern_ksyms_buf.c
--- a/sys/kern/kern_ksyms_buf.c Fri May 08 07:29:08 2015 +0000
+++ b/sys/kern/kern_ksyms_buf.c Fri May 08 07:41:07 2015 +0000
@@ -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



Home | Main Index | Thread Index | Old Index