summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorYing Sun <sunying@isrc.iscas.ac.cn>2024-07-11 11:32:36 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2024-08-15 03:44:33 +0300
commitc6ebf2c528470a09be77d0d9df2c6617ea037ac5 (patch)
treee583b674c81734e695607fe34c4efeece5ad05b5 /tools/perf/scripts/python/exported-sql-viewer.py
parentf15c21a3de1b5321ba4ae2c6c8f2e63b839d49fa (diff)
downloadlinux-c6ebf2c528470a09be77d0d9df2c6617ea037ac5.tar.xz
riscv/kexec_file: Fix relocation type R_RISCV_ADD16 and R_RISCV_SUB16 unknown
Runs on the kernel with CONFIG_RISCV_ALTERNATIVE enabled: kexec -sl vmlinux Error: kexec_image: Unknown rela relocation: 34 kexec_image: Error loading purgatory ret=-8 and kexec_image: Unknown rela relocation: 38 kexec_image: Error loading purgatory ret=-8 The purgatory code uses the 16-bit addition and subtraction relocation type, but not handled, resulting in kexec_file_load failure. So add handle to arch_kexec_apply_relocations_add(). Tested on RISC-V64 Qemu-virt, issue fixed. Co-developed-by: Petr Tesarik <petr@tesarici.cz> Signed-off-by: Petr Tesarik <petr@tesarici.cz> Signed-off-by: Ying Sun <sunying@isrc.iscas.ac.cn> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20240711083236.2859632-1-sunying@isrc.iscas.ac.cn Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions