1da0c48c4Sopenharmony_ci#! /bin/sh
2da0c48c4Sopenharmony_ci# Copyright (C) 2011 Red Hat, Inc.
3da0c48c4Sopenharmony_ci# This file is part of elfutils.
4da0c48c4Sopenharmony_ci#
5da0c48c4Sopenharmony_ci# This file is free software; you can redistribute it and/or modify
6da0c48c4Sopenharmony_ci# it under the terms of the GNU General Public License as published by
7da0c48c4Sopenharmony_ci# the Free Software Foundation; either version 3 of the License, or
8da0c48c4Sopenharmony_ci# (at your option) any later version.
9da0c48c4Sopenharmony_ci#
10da0c48c4Sopenharmony_ci# elfutils is distributed in the hope that it will be useful, but
11da0c48c4Sopenharmony_ci# WITHOUT ANY WARRANTY; without even the implied warranty of
12da0c48c4Sopenharmony_ci# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13da0c48c4Sopenharmony_ci# GNU General Public License for more details.
14da0c48c4Sopenharmony_ci#
15da0c48c4Sopenharmony_ci# You should have received a copy of the GNU General Public License
16da0c48c4Sopenharmony_ci# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17da0c48c4Sopenharmony_ci
18da0c48c4Sopenharmony_ci. $srcdir/test-subr.sh
19da0c48c4Sopenharmony_ci
20da0c48c4Sopenharmony_citempfiles testfile-alldts
21da0c48c4Sopenharmony_ci
22da0c48c4Sopenharmony_ci# This will produce "testfile-alldts" file
23da0c48c4Sopenharmony_citestrun ${abs_builddir}/alldts
24da0c48c4Sopenharmony_ci
25da0c48c4Sopenharmony_citestrun_compare ${abs_top_builddir}/src/readelf -d testfile-alldts <<\EOF
26da0c48c4Sopenharmony_ci
27da0c48c4Sopenharmony_ciDynamic segment contains 66 entries:
28da0c48c4Sopenharmony_ci Addr: 0x000001a0  Offset: 0x000078  Link to section: [ 0] ''
29da0c48c4Sopenharmony_ci  Type              Value
30da0c48c4Sopenharmony_ci  NEEDED            Shared library: [(null)]
31da0c48c4Sopenharmony_ci  PLTRELSZ          3735928559 (bytes)
32da0c48c4Sopenharmony_ci  PLTGOT            0xdeadbeef
33da0c48c4Sopenharmony_ci  HASH              0xdeadbeef
34da0c48c4Sopenharmony_ci  STRTAB            0xdeadbeef
35da0c48c4Sopenharmony_ci  SYMTAB            0xdeadbeef
36da0c48c4Sopenharmony_ci  RELA              0xdeadbeef
37da0c48c4Sopenharmony_ci  RELASZ            3735928559 (bytes)
38da0c48c4Sopenharmony_ci  RELAENT           3735928559 (bytes)
39da0c48c4Sopenharmony_ci  STRSZ             3735928559 (bytes)
40da0c48c4Sopenharmony_ci  SYMENT            3735928559 (bytes)
41da0c48c4Sopenharmony_ci  INIT              0xdeadbeef
42da0c48c4Sopenharmony_ci  FINI              0xdeadbeef
43da0c48c4Sopenharmony_ci  SONAME            Library soname: [(null)]
44da0c48c4Sopenharmony_ci  RPATH             Library rpath: [(null)]
45da0c48c4Sopenharmony_ci  SYMBOLIC          0xdeadbeef
46da0c48c4Sopenharmony_ci  REL               0xdeadbeef
47da0c48c4Sopenharmony_ci  RELSZ             3735928559 (bytes)
48da0c48c4Sopenharmony_ci  RELENT            3735928559 (bytes)
49da0c48c4Sopenharmony_ci  PLTREL            ???
50da0c48c4Sopenharmony_ci  DEBUG             
51da0c48c4Sopenharmony_ci  TEXTREL           
52da0c48c4Sopenharmony_ci  JMPREL            0xdeadbeef
53da0c48c4Sopenharmony_ci  BIND_NOW          
54da0c48c4Sopenharmony_ci  INIT_ARRAY        0xdeadbeef
55da0c48c4Sopenharmony_ci  FINI_ARRAY        0xdeadbeef
56da0c48c4Sopenharmony_ci  INIT_ARRAYSZ      3735928559 (bytes)
57da0c48c4Sopenharmony_ci  FINI_ARRAYSZ      3735928559 (bytes)
58da0c48c4Sopenharmony_ci  RUNPATH           Library runpath: [(null)]
59da0c48c4Sopenharmony_ci  FLAGS             ORIGIN SYMBOLIC TEXTREL BIND_NOW 0xdeadbee0
60da0c48c4Sopenharmony_ci  PREINIT_ARRAY     0xdeadbeef
61da0c48c4Sopenharmony_ci  PREINIT_ARRAY     0xdeadbeef
62da0c48c4Sopenharmony_ci  PREINIT_ARRAYSZ   0xdeadbeef
63da0c48c4Sopenharmony_ci  VERSYM            0xdeadbeef
64da0c48c4Sopenharmony_ci  GNU_PRELINKED     0xdeadbeef
65da0c48c4Sopenharmony_ci  GNU_CONFLICTSZ    3735928559 (bytes)
66da0c48c4Sopenharmony_ci  GNU_LIBLISTSZ     3735928559 (bytes)
67da0c48c4Sopenharmony_ci  CHECKSUM          0xdeadbeef
68da0c48c4Sopenharmony_ci  PLTPADSZ          3735928559 (bytes)
69da0c48c4Sopenharmony_ci  MOVEENT           3735928559 (bytes)
70da0c48c4Sopenharmony_ci  MOVESZ            3735928559 (bytes)
71da0c48c4Sopenharmony_ci  FEATURE_1         PARINIT CONFEXP 0xdeadbeec
72da0c48c4Sopenharmony_ci  POSFLAG_1         LAZYLOAD GROUPPERM 0xdeadbeec
73da0c48c4Sopenharmony_ci  SYMINSZ           3735928559 (bytes)
74da0c48c4Sopenharmony_ci  SYMINENT          3735928559 (bytes)
75da0c48c4Sopenharmony_ci  GNU_HASH          0xdeadbeef
76da0c48c4Sopenharmony_ci  TLSDESC_PLT       0xdeadbeef
77da0c48c4Sopenharmony_ci  TLSDESC_GOT       0xdeadbeef
78da0c48c4Sopenharmony_ci  GNU_CONFLICT      0xdeadbeef
79da0c48c4Sopenharmony_ci  GNU_LIBLIST       0xdeadbeef
80da0c48c4Sopenharmony_ci  CONFIG            0xdeadbeef
81da0c48c4Sopenharmony_ci  DEPAUDIT          0xdeadbeef
82da0c48c4Sopenharmony_ci  AUDIT             0xdeadbeef
83da0c48c4Sopenharmony_ci  PLTPAD            0xdeadbeef
84da0c48c4Sopenharmony_ci  MOVETAB           0xdeadbeef
85da0c48c4Sopenharmony_ci  SYMINFO           0xdeadbeef
86da0c48c4Sopenharmony_ci  RELACOUNT         3735928559
87da0c48c4Sopenharmony_ci  RELCOUNT          3735928559
88da0c48c4Sopenharmony_ci  FLAGS_1           NOW GLOBAL GROUP NODELETE INITFIRST NOOPEN ORIGIN TRANS INTERPOSE NODEFLIB NODUMP CONFALT DISPRELDNE DISPRELPND 0xdeac0000
89da0c48c4Sopenharmony_ci  VERDEF            0xdeadbeef
90da0c48c4Sopenharmony_ci  VERDEFNUM         3735928559
91da0c48c4Sopenharmony_ci  VERNEED           0xdeadbeef
92da0c48c4Sopenharmony_ci  VERNEEDNUM        3735928559
93da0c48c4Sopenharmony_ci  AUXILIARY         0xdeadbeef
94da0c48c4Sopenharmony_ci  FILTER            0xdeadbeef
95da0c48c4Sopenharmony_ci  NULL              
96da0c48c4Sopenharmony_ciEOF
97da0c48c4Sopenharmony_ci
98da0c48c4Sopenharmony_ciexit 0
99