module: make MODULE_SYMBOL_PREFIX into a CONFIG option
The next commit will require the use of MODULE_SYMBOL_PREFIX in .tmp_exports-asm.S. Currently it is mixed in with C structure definitions in "asm/module.h". Move the definition of this arch option into Kconfig, so it can be easily accessed by any code. This also lets modpost.c use the same definition. Previously modpost relied on a hardcoded list of architectures in mk_elfconfig.c. A build test for blackfin, one of the two MODULE_SYMBOL_PREFIX archs, showed the generated code was unchanged. vmlinux was identical save for build ids, and an apparently randomized suffix on a single "__key" symbol in the kallsyms data). Signed-off-by:Alan Jenkins <alan-jenkins@tuffmail.co.uk> Acked-by: Mike Frysinger <vapier@gentoo.org> (blackfin) CC: Sam Ravnborg <sam@ravnborg.org> Signed-off-by:
Rusty Russell <rusty@rustcorp.com.au>
Showing
- arch/blackfin/Kconfig 4 additions, 0 deletionsarch/blackfin/Kconfig
- arch/blackfin/include/asm/module.h 0 additions, 2 deletionsarch/blackfin/include/asm/module.h
- arch/blackfin/kernel/vmlinux.lds.S 0 additions, 2 deletionsarch/blackfin/kernel/vmlinux.lds.S
- arch/h8300/Kconfig 4 additions, 0 deletionsarch/h8300/Kconfig
- arch/h8300/include/asm/module.h 0 additions, 2 deletionsarch/h8300/include/asm/module.h
- arch/h8300/kernel/vmlinux.lds.S 0 additions, 1 deletionarch/h8300/kernel/vmlinux.lds.S
- include/asm-generic/vmlinux.lds.h 6 additions, 2 deletionsinclude/asm-generic/vmlinux.lds.h
- include/linux/module.h 4 additions, 2 deletionsinclude/linux/module.h
- scripts/Makefile.lib 5 additions, 0 deletionsscripts/Makefile.lib
- scripts/mod/Makefile 1 addition, 1 deletionscripts/mod/Makefile
- scripts/mod/mk_elfconfig.c 0 additions, 9 deletionsscripts/mod/mk_elfconfig.c
- scripts/mod/modpost.c 9 additions, 0 deletionsscripts/mod/modpost.c
Loading
Please register or sign in to comment