Blame tests/run-readelf-zx.sh

Packit 032894
#! /bin/sh
Packit 032894
# Copyright (C) 2015 Red Hat, Inc.
Packit 032894
# This file is part of elfutils.
Packit 032894
#
Packit 032894
# This file is free software; you can redistribute it and/or modify
Packit 032894
# it under the terms of the GNU General Public License as published by
Packit 032894
# the Free Software Foundation; either version 3 of the License, or
Packit 032894
# (at your option) any later version.
Packit 032894
#
Packit 032894
# elfutils is distributed in the hope that it will be useful, but
Packit 032894
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 032894
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 032894
# GNU General Public License for more details.
Packit 032894
#
Packit 032894
# You should have received a copy of the GNU General Public License
Packit 032894
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit 032894
Packit 032894
. $srcdir/test-subr.sh
Packit 032894
Packit 032894
# See run-elfgetchdr.sh for testfiles.
Packit 032894
Packit 032894
testfiles testfile-zgnu64
Packit 032894
testrun_compare ${abs_top_builddir}/src/readelf -z -x.zdebug_aranges testfile-zgnu64 <<\EOF
Packit 032894
Packit 032894
Hex dump of section [2] '.zdebug_aranges', 50 bytes (96 uncompressed) at offset 0x260:
Packit 032894
  0x00000000 2c000000 02000000 00000800 00000000 ,...............
Packit 032894
  0x00000010 78004000 00000000 14000000 00000000 x.@.............
Packit 032894
  0x00000020 00000000 00000000 00000000 00000000 ................
Packit 032894
  0x00000030 2c000000 02005500 00000800 00000000 ,.....U.........
Packit 032894
  0x00000040 8c004000 00000000 16000000 00000000 ..@.............
Packit 032894
  0x00000050 00000000 00000000 00000000 00000000 ................
Packit 032894
EOF
Packit 032894
Packit 032894
testfiles testfile-zgabi64
Packit 032894
testrun_compare ${abs_top_builddir}/src/readelf -z -x.debug_aranges testfile-zgabi64 <<\EOF
Packit 032894
Packit 032894
Hex dump of section [2] '.debug_aranges', 62 bytes (96 uncompressed) at offset 0x260:
Packit 032894
  0x00000000 2c000000 02000000 00000800 00000000 ,...............
Packit 032894
  0x00000010 78004000 00000000 14000000 00000000 x.@.............
Packit 032894
  0x00000020 00000000 00000000 00000000 00000000 ................
Packit 032894
  0x00000030 2c000000 02005500 00000800 00000000 ,.....U.........
Packit 032894
  0x00000040 8c004000 00000000 16000000 00000000 ..@.............
Packit 032894
  0x00000050 00000000 00000000 00000000 00000000 ................
Packit 032894
EOF
Packit 032894
Packit 032894
testfiles testfile-zgnu32
Packit 032894
testrun_compare ${abs_top_builddir}/src/readelf -z -x.zdebug_aranges testfile-zgnu32 <<\EOF
Packit 032894
Packit 032894
Hex dump of section [2] '.zdebug_aranges', 49 bytes (64 uncompressed) at offset 0x1c0:
Packit 032894
  0x00000000 1c000000 02000000 00000400 00000000 ................
Packit 032894
  0x00000010 54800408 14000000 00000000 00000000 T...............
Packit 032894
  0x00000020 1c000000 02004d00 00000400 00000000 ......M.........
Packit 032894
  0x00000030 68800408 16000000 00000000 00000000 h...............
Packit 032894
EOF
Packit 032894
Packit 032894
testfiles testfile-zgabi32
Packit 032894
testrun_compare ${abs_top_builddir}/src/readelf -z -x.debug_aranges testfile-zgabi32 <<\EOF
Packit 032894
Packit 032894
Hex dump of section [2] '.debug_aranges', 49 bytes (64 uncompressed) at offset 0x1c0:
Packit 032894
  0x00000000 1c000000 02000000 00000400 00000000 ................
Packit 032894
  0x00000010 54800408 14000000 00000000 00000000 T...............
Packit 032894
  0x00000020 1c000000 02004d00 00000400 00000000 ......M.........
Packit 032894
  0x00000030 68800408 16000000 00000000 00000000 h...............
Packit 032894
EOF
Packit 032894
Packit 032894
exit 0