linux-stable/arch/s390/kernel/vdso32
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 s390/vdso: add minimal compat vdso 2021-07-08 15:37:28 +02:00
Makefile s390/vdso: filter out mno-pic-data-is-text-relative cflag 2023-06-28 13:57:10 +02:00
gen_vdso_offsets.sh s390/vdso: add minimal compat vdso 2021-07-08 15:37:28 +02:00
note.S s390/vdso: add minimal compat vdso 2021-07-08 15:37:28 +02:00
vdso32.lds.S s390/vdso: add .got.plt in vdso linker script 2021-07-30 17:08:21 +02:00
vdso32_wrapper.S s390/vdso: add minimal compat vdso 2021-07-08 15:37:28 +02:00
vdso_user_wrapper.S s390/vdso: use __ALIGN instead of open coded .align 2023-03-20 11:12:47 +01:00