File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
33SCRATCH=scratch/$( basename " $0 " .sh)
44PATCHELF=$( readlink -f " ../src/patchelf" )
5+ READELF=${READELF:- readelf}
56
67rm -rf " ${SCRATCH} "
78mkdir -p " ${SCRATCH} "
@@ -18,7 +19,7 @@ ${PATCHELF} --add-needed ./libbar.so simple
1819# Test that repeatedly modifying a string inside a shared library does not
1920# corrupt it due to the addition of multiple PT_LOAD entries
2021# ##############################################################################
21- load_segments_before=$( readelf -W -l libbar.so | grep -c LOAD)
22+ load_segments_before=$( ${READELF} -W -l libbar.so | grep -c LOAD)
2223
2324for _ in $( seq 1 100)
2425do
2728 ./simple || exit 1
2829done
2930
30- load_segments_after=$( readelf -W -l libbar.so | grep -c LOAD)
31+ load_segments_after=$( ${READELF} -W -l libbar.so | grep -c LOAD)
3132
3233# ##############################################################################
3334# To be even more strict, check that we don't add too many extra LOAD entries
You can’t perform that action at this time.
0 commit comments