linux-stable/scripts
Masahiro Yamada fd2ab2f661 scripts/kallsyms: fix offset overflow of kallsyms_relative_base
Since commit 5e5c4fa787 ("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: 5e5c4fa787 ("scripts/kallsyms: shrink table before sorting it")
Reported-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2019-12-14 15:53:04 +09:00
..
atomic
basic
coccinelle
dtc dtc: Use pkg-config to locate libyaml 2019-11-04 11:21:07 -06:00
gcc-plugins
gdb scripts/gdb: fix debugging modules compiled with hot/cold partitioning 2019-11-06 08:47:50 -08:00
genksyms
kconfig kconfig: be more helpful if pkg-config is missing 2019-11-11 20:10:01 +09:00
ksymoops
mod modpost: respect the previous export when 'exported twice' is warned 2019-11-23 15:46:42 +09:00
package kbuild: Add make dir-pkg build option 2019-11-11 20:10:01 +09:00
selinux
tracing
.gitignore video/logo: move pnmtologo tool to drivers/video/logo/ from scripts/ 2019-11-11 20:07:03 +09:00
adjust_autoksyms.sh
asn1_compiler.c
bin2c.c
bloat-o-meter
bootgraph.pl
bpf_helpers_doc.py
cc-can-link.sh
check_extable.sh
checkincludes.pl
checkkconfigsymbols.py
checkpatch.pl checkpatch: reduce is_maintained_obsolete lookup runtime 2019-12-04 19:44:13 -08:00
checkstack.pl
checksyscalls.sh
checkversion.pl
clang-version.sh
cleanfile
cleanpatch
coccicheck
config
conmakehash.c
const_structs.checkpatch
decode_stacktrace.sh
decodecode
depmod.sh
diffconfig
documentation-file-ref-check
export_report.pl
extract-cert.c
extract-ikconfig
extract-module-sig.pl
extract-sys-certs.pl
extract-vmlinux
extract_xc3028.pl
faddr2line
file-size.sh
find-unused-docs.sh
gcc-goto.sh
gcc-ld
gcc-plugin.sh
gcc-version.sh
gcc-x86_32-has-stack-protector.sh
gcc-x86_64-has-stack-protector.sh
gen_compile_commands.py
gen_ksymdeps.sh
get_abi.pl
get_dvb_firmware
get_maintainer.pl scripts/get_maintainer.pl: add signatures from Fixes: <badcommit> lines in commit message 2019-12-04 19:44:12 -08:00
gfp-translate
headerdep.pl
headers_check.pl
headers_install.sh
insert-sys-cert.c
jobserver-exec docs, parallelism: Rearrange how jobserver reservations are made 2019-11-22 10:35:18 -07:00
kallsyms.c scripts/kallsyms: fix offset overflow of kallsyms_relative_base 2019-12-14 15:53:04 +09:00
Kbuild.include kbuild: rename any-prereq to newer-prereqs 2019-11-11 20:10:01 +09:00
Kconfig.include
kernel-doc scripts/kernel-doc: Add support for named variable macro arguments 2019-11-07 13:17:24 -07:00
ld-version.sh
leaking_addresses.pl
Lindent
link-vmlinux.sh bpf: Force .BTF section start to zero when dumping from vmlinux 2019-11-29 10:18:57 +01:00
Makefile video/logo: move pnmtologo tool to drivers/video/logo/ from scripts/ 2019-11-11 20:07:03 +09:00
Makefile.asm-generic
Makefile.build kbuild: remove header compile test 2019-11-15 00:22:35 +09:00
Makefile.clean
Makefile.dtbinst
Makefile.extrawarn
Makefile.gcc-plugins
Makefile.headersinst kbuild: move headers_check rule to usr/include/Makefile 2019-11-15 00:23:10 +09:00
Makefile.host
Makefile.kasan
Makefile.kcov
Makefile.lib kbuild: remove header compile test 2019-11-15 00:22:35 +09:00
Makefile.modbuiltin
Makefile.modfinal
Makefile.modinst
Makefile.modpost scripts/nsdeps: support nsdeps for external module builds 2019-11-11 20:10:01 +09:00
Makefile.modsign
Makefile.package kbuild: Add make dir-pkg build option 2019-11-11 20:10:01 +09:00
Makefile.ubsan
makelst
markup_oops.pl
mkcompile_h mkcompile_h: use printf for LINUX_COMPILE_BY 2019-12-14 15:53:04 +09:00
mkmakefile
mksysmap
mkuboot.sh
module-common.lds
modules-check.sh
namespace.pl
nsdeps scripts/nsdeps: support nsdeps for external module builds 2019-11-11 20:10:01 +09:00
objdiff
parse-maintainers.pl
patch-kernel
profile2linkerlist.pl
prune-kernel
recordmcount.c
recordmcount.h
recordmcount.pl
setlocalversion scripts: setlocalversion: replace backquote to dollar parenthesis 2019-11-11 20:10:01 +09:00
show_delta
sign-file.c
sortextable.c
sortextable.h
spdxcheck-test.sh
spdxcheck.py
spelling.txt scripts/spelling.txt: add more spellings to spelling.txt 2019-12-01 06:29:17 -08:00
sphinx-pre-install scripts/sphinx-pre-install: fix Arch latexmk dependency 2019-11-07 13:17:24 -07:00
split-man.pl
stackdelta
stackusage
subarch.include
tags.sh
tools-support-relr.sh scripts/tools-support-relr.sh: un-quote variables 2019-11-13 10:52:05 +00:00
unifdef.c
ver_linux scripts/ver_linux: add Bison and Flex to the checklist 2019-11-11 20:10:01 +09:00
xen-hypercalls.sh
xz_wrap.sh