asm-generic/export.h: make __ksymtab_* local symbols
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 18 Oct 2019 04:31:47 +0000 (13:31 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 11 Nov 2019 11:10:01 +0000 (20:10 +0900)
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>
include/asm-generic/export.h

index fa577978fbbde494a7d9ea334b6f05d85827534e..80ef2dc0c8be08b2bd3e616214e7523013c5e370 100644 (file)
@@ -31,7 +31,6 @@
  */
 .macro ___EXPORT_SYMBOL name,val,sec
 #ifdef CONFIG_MODULES
-       .globl __ksymtab_\name
        .section ___ksymtab\sec+\name,"a"
        .balign KSYM_ALIGN
 __ksymtab_\name: