327f2f1442dc337975835dcc721cad0f1dc865e3
[platform/upstream/elfutils.git] / tests / run-alldts.sh
1 #! /bin/sh
2 # Copyright (C) 2011 Red Hat, Inc.
3 # This file is part of Red Hat elfutils.
4 #
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.
8 #
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.
13 #
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.
17 #
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>.
25
26 . $srcdir/test-subr.sh
27
28 # This will produce "testfile-alldts" file
29 ./alldts
30
31 testrun_compare ../src/readelf -d testfile-alldts <<\EOF
32
33 Dynamic segment contains 66 entries:
34  Addr: 0x000001a0  Offset: 0x000078  Link to section: [ 0] ''
35   Type              Value
36   NULL              
37   NEEDED            Shared library: [(null)]
38   PLTRELSZ          3735928559 (bytes)
39   PLTGOT            0xdeadbeef
40   HASH              0xdeadbeef
41   STRTAB            0xdeadbeef
42   SYMTAB            0xdeadbeef
43   RELA              0xdeadbeef
44   RELASZ            3735928559 (bytes)
45   RELAENT           3735928559 (bytes)
46   STRSZ             3735928559 (bytes)
47   SYMENT            3735928559 (bytes)
48   INIT              0xdeadbeef
49   FINI              0xdeadbeef
50   SONAME            Library soname: [(null)]
51   RPATH             Library rpath: [(null)]
52   SYMBOLIC          0xdeadbeef
53   REL               0xdeadbeef
54   RELSZ             3735928559 (bytes)
55   RELENT            3735928559 (bytes)
56   PLTREL            ???
57   DEBUG             
58   TEXTREL           
59   JMPREL            0xdeadbeef
60   BIND_NOW          
61   INIT_ARRAY        0xdeadbeef
62   FINI_ARRAY        0xdeadbeef
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
70   VERSYM            0xdeadbeef
71   GNU_PRELINKED     0xdeadbeef
72   GNU_CONFLICTSZ    3735928559 (bytes)
73   GNU_LIBLISTSZ     3735928559 (bytes)
74   CHECKSUM          0xdeadbeef
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)
82   GNU_HASH          0xdeadbeef
83   TLSDESC_PLT       0xdeadbeef
84   TLSDESC_GOT       0xdeadbeef
85   GNU_CONFLICT      0xdeadbeef
86   GNU_LIBLIST       0xdeadbeef
87   CONFIG            0xdeadbeef
88   DEPAUDIT          0xdeadbeef
89   AUDIT             0xdeadbeef
90   PLTPAD            0xdeadbeef
91   MOVETAB           0xdeadbeef
92   SYMINFO           0xdeadbeef
93   RELACOUNT         3735928559
94   RELCOUNT          3735928559
95   FLAGS_1           NOW GLOBAL GROUP NODELETE INITFIRST NOOPEN ORIGIN TRANS INTERPOSE NODEFLIB NODUMP CONFALT DISPRELDNE DISPRELPND 0xdeac0000
96   VERDEF            0xdeadbeef
97   VERDEFNUM         3735928559
98   VERNEED           0xdeadbeef
99   VERNEEDNUM        3735928559
100   AUXILIARY         0xdeadbeef
101   FILTER            0xdeadbeef
102 EOF
103
104 rm -f testfile-alldts
105
106 exit 0