diff options
author | Petr Machata <pmachata@redhat.com> | 2012-08-01 21:41:36 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-08-07 14:28:58 +0200 |
commit | 30a941ca9f463d0d862e5c3dfdb5a867fd2dcb40 (patch) | |
tree | 8a87258f6446749f1f2dc253fb0b994746f11ade /tests/run-test-archive64.sh | |
parent | e1873141a517738d8c50923e40525bb2ae6db68a (diff) | |
download | elfutils-30a941ca9f463d0d862e5c3dfdb5a867fd2dcb40.tar.gz |
Test case for handling archives with 64-bit symbol table
Signed-off-by: Petr Machata <pmachata@redhat.com>
Diffstat (limited to 'tests/run-test-archive64.sh')
-rwxr-xr-x | tests/run-test-archive64.sh | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/run-test-archive64.sh b/tests/run-test-archive64.sh new file mode 100755 index 00000000..26552ac9 --- /dev/null +++ b/tests/run-test-archive64.sh @@ -0,0 +1,43 @@ +#! /bin/sh +# Copyright (C) 2012 Red Hat, Inc. +# This file is part of elfutils. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# elfutils is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +. $srcdir/test-subr.sh + +# The test archive was produced on an s390x machine using the +# following command sequence: +# echo 'int aaa(void){}' | gcc -x c /dev/stdin -c -o aaa.o +# echo 'int bbb(void){} int bbb2(void){}' | gcc -x c /dev/stdin -c -o bbb.o +# echo 'int ccc(void){} int ccc2(void){} int ccc3(void){}' \ +# | gcc -x c /dev/stdin -c -o ccc.o +# ar cru testarchive64.a aaa.o bbb.o ccc.o +testfiles testarchive64.a + +testrun_compare ../src/readelf -c testarchive64.a <<\EOF + +Index of archive 'testarchive64.a' has 7 entries: +Archive member 'aaa.o' contains: + aaa +Archive member 'bbb.o' contains: + bbb + bbb2 +Archive member 'ccc.o' contains: + ccc + ccc2 + ccc3 +EOF + +exit 0 |