exit 1 if output binaries contain Text Relocations. This will fail the CI job.

ffmpeg_4.4.2
Javernaut 5 years ago
parent 0a78d77024
commit 58d0eae517
  1. 1
      .travis.yml
  2. 9
      ffmpeg-android-maker.sh

@ -9,4 +9,3 @@ before_install:
- cat $ANDROID_NDK_HOME/source.properties
script:
- bash -e ffmpeg-android-maker.sh
- cat stats/text-relocations.txt

@ -190,7 +190,14 @@ function assemble() {
# Saving stats about text relocation presence.
# If the result file doesn't have 'TEXTREL' at all, then we are good.
${CROSS_PREFIX}readelf --dynamic ${BUILD_DIR}/${ABI}/lib/*.so | grep 'TEXTREL\|File' >> ${STATS_DIR}/text-relocations.txt
TEXT_REL_STATS_FILE=${STATS_DIR}/text-relocations.txt
${CROSS_PREFIX}readelf --dynamic ${BUILD_DIR}/${ABI}/lib/*.so | grep 'TEXTREL\|File' >> ${TEXT_REL_STATS_FILE}
if grep -q TEXTREL ${TEXT_REL_STATS_FILE}; then
echo "There are text relocations in output files:"
cat ${TEXT_REL_STATS_FILE}
exit 1
fi
cd ${BASE_DIR}
}

Loading…
Cancel
Save