Skip to content

Commit

Permalink
Merge pull request #1400 from sumanthkorikkar/add-fpic-flag-s390
Browse files Browse the repository at this point in the history
s390/kpatch-build: add -fPIC flag with -mno-pic-data-is-text-relative
  • Loading branch information
joe-lawrence authored Jul 16, 2024
2 parents 6457c4c + 5695dce commit f1ce479
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kpatch-build/kpatch-build
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit f1ce479

Please sign in to comment.