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