aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2019-12-09 12:51:48 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2019-12-14 15:53:04 +0900
commitfd2ab2f6610b2bec70e626c38de8a4242fa88e48 (patch)
tree63ef989fe5aebaf326f916db8535dcb3683209ef /README
parentmkcompile_h: use printf for LINUX_COMPILE_BY (diff)
downloadlinux-dev-fd2ab2f6610b2bec70e626c38de8a4242fa88e48.tar.xz
linux-dev-fd2ab2f6610b2bec70e626c38de8a4242fa88e48.zip
scripts/kallsyms: fix offset overflow of kallsyms_relative_base
Since commit 5e5c4fa78745 ("scripts/kallsyms: shrink table before sorting it"), kallsyms_relative_base can be larger than _text, which causes overflow when building the 32-bit kernel. https://lkml.org/lkml/2019/12/7/156 This is because _text is, unless --all-symbols is specified, now trimmed from the symbol table before record_relative_base() is called. Handle the offset signedness also for kallsyms_relative_base. Introduce a new helper, output_address(), to reduce the code duplication. Fixes: 5e5c4fa78745 ("scripts/kallsyms: shrink table before sorting it") Reported-by: Olof Johansson <olof@lixom.net> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions