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
29 # gcc -fPIC -shared -o testlib_dynseg.so testlib_dynseg.c
31 # GNU gold (GNU Binutils 2.22.52.20120402) 1.11
33 testfiles testlib_dynseg.so
35 testrun_compare ../src/readelf -d testlib_dynseg.so <<\EOF
37 Dynamic segment contains 28 entries:
38 Addr: 0x00000000000017e0 Offset: 0x0007e0 Link to section: [ 3] '.dynstr'
40 PLTGOT 0x00000000000019c8
42 JMPREL 0x0000000000000568
44 RELA 0x00000000000004d8
48 SYMTAB 0x0000000000000228
50 STRTAB 0x0000000000000360
52 GNU_HASH 0x0000000000000420
53 NEEDED Shared library: [libc.so.6]
54 NEEDED Shared library: [ld-linux-x86-64.so.2]
55 INIT 0x00000000000005b0
56 FINI 0x0000000000000748
57 VERSYM 0x0000000000000460
58 VERDEF 0x000000000000047c
60 VERNEED 0x0000000000000498