On Tue, Feb 13, 2024 at 11:47:05AM +0100, Sumanth Korikkar wrote: > From: Josh Poimboeuf <jpoimboe@xxxxxxxxxx> > > 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. > > Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx> > --- > arch/s390/tools/.gitignore | 1 + > arch/s390/tools/Makefile | 5 + > arch/s390/tools/relocs.c | 390 +++++++++++++++++++++++++++++++++++++ > 3 files changed, 396 insertions(+) > create mode 100644 arch/s390/tools/relocs.c Acked-by: Vasily Gorbik <gor@xxxxxxxxxxxxx>