Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
s390/kpatch-build: add -fPIC flag with -mno-pic-data-is-text-relative
-mno-pic-data-is-text-relative compiler flag expects -fPIC/-fPIE flag along with it. Since kernel commit 778666df60f0 ("s390: compile relocatable kernel without -fPIE"), the -fPIC/-fPIE flag is missing when creating kpatch module and this can lead to the following error: cc1: error: ‘-mno-pic-data-is-text-relative’ cannot be used without ‘-fpic’/‘-fPIC’. Previously kpatch-build didnt show up this issue, as the previous kernel was built with -fPIE. Fix kpatch-build by including -fPIC flag in ARCH_KCFLAGS for s390 platform. This ensures compatibility of kpatch-build with the latest kernel. Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
- Loading branch information