1*7304104dSAndroid Build Coastguard Worker#! /bin/sh 2*7304104dSAndroid Build Coastguard Worker 3*7304104dSAndroid Build Coastguard Worker. $srcdir/strip-reloc-subr.sh 4*7304104dSAndroid Build Coastguard Worker 5*7304104dSAndroid Build Coastguard Worker# self test, shouldn't impact non-ET_REL files at all. 6*7304104dSAndroid Build Coastguard Workerruntest ${abs_top_builddir}/src/strip 0 7*7304104dSAndroid Build Coastguard Workerruntest ${abs_top_builddir}/src/strip.o 1 8*7304104dSAndroid Build Coastguard Worker 9*7304104dSAndroid Build Coastguard Worker# Copy ET_REL file for self-test and make sure to run with/without 10*7304104dSAndroid Build Coastguard Worker# elf section compression. 11*7304104dSAndroid Build Coastguard Workertempfiles strip-uncompressed.o strip-compressed.o 12*7304104dSAndroid Build Coastguard Workertestrun ${abs_top_builddir}/src/elfcompress -o strip-uncompressed.o -t none \ 13*7304104dSAndroid Build Coastguard Worker ${abs_top_builddir}/src/strip.o 14*7304104dSAndroid Build Coastguard Workertestrun ${abs_top_builddir}/src/elfcompress -o strip-compressed.o -t zlib \ 15*7304104dSAndroid Build Coastguard Worker --force ${abs_top_builddir}/src/strip.o 16*7304104dSAndroid Build Coastguard Worker 17*7304104dSAndroid Build Coastguard Workerruntest strip-uncompressed.o 1 18*7304104dSAndroid Build Coastguard Workerruntest strip-compressed.o 1 19*7304104dSAndroid Build Coastguard Worker 20*7304104dSAndroid Build Coastguard Workerexit $runtest_status 21