From: Felix Fietkau Date: Thu, 27 Nov 2014 15:02:11 +0000 (+0000) Subject: kernel: keep __bug_table with gc-sections X-Git-Tag: reboot~5220 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1f5987c5d3c12695edd1f8dec83534fae10e459f;p=openwrt%2Fstaging%2Fjogo.git kernel: keep __bug_table with gc-sections Signed-off-by: Felix Fietkau SVN-Revision: 43404 --- diff --git a/target/linux/generic/patches-3.14/220-gc_sections.patch b/target/linux/generic/patches-3.14/220-gc_sections.patch index c105c40b80..1beafaaa30 100644 --- a/target/linux/generic/patches-3.14/220-gc_sections.patch +++ b/target/linux/generic/patches-3.14/220-gc_sections.patch @@ -346,6 +346,15 @@ Signed-off-by: Gabor Juhos *(COMMON) \ } +@@ -584,7 +585,7 @@ + . = ALIGN(8); \ + __bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \ + VMLINUX_SYMBOL(__start___bug_table) = .; \ +- *(__bug_table) \ ++ KEEP(*(__bug_table)) \ + VMLINUX_SYMBOL(__stop___bug_table) = .; \ + } + #else @@ -596,7 +597,7 @@ . = ALIGN(4); \ .tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { \