kbuild: Increase kallsyms max symbol length

[AK: This seems like a ticking time bomb even without LTO,
so should be merged now. It causes very weird problems.
Thanks to Joe for tracking them down.]

With the added postfixes that LTO adds for local
symbols, the longest name in the kernel overflows
the namebuf[KSYM_NAME_LEN] array by two bytes.  That name is:
__pci_fixup_resumePCI_VENDOR_ID_SERVERWORKSPCI_DEVICE_ID_SERVERWORKS_HT1000SBquirk_disable_broadcom_boot_interrupt.1488004.672802

Double the max symbol name length.

Change-Id: If0de3fba1a366855492bdfe28859ba8d0a76b62d
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
Joe Mario 2013-10-22 08:46:21 -07:00 committed by Richard Raya
parent c2651d5bee
commit f6544e0d12
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
#include <linux/kernel.h>
#include <linux/stddef.h>
#define KSYM_NAME_LEN 128
#define KSYM_NAME_LEN 256
#define KSYM_SYMBOL_LEN (sizeof("%s+%#lx/%#lx [%s]") + (KSYM_NAME_LEN - 1) + \
2*(BITS_PER_LONG*3/10) + (MODULE_NAME_LEN - 1) + 1)

View File

@ -28,7 +28,7 @@
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
#endif
#define KSYM_NAME_LEN 128
#define KSYM_NAME_LEN 256
struct sym_entry {
unsigned long long addr;