Blame tests/run-readelf-test1.sh

Packit 032894
#! /bin/sh
Packit 032894
# Copyright (C) 2005 Red Hat, Inc.
Packit 032894
# This file is part of elfutils.
Packit 032894
# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
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
original=${original:-testfile11}
Packit 032894
stripped=${stripped:-testfile7}
Packit 032894
debugout=${debugfile:+-f testfile.debug.temp -F $debugfile}
Packit 032894
Packit 032894
testfiles testfile3
Packit 032894
Packit 032894
tempfiles testfile.temp
Packit 032894
Packit 032894
testrun ${abs_top_builddir}/src/readelf -r testfile3 > testfile.temp
Packit 032894
Packit 032894
diff -u - testfile.temp <
Packit 032894
Packit 032894
Relocation section [ 8] '.rel.got' for section [19] '.got' at offset 0x294 contains 1 entry:
Packit 032894
  Offset      Type                 Value       Name
Packit 032894
  0x08049544  386_GLOB_DAT         0000000000  __gmon_start__
Packit 032894
Packit 032894
Relocation section [ 9] '.rel.plt' for section [11] '.plt' at offset 0x29c contains 4 entries:
Packit 032894
  Offset      Type                 Value       Name
Packit 032894
  0x08049534  386_JMP_SLOT         0x080482e4  __register_frame_info
Packit 032894
  0x08049538  386_JMP_SLOT         0x080482f4  __deregister_frame_info
Packit 032894
  0x0804953c  386_JMP_SLOT         0x08048304  __libc_start_main
Packit 032894
  0x08049540  386_JMP_SLOT         0x08048314  __cxa_finalize
Packit 032894
EOF
Packit 032894
Packit 032894
exit 0