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 NEEDED Shared library: [(null)] 31 PLTRELSZ 3735928559 (bytes) 32 PLTGOT 0xdeadbeef 33 HASH 0xdeadbeef 34 STRTAB 0xdeadbeef 35 SYMTAB 0xdeadbeef 36 RELA 0xdeadbeef 37 RELASZ 3735928559 (bytes) 38 RELAENT 3735928559 (bytes) 39 STRSZ 3735928559 (bytes) 40 SYMENT 3735928559 (bytes) 41 INIT 0xdeadbeef 42 FINI 0xdeadbeef 43 SONAME Library soname: [(null)] 44 RPATH Library rpath: [(null)] 45 SYMBOLIC 0xdeadbeef 46 REL 0xdeadbeef 47 RELSZ 3735928559 (bytes) 48 RELENT 3735928559 (bytes) 49 PLTREL ??? 50 DEBUG 51 TEXTREL 52 JMPREL 0xdeadbeef 53 BIND_NOW 54 INIT_ARRAY 0xdeadbeef 55 FINI_ARRAY 0xdeadbeef 56 INIT_ARRAYSZ 3735928559 (bytes) 57 FINI_ARRAYSZ 3735928559 (bytes) 58 RUNPATH Library runpath: [(null)] 59 FLAGS ORIGIN SYMBOLIC TEXTREL BIND_NOW 0xdeadbee0 60 PREINIT_ARRAY 0xdeadbeef 61 PREINIT_ARRAY 0xdeadbeef 62 PREINIT_ARRAYSZ 0xdeadbeef 63 VERSYM 0xdeadbeef 64 GNU_PRELINKED 0xdeadbeef 65 GNU_CONFLICTSZ 3735928559 (bytes) 66 GNU_LIBLISTSZ 3735928559 (bytes) 67 CHECKSUM 0xdeadbeef 68 PLTPADSZ 3735928559 (bytes) 69 MOVEENT 3735928559 (bytes) 70 MOVESZ 3735928559 (bytes) 71 FEATURE_1 PARINIT CONFEXP 0xdeadbeec 72 POSFLAG_1 LAZYLOAD GROUPPERM 0xdeadbeec 73 SYMINSZ 3735928559 (bytes) 74 SYMINENT 3735928559 (bytes) 75 GNU_HASH 0xdeadbeef 76 TLSDESC_PLT 0xdeadbeef 77 TLSDESC_GOT 0xdeadbeef 78 GNU_CONFLICT 0xdeadbeef 79 GNU_LIBLIST 0xdeadbeef 80 CONFIG 0xdeadbeef 81 DEPAUDIT 0xdeadbeef 82 AUDIT 0xdeadbeef 83 PLTPAD 0xdeadbeef 84 MOVETAB 0xdeadbeef 85 SYMINFO 0xdeadbeef 86 RELACOUNT 3735928559 87 RELCOUNT 3735928559 88 FLAGS_1 NOW GLOBAL GROUP NODELETE INITFIRST NOOPEN ORIGIN TRANS INTERPOSE NODEFLIB NODUMP CONFALT DISPRELDNE DISPRELPND 0xdeac0000 89 VERDEF 0xdeadbeef 90 VERDEFNUM 3735928559 91 VERNEED 0xdeadbeef 92 VERNEEDNUM 3735928559 93 AUXILIARY 0xdeadbeef 94 FILTER 0xdeadbeef 95 NULL 96EOF 97 98exit 0 99