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 20tempfiles testfile-alldts 21 22# This will produce "testfile-alldts" file 23testrun ${abs_builddir}/alldts 24 25testrun_compare ${abs_top_builddir}/src/readelf -d testfile-alldts <<\EOF 26 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 98exit 0 99