Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1590407
| From | Josh Poimboeuf <jpoimboe@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] objtool, module: discard __unreachable section for modules |
| Date | 2017-03-01 16:30 +0100 |
| Message-ID | <tgemu-4Vt-15@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The __unreachable section is only used at compile time. It's discarded
for vmlinux but it should also be discarded for modules.
Fixes: d1091c7fa3d5 ("objtool: Improve detection of BUG() and other dead ends")
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
---
scripts/module-common.lds | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/module-common.lds b/scripts/module-common.lds
index 73a2c7d..936a3c6 100644
--- a/scripts/module-common.lds
+++ b/scripts/module-common.lds
@@ -4,7 +4,10 @@
* combine them automatically.
*/
SECTIONS {
- /DISCARD/ : { *(.discard) }
+ /DISCARD/ : {
+ *(.discard)
+ *(__unreachable)
+ }
__ksymtab 0 : { *(SORT(___ksymtab+*)) }
__ksymtab_gpl 0 : { *(SORT(___ksymtab_gpl+*)) }
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] objtool, module: discard __unreachable section for modules Josh Poimboeuf <jpoimboe@redhat.com> - 2017-03-01 16:30 +0100
Re: [PATCH] objtool, module: discard __unreachable section for modules hpa@zytor.com - 2017-03-01 17:50 +0100
Re: [PATCH] objtool, module: discard __unreachable section for modules Linus Torvalds <torvalds@linux-foundation.org> - 2017-03-01 18:10 +0100
Re: [PATCH] objtool, module: discard __unreachable section for modules hpa@zytor.com - 2017-03-01 18:50 +0100
[PATCH v2] objtool, module: discard objtool annotation sections for modules Josh Poimboeuf <jpoimboe@redhat.com> - 2017-03-01 19:30 +0100
[tip:core/urgent] objtool, modules: Discard objtool annotation sections for modules tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2017-03-01 22:50 +0100
csiph-web