mirror of https://github.com/dynup/kpatch
Merge pull request #1400 from sumanthkorikkar/add-fpic-flag-s390
s390/kpatch-build: add -fPIC flag with -mno-pic-data-is-text-relative
This commit is contained in:
commit
f1ce4791d2
|
@ -1237,6 +1237,7 @@ fi
|
||||||
|
|
||||||
if [[ "$ARCH" = "s390x" ]]; then
|
if [[ "$ARCH" = "s390x" ]]; then
|
||||||
ARCH_KCFLAGS="-mno-pic-data-is-text-relative -fno-section-anchors"
|
ARCH_KCFLAGS="-mno-pic-data-is-text-relative -fno-section-anchors"
|
||||||
|
! kernel_version_gte 6.10.0 && ARCH_KCFLAGS+=" -fPIE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections \
|
export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections \
|
||||||
|
|
Loading…
Reference in New Issue