1*7304104dSAndroid Build Coastguard Worker#! /bin/sh 2*7304104dSAndroid Build Coastguard Worker# Copyright (C) 2015 Red Hat, Inc. 3*7304104dSAndroid Build Coastguard Worker# This file is part of elfutils. 4*7304104dSAndroid Build Coastguard Worker# 5*7304104dSAndroid Build Coastguard Worker# This file is free software; you can redistribute it and/or modify 6*7304104dSAndroid Build Coastguard Worker# it under the terms of the GNU General Public License as published by 7*7304104dSAndroid Build Coastguard Worker# the Free Software Foundation; either version 3 of the License, or 8*7304104dSAndroid Build Coastguard Worker# (at your option) any later version. 9*7304104dSAndroid Build Coastguard Worker# 10*7304104dSAndroid Build Coastguard Worker# elfutils is distributed in the hope that it will be useful, but 11*7304104dSAndroid Build Coastguard Worker# WITHOUT ANY WARRANTY; without even the implied warranty of 12*7304104dSAndroid Build Coastguard Worker# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*7304104dSAndroid Build Coastguard Worker# GNU General Public License for more details. 14*7304104dSAndroid Build Coastguard Worker# 15*7304104dSAndroid Build Coastguard Worker# You should have received a copy of the GNU General Public License 16*7304104dSAndroid Build Coastguard Worker# along with this program. If not, see <http://www.gnu.org/licenses/>. 17*7304104dSAndroid Build Coastguard Worker 18*7304104dSAndroid Build Coastguard Worker. $srcdir/test-subr.sh 19*7304104dSAndroid Build Coastguard Worker 20*7304104dSAndroid Build Coastguard Worker# See run-elfgetchdr.sh for testfiles. 21*7304104dSAndroid Build Coastguard Worker 22*7304104dSAndroid Build Coastguard Workertestfiles testfile-zgnu64 23*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata read testfile-zgnu64 <<\EOF 24*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 25*7304104dSAndroid Build Coastguard Worker2: .zdebug_aranges, GNU compressed, size: 60 26*7304104dSAndroid Build Coastguard Worker3: .zdebug_info, GNU compressed, size: aa 27*7304104dSAndroid Build Coastguard Worker4: .debug_abbrev, NOT compressed 28*7304104dSAndroid Build Coastguard Worker5: .zdebug_line, GNU compressed, size: 8d 29*7304104dSAndroid Build Coastguard Worker6: .shstrtab, NOT compressed 30*7304104dSAndroid Build Coastguard Worker7: .symtab, NOT compressed 31*7304104dSAndroid Build Coastguard Worker8: .strtab, NOT compressed 32*7304104dSAndroid Build Coastguard WorkerEOF 33*7304104dSAndroid Build Coastguard Worker 34*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgnu64 <<\EOF 35*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 36*7304104dSAndroid Build Coastguard Worker2: .zdebug_aranges, GNU compressed, size: 60 37*7304104dSAndroid Build Coastguard Worker3: .zdebug_info, GNU compressed, size: aa 38*7304104dSAndroid Build Coastguard Worker4: .debug_abbrev, NOT compressed 39*7304104dSAndroid Build Coastguard Worker5: .zdebug_line, GNU compressed, size: 8d 40*7304104dSAndroid Build Coastguard Worker6: .shstrtab, NOT compressed 41*7304104dSAndroid Build Coastguard Worker7: .symtab, NOT compressed 42*7304104dSAndroid Build Coastguard Worker8: .strtab, NOT compressed 43*7304104dSAndroid Build Coastguard WorkerEOF 44*7304104dSAndroid Build Coastguard Worker 45*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mem testfile-zgnu64 <<\EOF 46*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 47*7304104dSAndroid Build Coastguard Worker2: .zdebug_aranges, GNU compressed, size: 60 48*7304104dSAndroid Build Coastguard Worker3: .zdebug_info, GNU compressed, size: aa 49*7304104dSAndroid Build Coastguard Worker4: .debug_abbrev, NOT compressed 50*7304104dSAndroid Build Coastguard Worker5: .zdebug_line, GNU compressed, size: 8d 51*7304104dSAndroid Build Coastguard Worker6: .shstrtab, NOT compressed 52*7304104dSAndroid Build Coastguard Worker7: .symtab, NOT compressed 53*7304104dSAndroid Build Coastguard Worker8: .strtab, NOT compressed 54*7304104dSAndroid Build Coastguard WorkerEOF 55*7304104dSAndroid Build Coastguard Worker 56*7304104dSAndroid Build Coastguard Workertestfiles testfile-zgnu64be 57*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata read testfile-zgnu64be <<\EOF 58*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 59*7304104dSAndroid Build Coastguard Worker2: .eh_frame, NOT compressed 60*7304104dSAndroid Build Coastguard Worker3: .zdebug_aranges, GNU compressed, size: 60 61*7304104dSAndroid Build Coastguard Worker4: .zdebug_info, GNU compressed, size: 7e 62*7304104dSAndroid Build Coastguard Worker5: .debug_abbrev, NOT compressed 63*7304104dSAndroid Build Coastguard Worker6: .zdebug_line, GNU compressed, size: 8d 64*7304104dSAndroid Build Coastguard Worker7: .shstrtab, NOT compressed 65*7304104dSAndroid Build Coastguard Worker8: .symtab, NOT compressed 66*7304104dSAndroid Build Coastguard Worker9: .strtab, NOT compressed 67*7304104dSAndroid Build Coastguard WorkerEOF 68*7304104dSAndroid Build Coastguard Worker 69*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgnu64be <<\EOF 70*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 71*7304104dSAndroid Build Coastguard Worker2: .eh_frame, NOT compressed 72*7304104dSAndroid Build Coastguard Worker3: .zdebug_aranges, GNU compressed, size: 60 73*7304104dSAndroid Build Coastguard Worker4: .zdebug_info, GNU compressed, size: 7e 74*7304104dSAndroid Build Coastguard Worker5: .debug_abbrev, NOT compressed 75*7304104dSAndroid Build Coastguard Worker6: .zdebug_line, GNU compressed, size: 8d 76*7304104dSAndroid Build Coastguard Worker7: .shstrtab, NOT compressed 77*7304104dSAndroid Build Coastguard Worker8: .symtab, NOT compressed 78*7304104dSAndroid Build Coastguard Worker9: .strtab, NOT compressed 79*7304104dSAndroid Build Coastguard WorkerEOF 80*7304104dSAndroid Build Coastguard Worker 81*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mem testfile-zgnu64be <<\EOF 82*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 83*7304104dSAndroid Build Coastguard Worker2: .eh_frame, NOT compressed 84*7304104dSAndroid Build Coastguard Worker3: .zdebug_aranges, GNU compressed, size: 60 85*7304104dSAndroid Build Coastguard Worker4: .zdebug_info, GNU compressed, size: 7e 86*7304104dSAndroid Build Coastguard Worker5: .debug_abbrev, NOT compressed 87*7304104dSAndroid Build Coastguard Worker6: .zdebug_line, GNU compressed, size: 8d 88*7304104dSAndroid Build Coastguard Worker7: .shstrtab, NOT compressed 89*7304104dSAndroid Build Coastguard Worker8: .symtab, NOT compressed 90*7304104dSAndroid Build Coastguard Worker9: .strtab, NOT compressed 91*7304104dSAndroid Build Coastguard WorkerEOF 92*7304104dSAndroid Build Coastguard Worker 93*7304104dSAndroid Build Coastguard Workertestfiles testfile-zgabi64 94*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata read testfile-zgabi64 <<\EOF 95*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 96*7304104dSAndroid Build Coastguard Worker2: .debug_aranges, ELF compressed, size: 60 97*7304104dSAndroid Build Coastguard Worker3: .debug_info, ELF compressed, size: aa 98*7304104dSAndroid Build Coastguard Worker4: .debug_abbrev, NOT compressed 99*7304104dSAndroid Build Coastguard Worker5: .debug_line, ELF compressed, size: 8d 100*7304104dSAndroid Build Coastguard Worker6: .shstrtab, NOT compressed 101*7304104dSAndroid Build Coastguard Worker7: .symtab, NOT compressed 102*7304104dSAndroid Build Coastguard Worker8: .strtab, NOT compressed 103*7304104dSAndroid Build Coastguard WorkerEOF 104*7304104dSAndroid Build Coastguard Worker 105*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgabi64 <<\EOF 106*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 107*7304104dSAndroid Build Coastguard Worker2: .debug_aranges, ELF compressed, size: 60 108*7304104dSAndroid Build Coastguard Worker3: .debug_info, ELF compressed, size: aa 109*7304104dSAndroid Build Coastguard Worker4: .debug_abbrev, NOT compressed 110*7304104dSAndroid Build Coastguard Worker5: .debug_line, ELF compressed, size: 8d 111*7304104dSAndroid Build Coastguard Worker6: .shstrtab, NOT compressed 112*7304104dSAndroid Build Coastguard Worker7: .symtab, NOT compressed 113*7304104dSAndroid Build Coastguard Worker8: .strtab, NOT compressed 114*7304104dSAndroid Build Coastguard WorkerEOF 115*7304104dSAndroid Build Coastguard Worker 116*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mem testfile-zgabi64 <<\EOF 117*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 118*7304104dSAndroid Build Coastguard Worker2: .debug_aranges, ELF compressed, size: 60 119*7304104dSAndroid Build Coastguard Worker3: .debug_info, ELF compressed, size: aa 120*7304104dSAndroid Build Coastguard Worker4: .debug_abbrev, NOT compressed 121*7304104dSAndroid Build Coastguard Worker5: .debug_line, ELF compressed, size: 8d 122*7304104dSAndroid Build Coastguard Worker6: .shstrtab, NOT compressed 123*7304104dSAndroid Build Coastguard Worker7: .symtab, NOT compressed 124*7304104dSAndroid Build Coastguard Worker8: .strtab, NOT compressed 125*7304104dSAndroid Build Coastguard WorkerEOF 126*7304104dSAndroid Build Coastguard Worker 127*7304104dSAndroid Build Coastguard Workertestfiles testfile-zgabi64be 128*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata read testfile-zgabi64be <<\EOF 129*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 130*7304104dSAndroid Build Coastguard Worker2: .eh_frame, NOT compressed 131*7304104dSAndroid Build Coastguard Worker3: .debug_aranges, ELF compressed, size: 60 132*7304104dSAndroid Build Coastguard Worker4: .debug_info, ELF compressed, size: 7e 133*7304104dSAndroid Build Coastguard Worker5: .debug_abbrev, NOT compressed 134*7304104dSAndroid Build Coastguard Worker6: .debug_line, ELF compressed, size: 8d 135*7304104dSAndroid Build Coastguard Worker7: .shstrtab, NOT compressed 136*7304104dSAndroid Build Coastguard Worker8: .symtab, NOT compressed 137*7304104dSAndroid Build Coastguard Worker9: .strtab, NOT compressed 138*7304104dSAndroid Build Coastguard WorkerEOF 139*7304104dSAndroid Build Coastguard Worker 140*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgabi64be <<\EOF 141*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 142*7304104dSAndroid Build Coastguard Worker2: .eh_frame, NOT compressed 143*7304104dSAndroid Build Coastguard Worker3: .debug_aranges, ELF compressed, size: 60 144*7304104dSAndroid Build Coastguard Worker4: .debug_info, ELF compressed, size: 7e 145*7304104dSAndroid Build Coastguard Worker5: .debug_abbrev, NOT compressed 146*7304104dSAndroid Build Coastguard Worker6: .debug_line, ELF compressed, size: 8d 147*7304104dSAndroid Build Coastguard Worker7: .shstrtab, NOT compressed 148*7304104dSAndroid Build Coastguard Worker8: .symtab, NOT compressed 149*7304104dSAndroid Build Coastguard Worker9: .strtab, NOT compressed 150*7304104dSAndroid Build Coastguard WorkerEOF 151*7304104dSAndroid Build Coastguard Worker 152*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mem testfile-zgabi64be <<\EOF 153*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 154*7304104dSAndroid Build Coastguard Worker2: .eh_frame, NOT compressed 155*7304104dSAndroid Build Coastguard Worker3: .debug_aranges, ELF compressed, size: 60 156*7304104dSAndroid Build Coastguard Worker4: .debug_info, ELF compressed, size: 7e 157*7304104dSAndroid Build Coastguard Worker5: .debug_abbrev, NOT compressed 158*7304104dSAndroid Build Coastguard Worker6: .debug_line, ELF compressed, size: 8d 159*7304104dSAndroid Build Coastguard Worker7: .shstrtab, NOT compressed 160*7304104dSAndroid Build Coastguard Worker8: .symtab, NOT compressed 161*7304104dSAndroid Build Coastguard Worker9: .strtab, NOT compressed 162*7304104dSAndroid Build Coastguard WorkerEOF 163*7304104dSAndroid Build Coastguard Worker 164*7304104dSAndroid Build Coastguard Workertestfiles testfile-zgnu32 165*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata read testfile-zgnu32 <<\EOF 166*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 167*7304104dSAndroid Build Coastguard Worker2: .zdebug_aranges, GNU compressed, size: 40 168*7304104dSAndroid Build Coastguard Worker3: .zdebug_info, GNU compressed, size: 9a 169*7304104dSAndroid Build Coastguard Worker4: .debug_abbrev, NOT compressed 170*7304104dSAndroid Build Coastguard Worker5: .zdebug_line, GNU compressed, size: 85 171*7304104dSAndroid Build Coastguard Worker6: .shstrtab, NOT compressed 172*7304104dSAndroid Build Coastguard Worker7: .symtab, NOT compressed 173*7304104dSAndroid Build Coastguard Worker8: .strtab, NOT compressed 174*7304104dSAndroid Build Coastguard WorkerEOF 175*7304104dSAndroid Build Coastguard Worker 176*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgnu32 <<\EOF 177*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 178*7304104dSAndroid Build Coastguard Worker2: .zdebug_aranges, GNU compressed, size: 40 179*7304104dSAndroid Build Coastguard Worker3: .zdebug_info, GNU compressed, size: 9a 180*7304104dSAndroid Build Coastguard Worker4: .debug_abbrev, NOT compressed 181*7304104dSAndroid Build Coastguard Worker5: .zdebug_line, GNU compressed, size: 85 182*7304104dSAndroid Build Coastguard Worker6: .shstrtab, NOT compressed 183*7304104dSAndroid Build Coastguard Worker7: .symtab, NOT compressed 184*7304104dSAndroid Build Coastguard Worker8: .strtab, NOT compressed 185*7304104dSAndroid Build Coastguard WorkerEOF 186*7304104dSAndroid Build Coastguard Worker 187*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mem testfile-zgnu32 <<\EOF 188*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 189*7304104dSAndroid Build Coastguard Worker2: .zdebug_aranges, GNU compressed, size: 40 190*7304104dSAndroid Build Coastguard Worker3: .zdebug_info, GNU compressed, size: 9a 191*7304104dSAndroid Build Coastguard Worker4: .debug_abbrev, NOT compressed 192*7304104dSAndroid Build Coastguard Worker5: .zdebug_line, GNU compressed, size: 85 193*7304104dSAndroid Build Coastguard Worker6: .shstrtab, NOT compressed 194*7304104dSAndroid Build Coastguard Worker7: .symtab, NOT compressed 195*7304104dSAndroid Build Coastguard Worker8: .strtab, NOT compressed 196*7304104dSAndroid Build Coastguard WorkerEOF 197*7304104dSAndroid Build Coastguard Worker 198*7304104dSAndroid Build Coastguard Workertestfiles testfile-zgnu32be 199*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata read testfile-zgnu32be <<\EOF 200*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 201*7304104dSAndroid Build Coastguard Worker2: .eh_frame, NOT compressed 202*7304104dSAndroid Build Coastguard Worker3: .zdebug_aranges, GNU compressed, size: 40 203*7304104dSAndroid Build Coastguard Worker4: .zdebug_info, GNU compressed, size: 6e 204*7304104dSAndroid Build Coastguard Worker5: .debug_abbrev, NOT compressed 205*7304104dSAndroid Build Coastguard Worker6: .zdebug_line, GNU compressed, size: 85 206*7304104dSAndroid Build Coastguard Worker7: .shstrtab, NOT compressed 207*7304104dSAndroid Build Coastguard Worker8: .symtab, NOT compressed 208*7304104dSAndroid Build Coastguard Worker9: .strtab, NOT compressed 209*7304104dSAndroid Build Coastguard WorkerEOF 210*7304104dSAndroid Build Coastguard Worker 211*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgnu32be <<\EOF 212*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 213*7304104dSAndroid Build Coastguard Worker2: .eh_frame, NOT compressed 214*7304104dSAndroid Build Coastguard Worker3: .zdebug_aranges, GNU compressed, size: 40 215*7304104dSAndroid Build Coastguard Worker4: .zdebug_info, GNU compressed, size: 6e 216*7304104dSAndroid Build Coastguard Worker5: .debug_abbrev, NOT compressed 217*7304104dSAndroid Build Coastguard Worker6: .zdebug_line, GNU compressed, size: 85 218*7304104dSAndroid Build Coastguard Worker7: .shstrtab, NOT compressed 219*7304104dSAndroid Build Coastguard Worker8: .symtab, NOT compressed 220*7304104dSAndroid Build Coastguard Worker9: .strtab, NOT compressed 221*7304104dSAndroid Build Coastguard WorkerEOF 222*7304104dSAndroid Build Coastguard Worker 223*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mem testfile-zgnu32be <<\EOF 224*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 225*7304104dSAndroid Build Coastguard Worker2: .eh_frame, NOT compressed 226*7304104dSAndroid Build Coastguard Worker3: .zdebug_aranges, GNU compressed, size: 40 227*7304104dSAndroid Build Coastguard Worker4: .zdebug_info, GNU compressed, size: 6e 228*7304104dSAndroid Build Coastguard Worker5: .debug_abbrev, NOT compressed 229*7304104dSAndroid Build Coastguard Worker6: .zdebug_line, GNU compressed, size: 85 230*7304104dSAndroid Build Coastguard Worker7: .shstrtab, NOT compressed 231*7304104dSAndroid Build Coastguard Worker8: .symtab, NOT compressed 232*7304104dSAndroid Build Coastguard Worker9: .strtab, NOT compressed 233*7304104dSAndroid Build Coastguard WorkerEOF 234*7304104dSAndroid Build Coastguard Worker 235*7304104dSAndroid Build Coastguard Workertestfiles testfile-zgabi32 236*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata read testfile-zgabi32 <<\EOF 237*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 238*7304104dSAndroid Build Coastguard Worker2: .debug_aranges, ELF compressed, size: 40 239*7304104dSAndroid Build Coastguard Worker3: .debug_info, ELF compressed, size: 9a 240*7304104dSAndroid Build Coastguard Worker4: .debug_abbrev, NOT compressed 241*7304104dSAndroid Build Coastguard Worker5: .debug_line, ELF compressed, size: 85 242*7304104dSAndroid Build Coastguard Worker6: .shstrtab, NOT compressed 243*7304104dSAndroid Build Coastguard Worker7: .symtab, NOT compressed 244*7304104dSAndroid Build Coastguard Worker8: .strtab, NOT compressed 245*7304104dSAndroid Build Coastguard WorkerEOF 246*7304104dSAndroid Build Coastguard Worker 247*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgabi32 <<\EOF 248*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 249*7304104dSAndroid Build Coastguard Worker2: .debug_aranges, ELF compressed, size: 40 250*7304104dSAndroid Build Coastguard Worker3: .debug_info, ELF compressed, size: 9a 251*7304104dSAndroid Build Coastguard Worker4: .debug_abbrev, NOT compressed 252*7304104dSAndroid Build Coastguard Worker5: .debug_line, ELF compressed, size: 85 253*7304104dSAndroid Build Coastguard Worker6: .shstrtab, NOT compressed 254*7304104dSAndroid Build Coastguard Worker7: .symtab, NOT compressed 255*7304104dSAndroid Build Coastguard Worker8: .strtab, NOT compressed 256*7304104dSAndroid Build Coastguard WorkerEOF 257*7304104dSAndroid Build Coastguard Worker 258*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mem testfile-zgabi32 <<\EOF 259*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 260*7304104dSAndroid Build Coastguard Worker2: .debug_aranges, ELF compressed, size: 40 261*7304104dSAndroid Build Coastguard Worker3: .debug_info, ELF compressed, size: 9a 262*7304104dSAndroid Build Coastguard Worker4: .debug_abbrev, NOT compressed 263*7304104dSAndroid Build Coastguard Worker5: .debug_line, ELF compressed, size: 85 264*7304104dSAndroid Build Coastguard Worker6: .shstrtab, NOT compressed 265*7304104dSAndroid Build Coastguard Worker7: .symtab, NOT compressed 266*7304104dSAndroid Build Coastguard Worker8: .strtab, NOT compressed 267*7304104dSAndroid Build Coastguard WorkerEOF 268*7304104dSAndroid Build Coastguard Worker 269*7304104dSAndroid Build Coastguard Workertestfiles testfile-zgabi32be 270*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata read testfile-zgabi32be <<\EOF 271*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 272*7304104dSAndroid Build Coastguard Worker2: .eh_frame, NOT compressed 273*7304104dSAndroid Build Coastguard Worker3: .debug_aranges, ELF compressed, size: 40 274*7304104dSAndroid Build Coastguard Worker4: .debug_info, ELF compressed, size: 6e 275*7304104dSAndroid Build Coastguard Worker5: .debug_abbrev, NOT compressed 276*7304104dSAndroid Build Coastguard Worker6: .debug_line, ELF compressed, size: 85 277*7304104dSAndroid Build Coastguard Worker7: .shstrtab, NOT compressed 278*7304104dSAndroid Build Coastguard Worker8: .symtab, NOT compressed 279*7304104dSAndroid Build Coastguard Worker9: .strtab, NOT compressed 280*7304104dSAndroid Build Coastguard WorkerEOF 281*7304104dSAndroid Build Coastguard Worker 282*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgabi32be <<\EOF 283*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 284*7304104dSAndroid Build Coastguard Worker2: .eh_frame, NOT compressed 285*7304104dSAndroid Build Coastguard Worker3: .debug_aranges, ELF compressed, size: 40 286*7304104dSAndroid Build Coastguard Worker4: .debug_info, ELF compressed, size: 6e 287*7304104dSAndroid Build Coastguard Worker5: .debug_abbrev, NOT compressed 288*7304104dSAndroid Build Coastguard Worker6: .debug_line, ELF compressed, size: 85 289*7304104dSAndroid Build Coastguard Worker7: .shstrtab, NOT compressed 290*7304104dSAndroid Build Coastguard Worker8: .symtab, NOT compressed 291*7304104dSAndroid Build Coastguard Worker9: .strtab, NOT compressed 292*7304104dSAndroid Build Coastguard WorkerEOF 293*7304104dSAndroid Build Coastguard Worker 294*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/elfgetzdata mem testfile-zgabi32be <<\EOF 295*7304104dSAndroid Build Coastguard Worker1: .text, NOT compressed 296*7304104dSAndroid Build Coastguard Worker2: .eh_frame, NOT compressed 297*7304104dSAndroid Build Coastguard Worker3: .debug_aranges, ELF compressed, size: 40 298*7304104dSAndroid Build Coastguard Worker4: .debug_info, ELF compressed, size: 6e 299*7304104dSAndroid Build Coastguard Worker5: .debug_abbrev, NOT compressed 300*7304104dSAndroid Build Coastguard Worker6: .debug_line, ELF compressed, size: 85 301*7304104dSAndroid Build Coastguard Worker7: .shstrtab, NOT compressed 302*7304104dSAndroid Build Coastguard Worker8: .symtab, NOT compressed 303*7304104dSAndroid Build Coastguard Worker9: .strtab, NOT compressed 304*7304104dSAndroid Build Coastguard WorkerEOF 305*7304104dSAndroid Build Coastguard Worker 306*7304104dSAndroid Build Coastguard Workerexit 0 307