kernel: keep __bug_table with gc-sections
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43404
This commit is contained in:
parent
d57b64dfb0
commit
1f5987c5d3
1 changed files with 9 additions and 0 deletions
|
@ -346,6 +346,15 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||||
*(COMMON) \
|
*(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 @@
|
@@ -596,7 +597,7 @@
|
||||||
. = ALIGN(4); \
|
. = ALIGN(4); \
|
||||||
.tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { \
|
.tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { \
|
||||||
|
|
Loading…
Reference in a new issue