diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2018-10-23 15:15:35 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-20 10:08:57 +0100 |
commit | c17921884cfb4fbd30161ffd3c6618f4804342e3 (patch) | |
tree | 2472ba92f7bf502d531998adf6572eb5e062b852 /tools | |
parent | ad62a83632b923669bf5126392e1b6bc6d4be127 (diff) | |
download | linux-stable-c17921884cfb4fbd30161ffd3c6618f4804342e3.tar.gz linux-stable-c17921884cfb4fbd30161ffd3c6618f4804342e3.tar.bz2 linux-stable-c17921884cfb4fbd30161ffd3c6618f4804342e3.zip |
modpost: validate symbol names also in find_elf_symbol
[ Upstream commit 5818c683a619c534c113e1f66d24f636defc29bc ]
If an ARM mapping symbol shares an address with a valid symbol,
find_elf_symbol can currently return the mapping symbol instead, as the
symbol is not validated. This can result in confusing warnings:
WARNING: vmlinux.o(.text+0x18f4028): Section mismatch in reference
from the function set_reset_devices() to the variable .init.text:$x.0
This change adds a call to is_valid_name to find_elf_symbol, similarly
to how it's already used in find_elf_symbol2.
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions