mirror of https://github.com/dynup/kpatch
kpatch/s390: Add gcc prerequisite flags for kpatch
1. -mno-pic-data-is-text-relative prevents relative addressing between code and data. This is needed to avoid relocation error when klp text and data are too far apart 2. Avoid generation of LANCHOR symbols through -fno-section-anchors. kpatch-build does not handle it well. Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
This commit is contained in:
parent
c6d0b5450b
commit
10002f5aa6
|
@ -937,6 +937,10 @@ if [[ "$ARCH" = "ppc64le" ]]; then
|
||||||
ARCH_KCFLAGS="-mcmodel=large -fplugin=$PLUGINDIR/ppc64le-plugin.so"
|
ARCH_KCFLAGS="-mcmodel=large -fplugin=$PLUGINDIR/ppc64le-plugin.so"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$ARCH" = "s390x" ]]; then
|
||||||
|
ARCH_KCFLAGS="-mno-pic-data-is-text-relative -fno-section-anchors"
|
||||||
|
fi
|
||||||
|
|
||||||
export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections \
|
export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections \
|
||||||
$ARCH_KCFLAGS $DEBUG_KCFLAGS"
|
$ARCH_KCFLAGS $DEBUG_KCFLAGS"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue