Merge pull request #1005 from joe-lawrence/ppc64le-new_symbols

kpatch-build: remove localentry info from ppc64le new_symbols file
This commit is contained in:
Josh Poimboeuf 2019-07-23 08:14:24 -05:00 committed by GitHub
commit 33d174669b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -952,6 +952,7 @@ if ! "$KPATCH_MODULE"; then
fi
readelf --wide --symbols "$TEMPDIR/patch/$MODNAME.ko" 2>/dev/null | \
sed -r 's/\s+\[<localentry>: 8\]//' | \
awk '($4=="FUNC" || $4=="OBJECT") && ($5=="GLOBAL" || $5=="WEAK") && $7!="UND" {print $NF}' \
>"${TEMPDIR}"/new_symbols