tests/toolbox: detect endianness with PIE executables
PATCH v2 1/13 tests/toolbox: detect endianness with PIE executables
Signed-off-by Ben Boeckel <[email protected]>
--- tests/toolbox.inc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/toolbox.inc.sh +2 -2
@@ -13,10 +13,10 @@ echo == $OUTPUTFILE = endian=`file -L /proc/$$/exe` -if expr "$endian" : '.* MSB \+\(executable\|shared object\).*' >&/dev/null +if expr "$endian" : '.* MSB \+\(pie executable\|executable\|shared object\).*' >&/dev/null then endian¾ -elif expr "$endian" : '.* LSB \+\(executable\|shared object\).*' >&/dev/null +elif expr "$endian" : '.* LSB \+\(pie executable\|executable\|shared object\).*' >&/dev/null then endian=LE else
Signature · 1 line
2.21.0