aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-11-27 15:02:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-11-27 15:02:11 +0000
commit08a7a2e60bee3eba55c75714dfbd2dd968c64aca (patch)
tree03470865a53ecd96e9a63f81165007cb8d188237 /target
parent412d24ee9220356f92af7076f9218a0f6d59d969 (diff)
downloadmaster-187ad058-08a7a2e60bee3eba55c75714dfbd2dd968c64aca.tar.gz
master-187ad058-08a7a2e60bee3eba55c75714dfbd2dd968c64aca.tar.bz2
master-187ad058-08a7a2e60bee3eba55c75714dfbd2dd968c64aca.zip
kernel: keep __bug_table with gc-sections
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43404 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/patches-3.14/220-gc_sections.patch9
1 files changed, 9 insertions, 0 deletions
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 <juhosg@openwrt.org>
*(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) { \