2 # Copyright (C) 2011 Red Hat, Inc.
3 # This file is part of Red Hat elfutils.
5 # Red Hat elfutils is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; version 2 of the License.
9 # Red Hat elfutils is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # General Public License for more details.
14 # You should have received a copy of the GNU General Public License along
15 # with Red Hat elfutils; if not, write to the Free Software Foundation,
16 # Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA.
18 # Red Hat elfutils is an included package of the Open Invention Network.
19 # An included package of the Open Invention Network is a package for which
20 # Open Invention Network licensees cross-license their patents. No patent
21 # license is granted, either expressly or impliedly, by designation as an
22 # included package. Should you wish to participate in the Open Invention
23 # Network licensing program, please visit www.openinventionnetwork.com
24 # <http://www.openinventionnetwork.com>.
26 . $srcdir/test-subr.sh
28 # This will produce "testfile-alldts" file
31 testrun_compare ../src/readelf -d testfile-alldts <<\EOF
33 Dynamic segment contains 66 entries:
34 Addr: 0x000001a0 Offset: 0x000078 Link to section: [ 0] ''
37 NEEDED Shared library: [(null)]
38 PLTRELSZ 3735928559 (bytes)
44 RELASZ 3735928559 (bytes)
45 RELAENT 3735928559 (bytes)
46 STRSZ 3735928559 (bytes)
47 SYMENT 3735928559 (bytes)
50 SONAME Library soname: [(null)]
51 RPATH Library rpath: [(null)]
54 RELSZ 3735928559 (bytes)
55 RELENT 3735928559 (bytes)
63 INIT_ARRAYSZ 3735928559 (bytes)
64 FINI_ARRAYSZ 3735928559 (bytes)
65 RUNPATH Library runpath: [(null)]
66 FLAGS ORIGIN SYMBOLIC TEXTREL BIND_NOW 0xdeadbee0
67 PREINIT_ARRAY 0xdeadbeef
68 PREINIT_ARRAY 0xdeadbeef
69 PREINIT_ARRAYSZ 0xdeadbeef
71 GNU_PRELINKED 0xdeadbeef
72 GNU_CONFLICTSZ 3735928559 (bytes)
73 GNU_LIBLISTSZ 3735928559 (bytes)
75 PLTPADSZ 3735928559 (bytes)
76 MOVEENT 3735928559 (bytes)
77 MOVESZ 3735928559 (bytes)
78 FEATURE_1 PARINIT CONFEXP 0xdeadbeec
79 POSFLAG_1 LAZYLOAD GROUPPERM 0xdeadbeec
80 SYMINSZ 3735928559 (bytes)
81 SYMINENT 3735928559 (bytes)
83 TLSDESC_PLT 0xdeadbeef
84 TLSDESC_GOT 0xdeadbeef
85 GNU_CONFLICT 0xdeadbeef
86 GNU_LIBLIST 0xdeadbeef
95 FLAGS_1 NOW GLOBAL GROUP NODELETE INITFIRST NOOPEN ORIGIN TRANS INTERPOSE NODEFLIB NODUMP CONFALT DISPRELDNE DISPRELPND 0xdeac0000
104 rm -f testfile-alldts