2 # Copyright (C) 2011 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 # This will produce "testfile-alldts" file
23 testrun_compare ../src/readelf -d testfile-alldts <<\EOF
25 Dynamic segment contains 66 entries:
26 Addr: 0x000001a0 Offset: 0x000078 Link to section: [ 0] ''
29 NEEDED Shared library: [(null)]
30 PLTRELSZ 3735928559 (bytes)
36 RELASZ 3735928559 (bytes)
37 RELAENT 3735928559 (bytes)
38 STRSZ 3735928559 (bytes)
39 SYMENT 3735928559 (bytes)
42 SONAME Library soname: [(null)]
43 RPATH Library rpath: [(null)]
46 RELSZ 3735928559 (bytes)
47 RELENT 3735928559 (bytes)
55 INIT_ARRAYSZ 3735928559 (bytes)
56 FINI_ARRAYSZ 3735928559 (bytes)
57 RUNPATH Library runpath: [(null)]
58 FLAGS ORIGIN SYMBOLIC TEXTREL BIND_NOW 0xdeadbee0
59 PREINIT_ARRAY 0xdeadbeef
60 PREINIT_ARRAY 0xdeadbeef
61 PREINIT_ARRAYSZ 0xdeadbeef
63 GNU_PRELINKED 0xdeadbeef
64 GNU_CONFLICTSZ 3735928559 (bytes)
65 GNU_LIBLISTSZ 3735928559 (bytes)
67 PLTPADSZ 3735928559 (bytes)
68 MOVEENT 3735928559 (bytes)
69 MOVESZ 3735928559 (bytes)
70 FEATURE_1 PARINIT CONFEXP 0xdeadbeec
71 POSFLAG_1 LAZYLOAD GROUPPERM 0xdeadbeec
72 SYMINSZ 3735928559 (bytes)
73 SYMINENT 3735928559 (bytes)
75 TLSDESC_PLT 0xdeadbeef
76 TLSDESC_GOT 0xdeadbeef
77 GNU_CONFLICT 0xdeadbeef
78 GNU_LIBLIST 0xdeadbeef
87 FLAGS_1 NOW GLOBAL GROUP NODELETE INITFIRST NOOPEN ORIGIN TRANS INTERPOSE NODEFLIB NODUMP CONFALT DISPRELDNE DISPRELPND 0xdeac0000