blob: 6a9a9eceeb40512ae716f082397652b92858e441 [file] [log] [blame]
Marek Polacek494275c2011-03-28 16:00:38 +02001#! /bin/sh
2# Copyright (C) 2011 Red Hat, Inc.
Mark Wielaardde2ed972012-06-05 17:15:16 +02003# This file is part of elfutils.
Marek Polacek494275c2011-03-28 16:00:38 +02004#
Mark Wielaardde2ed972012-06-05 17:15:16 +02005# 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.
Marek Polacek494275c2011-03-28 16:00:38 +02009#
Mark Wielaardde2ed972012-06-05 17:15:16 +020010# elfutils is distributed in the hope that it will be useful, but
Marek Polacek494275c2011-03-28 16:00:38 +020011# WITHOUT ANY WARRANTY; without even the implied warranty of
Mark Wielaardde2ed972012-06-05 17:15:16 +020012# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
Marek Polacek494275c2011-03-28 16:00:38 +020014#
Mark Wielaardde2ed972012-06-05 17:15:16 +020015# 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/>.
Marek Polacek494275c2011-03-28 16:00:38 +020017
18. $srcdir/test-subr.sh
19
Mark Wielaarda6098312013-04-26 21:21:56 +020020tempfiles testfile-alldts
21
Marek Polacek494275c2011-03-28 16:00:38 +020022# This will produce "testfile-alldts" file
Mark Wielaard86be7922013-04-26 23:44:25 +020023testrun ${abs_builddir}/alldts
Marek Polacek494275c2011-03-28 16:00:38 +020024
Mark Wielaard86be7922013-04-26 23:44:25 +020025testrun_compare ${abs_top_builddir}/src/readelf -d testfile-alldts <<\EOF
Marek Polacek494275c2011-03-28 16:00:38 +020026
27Dynamic segment contains 66 entries:
28 Addr: 0x000001a0 Offset: 0x000078 Link to section: [ 0] ''
29 Type Value
30 NULL
31 NEEDED Shared library: [(null)]
32 PLTRELSZ 3735928559 (bytes)
33 PLTGOT 0xdeadbeef
34 HASH 0xdeadbeef
35 STRTAB 0xdeadbeef
36 SYMTAB 0xdeadbeef
37 RELA 0xdeadbeef
38 RELASZ 3735928559 (bytes)
39 RELAENT 3735928559 (bytes)
40 STRSZ 3735928559 (bytes)
41 SYMENT 3735928559 (bytes)
42 INIT 0xdeadbeef
43 FINI 0xdeadbeef
44 SONAME Library soname: [(null)]
45 RPATH Library rpath: [(null)]
46 SYMBOLIC 0xdeadbeef
47 REL 0xdeadbeef
48 RELSZ 3735928559 (bytes)
49 RELENT 3735928559 (bytes)
50 PLTREL ???
51 DEBUG
52 TEXTREL
53 JMPREL 0xdeadbeef
54 BIND_NOW
55 INIT_ARRAY 0xdeadbeef
56 FINI_ARRAY 0xdeadbeef
57 INIT_ARRAYSZ 3735928559 (bytes)
58 FINI_ARRAYSZ 3735928559 (bytes)
59 RUNPATH Library runpath: [(null)]
60 FLAGS ORIGIN SYMBOLIC TEXTREL BIND_NOW 0xdeadbee0
61 PREINIT_ARRAY 0xdeadbeef
62 PREINIT_ARRAY 0xdeadbeef
63 PREINIT_ARRAYSZ 0xdeadbeef
64 VERSYM 0xdeadbeef
65 GNU_PRELINKED 0xdeadbeef
66 GNU_CONFLICTSZ 3735928559 (bytes)
67 GNU_LIBLISTSZ 3735928559 (bytes)
68 CHECKSUM 0xdeadbeef
69 PLTPADSZ 3735928559 (bytes)
70 MOVEENT 3735928559 (bytes)
71 MOVESZ 3735928559 (bytes)
72 FEATURE_1 PARINIT CONFEXP 0xdeadbeec
73 POSFLAG_1 LAZYLOAD GROUPPERM 0xdeadbeec
74 SYMINSZ 3735928559 (bytes)
75 SYMINENT 3735928559 (bytes)
76 GNU_HASH 0xdeadbeef
77 TLSDESC_PLT 0xdeadbeef
78 TLSDESC_GOT 0xdeadbeef
79 GNU_CONFLICT 0xdeadbeef
80 GNU_LIBLIST 0xdeadbeef
81 CONFIG 0xdeadbeef
82 DEPAUDIT 0xdeadbeef
83 AUDIT 0xdeadbeef
84 PLTPAD 0xdeadbeef
85 MOVETAB 0xdeadbeef
86 SYMINFO 0xdeadbeef
87 RELACOUNT 3735928559
88 RELCOUNT 3735928559
89 FLAGS_1 NOW GLOBAL GROUP NODELETE INITFIRST NOOPEN ORIGIN TRANS INTERPOSE NODEFLIB NODUMP CONFALT DISPRELDNE DISPRELPND 0xdeac0000
90 VERDEF 0xdeadbeef
91 VERDEFNUM 3735928559
92 VERNEED 0xdeadbeef
93 VERNEEDNUM 3735928559
94 AUXILIARY 0xdeadbeef
95 FILTER 0xdeadbeef
96EOF
97
Marek Polacek494275c2011-03-28 16:00:38 +020098exit 0