summaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.h
diff options
context:
space:
mode:
authorRam Pai <linuxram@us.ibm.com>2006-06-08 22:12:53 -0700
committerSam Ravnborg <sam@mars.ravnborg.org>2006-06-09 20:33:10 +0200
commitbd5cbcedf446e2f37cf2a37f533a7e1d7dff9312 (patch)
tree97cf8ea555684697b50a9444d75c33d28af0f0f4 /scripts/mod/modpost.h
parent031ecc6de7d17752c57720a118a37e97a8454872 (diff)
downloadlinux-bd5cbcedf446e2f37cf2a37f533a7e1d7dff9312.tar.gz
linux-bd5cbcedf446e2f37cf2a37f533a7e1d7dff9312.tar.bz2
linux-bd5cbcedf446e2f37cf2a37f533a7e1d7dff9312.zip
kbuild: export-type enhancement to modpost.c
This patch provides the ability to identify the export-type of each exported symbols in Module.symvers. NOTE: It updates the Module.symvers file with the additional information as shown below. 0x0f8b92af platform_device_add_resources vmlinux EXPORT_SYMBOL_GPL 0xcf7efb2a ethtool_op_set_tx_csum vmlinux EXPORT_SYMBOL Signed-off-by: Andreas Gruenbacher <agruen@suse.de> Signed-off-by: Ram Pai <linuxram@us.ibm.com> Signed-off-by: Avantika Mathur <mathur@us.ibm.com> Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/mod/modpost.h')
-rw-r--r--scripts/mod/modpost.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h
index 861d866fcd83..f7ee3a3fde14 100644
--- a/scripts/mod/modpost.h
+++ b/scripts/mod/modpost.h
@@ -115,6 +115,9 @@ struct elf_info {
Elf_Shdr *sechdrs;
Elf_Sym *symtab_start;
Elf_Sym *symtab_stop;
+ Elf_Section export_sec;
+ Elf_Section export_gpl_sec;
+ Elf_Section export_gpl_future_sec;
const char *strtab;
char *modinfo;
unsigned int modinfo_len;