android_kernel_oneplus_msm8998/scripts/mod
Sami Tolvanen b02bfd8416 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>
2019-02-20 10:13:05 +01:00
..
.gitignore kbuild: trivial - remove trailing empty lines 2014-06-10 00:04:06 +02:00
devicetable-offsets.c sound updates for 4.4-rc1 2015-11-06 11:04:07 -08:00
empty.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
file2alias.c of: fix autoloading due to broken modalias with no 'compatible' 2016-07-27 09:47:28 -07:00
Makefile kbuild: Consolidate header generation from ASM offset information 2018-11-27 16:07:57 +01:00
mk_elfconfig.c kbuild: trivial - remove trailing empty lines 2014-06-10 00:04:06 +02:00
modpost.c modpost: validate symbol names also in find_elf_symbol 2019-02-20 10:13:05 +01:00
modpost.h Avoid conflict with host definitions when cross-compiling 2015-08-20 14:55:54 +02:00
sumversion.c kbuild: trivial - use tabs for code indent where possible 2014-06-10 14:00:53 +02:00