Skip to content

Commit a31ec04

Browse files
committed
asm-generic/export.h: make __ksymtab_* local symbols
For EXPORT_SYMBOL from C files, <linux/export.h> defines __ksymtab_* as local symbols. For EXPORT_SYMBOL from assembly, in contrast, <asm-generic/export.h> produces globally-visible __ksymtab_* symbols due to this .globl directive. I do not know why this must be global. It still works without this. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 2dffd23 commit a31ec04

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎include/asm-generic/export.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
*/
3232
.macro ___EXPORT_SYMBOL name,val,sec
3333
#ifdef CONFIG_MODULES
34-
.globl __ksymtab_\name
3534
.section ___ksymtab\sec+\name,"a"
3635
.balign KSYM_ALIGN
3736
__ksymtab_\name:

0 commit comments

Comments
 (0)