android_kernel_sony_sdm845/scripts/mod
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sami Tolvanen ab70d98b39 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-12 19:44:52 +01:00
..
.gitignore
devicetable-offsets.c staging: fsl-mc: add support for device table matching 2016-06-26 17:14:03 -07:00
empty.c
file2alias.c staging: fsl-mc: add support for device table matching 2016-06-26 17:14:03 -07:00
Makefile kbuild: Consolidate header generation from ASM offset information 2018-11-23 08:20:34 +01:00
mk_elfconfig.c
modpost.c modpost: validate symbol names also in find_elf_symbol 2019-02-12 19:44:52 +01:00
modpost.h Avoid conflict with host definitions when cross-compiling 2015-08-20 14:55:54 +02:00
sumversion.c