summaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.h
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2014-02-08 09:01:12 +0100
committerH. Peter Anvin <hpa@linux.intel.com>2014-02-14 05:24:58 +0100
commit7d02b490e93c199a15b3c4bce1c393588c1300ca (patch)
tree3f899f31df5ee2a23e1df73a9b18a36af02677e4 /scripts/mod/modpost.h
parentKbuild, lto, workaround: Don't warn for initcall_reference in modpost (diff)
downloadlinux-7d02b490e93c199a15b3c4bce1c393588c1300ca.tar.xz
linux-7d02b490e93c199a15b3c4bce1c393588c1300ca.zip
Kbuild, lto: Drop .number postfixes in modpost
LTO turns all global symbols effectively into statics. This has the side effect that they all have a .NUMBER postfix to make them unique. In modpost drop this postfix because it confuses it. Signed-off-by: Andi Kleen <ak@linux.intel.com> Link: http://lkml.kernel.org/r/1391846481-31491-8-git-send-email-ak@linux.intel.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'scripts/mod/modpost.h')
-rw-r--r--scripts/mod/modpost.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h
index 51207e4d5f8b..168b43dc0a59 100644
--- a/scripts/mod/modpost.h
+++ b/scripts/mod/modpost.h
@@ -127,7 +127,7 @@ struct elf_info {
Elf_Section export_gpl_sec;
Elf_Section export_unused_gpl_sec;
Elf_Section export_gpl_future_sec;
- const char *strtab;
+ char *strtab;
char *modinfo;
unsigned int modinfo_len;