diff options
| author | Palmer Dabbelt <palmer@rivosinc.com> | 2023-07-21 08:01:48 -0700 |
|---|---|---|
| committer | Luis Chamberlain <mcgrof@kernel.org> | 2023-07-24 12:09:47 -0700 |
| commit | ff09f6fd297293175eaa0ed492495e36b3eb1a8e (patch) | |
| tree | e8685220b9b73edbab65a3bb378951e01cbfec47 /scripts/mod/modpost.c | |
| parent | 9ce170cef66916526dcaa868a67cfcc0c2f0c3d6 (diff) | |
| download | linux-ff09f6fd297293175eaa0ed492495e36b3eb1a8e.tar.gz linux-ff09f6fd297293175eaa0ed492495e36b3eb1a8e.tar.bz2 linux-ff09f6fd297293175eaa0ed492495e36b3eb1a8e.zip | |
modpost, kallsyms: Treat add '$'-prefixed symbols as mapping symbols
Trying to restrict the '$'-prefix change to RISC-V caused some fallout,
so let's just treat all those symbols as special.
Fixes: c05780ef3c190 ("module: Ignore RISC-V mapping symbols too")
Link: https://lore.kernel.org/all/20230712015747.77263-1-wangkefeng.wang@huawei.com/
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'scripts/mod/modpost.c')
| -rw-r--r-- | scripts/mod/modpost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 7c71429d6502..b29b29707f10 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -1052,7 +1052,7 @@ static inline int is_valid_name(struct elf_info *elf, Elf_Sym *sym) if (!name || !strlen(name)) return 0; - return !is_mapping_symbol(name, elf->hdr->e_machine == EM_RISCV); + return !is_mapping_symbol(name); } /* Look up the nearest symbol based on the section and the address */ |
