mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
linux/export: fix reference to exported functions for parisc64
John David Anglin reported parisc has been broken since commitddb5cdbafa("kbuild: generate KSYMTAB entries by modpost"). Like ia64, parisc64 uses a function descriptor. The function references must be prefixed with P%. Also, symbols prefixed $$ from the library have the symbol type STT_LOPROC instead of STT_FUNC. They should be handled as functions too. Fixes:ddb5cdbafa("kbuild: generate KSYMTAB entries by modpost") Reported-by: John David Anglin <dave.anglin@bell.net> Tested-by: John David Anglin <dave.anglin@bell.net> Tested-by: Helge Deller <deller@gmx.de> Closes: https://lore.kernel.org/linux-parisc/1901598a-e11d-f7dd-a5d9-9a69d06e6b6e@bell.net/T/#u Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
committed by
Helge Deller
parent
e5ef93d02d
commit
08700ec705
@@ -52,6 +52,8 @@
|
||||
|
||||
#ifdef CONFIG_IA64
|
||||
#define KSYM_FUNC(name) @fptr(name)
|
||||
#elif defined(CONFIG_PARISC) && defined(CONFIG_64BIT)
|
||||
#define KSYM_FUNC(name) P%name
|
||||
#else
|
||||
#define KSYM_FUNC(name) name
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user