diff options
author | Josh Poimboeuf <jpoimboe@kernel.org> | 2024-02-19 16:27:32 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-02-20 16:37:33 +0300 |
commit | 55dc65b46023540d5136dcd1f3076661f850dd99 (patch) | |
tree | ed2c12b411c4ef95256fd487403f98bfc309eca5 /arch/s390/tools/Makefile | |
parent | 8192a1b3807510d0ed5be1f8988c08f8d41cced9 (diff) | |
download | linux-55dc65b46023540d5136dcd1f3076661f850dd99.tar.xz |
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>
Diffstat (limited to 'arch/s390/tools/Makefile')
-rw-r--r-- | arch/s390/tools/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/s390/tools/Makefile b/arch/s390/tools/Makefile index f9dd47ff9ac4..f2862364fb42 100644 --- a/arch/s390/tools/Makefile +++ b/arch/s390/tools/Makefile @@ -25,3 +25,8 @@ $(kapi)/facility-defs.h: $(obj)/gen_facilities FORCE $(kapi)/dis-defs.h: $(obj)/gen_opcode_table FORCE $(call filechk,dis-defs.h) + +hostprogs += relocs +PHONY += relocs +relocs: $(obj)/relocs + @: |