2 # Copyright (C) 2012 Red Hat, Inc.
3 # This file is part of elfutils.
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # elfutils is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 . $srcdir/test-subr.sh
20 # The test archive was produced on an s390x machine using the
21 # following command sequence:
22 # echo 'int aaa(void){}' | gcc -x c /dev/stdin -c -o aaa.o
23 # echo 'int bbb(void){} int bbb2(void){}' | gcc -x c /dev/stdin -c -o bbb.o
24 # echo 'int ccc(void){} int ccc2(void){} int ccc3(void){}' \
25 # | gcc -x c /dev/stdin -c -o ccc.o
26 # ar cru testarchive64.a aaa.o bbb.o ccc.o
27 testfiles testarchive64.a
29 testrun_compare ../src/readelf -c testarchive64.a <<\EOF
31 Index of archive 'testarchive64.a' has 7 entries:
32 Archive member 'aaa.o' contains:
34 Archive member 'bbb.o' contains:
37 Archive member 'ccc.o' contains: