]> git.ipfire.org Git - thirdparty/linux.git/commit
s390: add relocs tool
authorJosh Poimboeuf <jpoimboe@kernel.org>
Mon, 19 Feb 2024 13:27:32 +0000 (14:27 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 20 Feb 2024 13:37:33 +0000 (14:37 +0100)
commit55dc65b46023540d5136dcd1f3076661f850dd99
treeed2c12b411c4ef95256fd487403f98bfc309eca5
parent8192a1b3807510d0ed5be1f8988c08f8d41cced9
s390: add relocs tool

This 'relocs' tool is copied from the x86 version, ported for s390, and
greatly simplified to remove unnecessary features.

It reads vmlinux and outputs assembly to create a .vmlinux.relocs_64
section which contains the offsets of all R_390_64 relocations which
apply to allocatable sections.

Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Link: https://lore.kernel.org/r/20240219132734.22881-3-sumanthk@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/tools/.gitignore
arch/s390/tools/Makefile
arch/s390/tools/relocs.c [new file with mode: 0644]