linux/arch/s390/kernel/vdso64
Sumanth Korikkar d15e4314ab s390/vdso: filter out mno-pic-data-is-text-relative cflag
cmd_vdso_check checks if there are any dynamic relocations in
vdso64.so.dbg. When kernel is compiled with
-mno-pic-data-is-text-relative, R_390_RELATIVE relocs are generated and
this results in kernel build error.

kpatch uses -mno-pic-data-is-text-relative option when building the
kernel to prevent relative addressing between code and data. The flag
avoids relocation error when klp text and data are too far apart

kpatch does not patch vdso code and hence the
mno-pic-data-is-text-relative flag is not essential.

Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
2023-06-28 13:57:10 +02:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
gen_vdso_offsets.sh s390/vdso: add minimal compat vdso 2021-07-08 15:37:28 +02:00
getcpu.c s390/vdso: use union tod_clock 2021-02-13 17:17:54 +01:00
Makefile s390/vdso: filter out mno-pic-data-is-text-relative cflag 2023-06-28 13:57:10 +02:00
note.S s390: add a few more SPDX identifiers 2017-12-05 07:51:09 +01:00
vdso64_generic.c s390/vdso: add missing prototypes for vdso functions 2020-11-30 14:10:50 +01:00
vdso64_wrapper.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vdso64.lds.S s390/vdso: add .got.plt in vdso linker script 2021-07-30 17:08:21 +02:00
vdso_user_wrapper.S s390/vdso: use __ALIGN instead of open coded .align 2023-03-20 11:12:47 +01:00
vdso.h s390/vdso: add missing prototypes for vdso functions 2020-11-30 14:10:50 +01:00