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:
Joe Lawrence 2024-07-16 09:37:54 -04:00 committed by GitHub
commit f1ce4791d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1237,6 +1237,7 @@ fi
if [[ "$ARCH" = "s390x" ]]; then
ARCH_KCFLAGS="-mno-pic-data-is-text-relative -fno-section-anchors"
! kernel_version_gte 6.10.0 && ARCH_KCFLAGS+=" -fPIE"
fi
export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections \