Commit 1bc9dd3a authored by Sumanth Korikkar's avatar Sumanth Korikkar Committed by Greg Kroah-Hartman
Browse files

s390/vdso: filter out mno-pic-data-is-text-relative cflag



[ Upstream commit d15e4314 ]

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: default avatarSumanth Korikkar <sumanthk@linux.ibm.com>
Acked-by: default avatarIlya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
Stable-dep-of: 10f70525 ("s390/vdso: Generate unwind information for C modules")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6dbeee16
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment