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