projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c14b4bc
)
arm: jump label may reference text in __exit
author
Jason Baron
<
[email protected]
>
Wed, 3 Aug 2016 20:46:33 +0000
(13:46 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 4 Aug 2016 12:50:07 +0000
(08:50 -0400)
The jump table can reference text found in an __exit section. Thus,
instead of discarding it at build time, include EXIT_TEXT as part of
__init and it will be released when the system boots.
Link:
http://lkml.kernel.org/r/60284113bb759121e8ae3e99af1535647e52123f.1467837322.git.jbaron@akamai.com
Signed-off-by: Jason Baron <
[email protected]
>
Cc: Arnd Bergmann <
[email protected]
>
Cc: "David S. Miller" <
[email protected]
>
Cc: Benjamin Herrenschmidt <
[email protected]
>
Cc: Chris Metcalf <
[email protected]
>
Cc: Heiko Carstens <
[email protected]
>
Cc: Joe Perches <
[email protected]
>
Cc: Martin Schwidefsky <
[email protected]
>
Cc: Michael Ellerman <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/arm/kernel/vmlinux.lds.S
patch
|
blob
|
history
diff --git
a/arch/arm/kernel/vmlinux.lds.S
b/arch/arm/kernel/vmlinux.lds.S
index 99420fc1f066796fdec9ea5a473a0d893647379b..d24e5dd2aa7a74d98eb718e9edc6cabfbd5341ed 100644
(file)
--- a/
arch/arm/kernel/vmlinux.lds.S
+++ b/
arch/arm/kernel/vmlinux.lds.S
@@
-44,7
+44,7
@@
#endif
#if (defined(CONFIG_SMP_ON_UP) && !defined(CONFIG_DEBUG_SPINLOCK)) || \
- defined(CONFIG_GENERIC_BUG)
+ defined(CONFIG_GENERIC_BUG)
|| defined(CONFIG_JUMP_LABEL)
#define ARM_EXIT_KEEP(x) x
#define ARM_EXIT_DISCARD(x)
#else