1*7304104dSAndroid Build Coastguard Worker#! /bin/sh 2*7304104dSAndroid Build Coastguard Worker 3*7304104dSAndroid Build Coastguard Worker. $srcdir/test-subr.sh 4*7304104dSAndroid Build Coastguard Worker 5*7304104dSAndroid Build Coastguard Worker# echo "int main () {}" | gcc -xc -o testfile-arm-flags - 6*7304104dSAndroid Build Coastguard Workertestfiles testfile-arm-flags 7*7304104dSAndroid Build Coastguard Worker 8*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/src/readelf -h testfile-arm-flags <<\EOF 9*7304104dSAndroid Build Coastguard WorkerELF Header: 10*7304104dSAndroid Build Coastguard Worker Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 11*7304104dSAndroid Build Coastguard Worker Class: ELF32 12*7304104dSAndroid Build Coastguard Worker Data: 2's complement, little endian 13*7304104dSAndroid Build Coastguard Worker Ident Version: 1 (current) 14*7304104dSAndroid Build Coastguard Worker OS/ABI: UNIX - System V 15*7304104dSAndroid Build Coastguard Worker ABI Version: 0 16*7304104dSAndroid Build Coastguard Worker Type: DYN (Shared object file) 17*7304104dSAndroid Build Coastguard Worker Machine: ARM 18*7304104dSAndroid Build Coastguard Worker Version: 1 (current) 19*7304104dSAndroid Build Coastguard Worker Entry point address: 0x3d1 20*7304104dSAndroid Build Coastguard Worker Start of program headers: 52 (bytes into file) 21*7304104dSAndroid Build Coastguard Worker Start of section headers: 6920 (bytes into file) 22*7304104dSAndroid Build Coastguard Worker Flags: Version5 EABI, hard-float ABI 23*7304104dSAndroid Build Coastguard Worker Size of this header: 52 (bytes) 24*7304104dSAndroid Build Coastguard Worker Size of program header entries: 32 (bytes) 25*7304104dSAndroid Build Coastguard Worker Number of program headers entries: 9 26*7304104dSAndroid Build Coastguard Worker Size of section header entries: 40 (bytes) 27*7304104dSAndroid Build Coastguard Worker Number of section headers entries: 29 28*7304104dSAndroid Build Coastguard Worker Section header string table index: 28 29*7304104dSAndroid Build Coastguard Worker 30*7304104dSAndroid Build Coastguard WorkerEOF 31