xref: /aosp_15_r20/external/elfutils/tests/run-large-elf-file.sh (revision 7304104da70ce23c86437a01be71edd1a2d7f37e)
1*7304104dSAndroid Build Coastguard Worker#! /usr/bin/env bash
2*7304104dSAndroid Build Coastguard Worker# Copyright (C) 2019 Red Hat, Inc.
3*7304104dSAndroid Build Coastguard Worker# Copyright (C) 2022 Mark J. Wielaard <[email protected]>
4*7304104dSAndroid Build Coastguard Worker# This file is part of elfutils.
5*7304104dSAndroid Build Coastguard Worker#
6*7304104dSAndroid Build Coastguard Worker# This file is free software; you can redistribute it and/or modify
7*7304104dSAndroid Build Coastguard Worker# it under the terms of the GNU General Public License as published by
8*7304104dSAndroid Build Coastguard Worker# the Free Software Foundation; either version 3 of the License, or
9*7304104dSAndroid Build Coastguard Worker# (at your option) any later version.
10*7304104dSAndroid Build Coastguard Worker#
11*7304104dSAndroid Build Coastguard Worker# elfutils is distributed in the hope that it will be useful, but
12*7304104dSAndroid Build Coastguard Worker# WITHOUT ANY WARRANTY; without even the implied warranty of
13*7304104dSAndroid Build Coastguard Worker# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*7304104dSAndroid Build Coastguard Worker# GNU General Public License for more details.
15*7304104dSAndroid Build Coastguard Worker#
16*7304104dSAndroid Build Coastguard Worker# You should have received a copy of the GNU General Public License
17*7304104dSAndroid Build Coastguard Worker# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18*7304104dSAndroid Build Coastguard Worker
19*7304104dSAndroid Build Coastguard Worker. $srcdir/test-subr.sh
20*7304104dSAndroid Build Coastguard Worker
21*7304104dSAndroid Build Coastguard Worker# Only run on 64bit systems, 32bit systems don't support > 4GB
22*7304104dSAndroid Build Coastguard Worker# ELF files.
23*7304104dSAndroid Build Coastguard Workerlong_bit=$(getconf LONG_BIT)
24*7304104dSAndroid Build Coastguard Workerecho "long_bit: $long_bit"
25*7304104dSAndroid Build Coastguard Workerif test $long_bit -ne 64; then
26*7304104dSAndroid Build Coastguard Worker  echo "Only 64bit systems can create > 4GB ELF files"
27*7304104dSAndroid Build Coastguard Worker  exit 77
28*7304104dSAndroid Build Coastguard Workerfi
29*7304104dSAndroid Build Coastguard Worker
30*7304104dSAndroid Build Coastguard Worker# The test binary also needs to be 64bits itself
31*7304104dSAndroid Build Coastguard Workerelfclass=64
32*7304104dSAndroid Build Coastguard Workertestrun ${abs_top_builddir}/src/readelf -h ${abs_builddir}/addsections | grep ELF32 \
33*7304104dSAndroid Build Coastguard Worker	&& elfclass=32
34*7304104dSAndroid Build Coastguard Workerecho elfclass: $elfclass
35*7304104dSAndroid Build Coastguard Workerif test $elfclass -ne 64; then
36*7304104dSAndroid Build Coastguard Worker  echo "Only 64bit binaries can create > 4GB ELF files"
37*7304104dSAndroid Build Coastguard Worker  exit 77
38*7304104dSAndroid Build Coastguard Workerfi
39*7304104dSAndroid Build Coastguard Worker
40*7304104dSAndroid Build Coastguard Worker# These tests need lots of disk space since they test files > 4GB.
41*7304104dSAndroid Build Coastguard Worker# Skip if there just isn't enough (2.5 * 4 = 10GB).
42*7304104dSAndroid Build Coastguard Workerspace_available=$[$(stat -f --format="%a*%S" .)/(1024 * 1024 * 1024)]
43*7304104dSAndroid Build Coastguard Workerecho "space_available: $space_available"
44*7304104dSAndroid Build Coastguard Workerif test $space_available -lt 10; then
45*7304104dSAndroid Build Coastguard Worker  echo "Not enough disk space, need at least 10GB available"
46*7304104dSAndroid Build Coastguard Worker  exit 77
47*7304104dSAndroid Build Coastguard Workerfi
48*7304104dSAndroid Build Coastguard Worker
49*7304104dSAndroid Build Coastguard Worker# Make sure the files fit into memory, assume 6GB needed (2.5 * 2 + 1 extra).
50*7304104dSAndroid Build Coastguard Worker# Running under valgrind might need even more.
51*7304104dSAndroid Build Coastguard Workermem_needed=6
52*7304104dSAndroid Build Coastguard Workerif [ "x$VALGRIND_CMD" != "x" ]; then
53*7304104dSAndroid Build Coastguard Worker  mem_needed=$[${mem_needed} + 2]
54*7304104dSAndroid Build Coastguard Workerfi
55*7304104dSAndroid Build Coastguard Workerecho "mem_needed: $mem_needed"
56*7304104dSAndroid Build Coastguard Workermem_available=$(free -g 2>/dev/null | grep ^Mem: | awk -F ' +' '{print $7}')
57*7304104dSAndroid Build Coastguard Workerecho "mem_available: $mem_available"
58*7304104dSAndroid Build Coastguard Workerif test -z "$mem_available" || test $mem_available -lt $mem_needed; then
59*7304104dSAndroid Build Coastguard Worker  echo "Need at least ${mem_needed}GB free available memory"
60*7304104dSAndroid Build Coastguard Worker  exit 77
61*7304104dSAndroid Build Coastguard Workerfi
62*7304104dSAndroid Build Coastguard Worker
63*7304104dSAndroid Build Coastguard Worker# Make sure the disk is reasonably fast, should be able to write 100MB/s
64*7304104dSAndroid Build Coastguard Workerfast_disk=1
65*7304104dSAndroid Build Coastguard Workertimeout -s9 10s dd conv=fsync if=/dev/zero of=tempfile bs=1M count=1K \
66*7304104dSAndroid Build Coastguard Worker  || fast_disk=0; rm tempfile
67*7304104dSAndroid Build Coastguard Workerif test $fast_disk -eq 0; then
68*7304104dSAndroid Build Coastguard Worker  echo "File system not fast enough, need at least 100MB/s"
69*7304104dSAndroid Build Coastguard Worker  exit 77
70*7304104dSAndroid Build Coastguard Workerfi
71*7304104dSAndroid Build Coastguard Worker
72*7304104dSAndroid Build Coastguard Worker# NOTE: test file will be mangled and removed!
73*7304104dSAndroid Build Coastguard Workertest_file ()
74*7304104dSAndroid Build Coastguard Worker{
75*7304104dSAndroid Build Coastguard Worker  in_file="$1"
76*7304104dSAndroid Build Coastguard Worker  readelf_out="${in_file}.readelf.out"
77*7304104dSAndroid Build Coastguard Worker  out_file_strip="${in_file}.strip"
78*7304104dSAndroid Build Coastguard Worker  out_file_debug="${in_file}.debug"
79*7304104dSAndroid Build Coastguard Worker
80*7304104dSAndroid Build Coastguard Worker  testfiles ${in_file}
81*7304104dSAndroid Build Coastguard Worker  tempfiles ${readelf_out} ${out_file_mmap} ${out_file_strip} ${out_file_debug}
82*7304104dSAndroid Build Coastguard Worker
83*7304104dSAndroid Build Coastguard Worker  # Add two 2GB sections to the file.
84*7304104dSAndroid Build Coastguard Worker  echo "addsections 2 ${in_file} 2147483648"
85*7304104dSAndroid Build Coastguard Worker  testrun ${abs_builddir}/addsections 2 ${in_file} 2147483648
86*7304104dSAndroid Build Coastguard Worker  testrun ${abs_top_builddir}/src/readelf -S ${in_file} > ${readelf_out}
87*7304104dSAndroid Build Coastguard Worker  nr=$(grep '.extra' ${readelf_out} | wc -l)
88*7304104dSAndroid Build Coastguard Worker  if test ${nr} != 2; then
89*7304104dSAndroid Build Coastguard Worker    # Show what went wrong
90*7304104dSAndroid Build Coastguard Worker    cat ${readelf_out}
91*7304104dSAndroid Build Coastguard Worker    exit 1
92*7304104dSAndroid Build Coastguard Worker  fi
93*7304104dSAndroid Build Coastguard Worker
94*7304104dSAndroid Build Coastguard Worker  echo "strip -o ${out_file_strip} -f ${out_file_debug} ${in_file}"
95*7304104dSAndroid Build Coastguard Worker  testrun ${abs_top_builddir}/src/strip -o ${out_file_strip} \
96*7304104dSAndroid Build Coastguard Worker                                        -f ${out_file_debug} ${in_file}
97*7304104dSAndroid Build Coastguard Worker
98*7304104dSAndroid Build Coastguard Worker  echo "elflint --gnu ${out_file_strip}"
99*7304104dSAndroid Build Coastguard Worker  testrun ${abs_top_builddir}/src/elflint --gnu ${out_file_strip}
100*7304104dSAndroid Build Coastguard Worker
101*7304104dSAndroid Build Coastguard Worker  echo "elflint --gnu -d ${out_file_debug}"
102*7304104dSAndroid Build Coastguard Worker  testrun ${abs_top_builddir}/src/elflint --gnu -d ${out_file_debug}
103*7304104dSAndroid Build Coastguard Worker
104*7304104dSAndroid Build Coastguard Worker  # Now test unstrip recombining those files.
105*7304104dSAndroid Build Coastguard Worker  echo "unstrip ${out_file_strip} ${out_file_debug}"
106*7304104dSAndroid Build Coastguard Worker  testrun ${abs_top_builddir}/src/unstrip ${out_file_strip} ${out_file_debug}
107*7304104dSAndroid Build Coastguard Worker
108*7304104dSAndroid Build Coastguard Worker  echo "elfcmp ${out_file} ${out_file_strip}"
109*7304104dSAndroid Build Coastguard Worker  testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file_debug}
110*7304104dSAndroid Build Coastguard Worker
111*7304104dSAndroid Build Coastguard Worker  # Remove the temp files immediately, they are big...
112*7304104dSAndroid Build Coastguard Worker  rm -f ${in_file} ${out_file_strip} ${out_file_debug}
113*7304104dSAndroid Build Coastguard Worker}
114*7304104dSAndroid Build Coastguard Worker
115*7304104dSAndroid Build Coastguard Worker# A collection of random testfiles to test 64bit, little/big endian
116*7304104dSAndroid Build Coastguard Worker# and non-ET_REL (with phdrs)/ET_REL (without phdrs).
117*7304104dSAndroid Build Coastguard Worker# Don't test 32bit, they cannot go beyond 4GB.
118*7304104dSAndroid Build Coastguard Worker
119*7304104dSAndroid Build Coastguard Worker# 64bit, little endian, rel
120*7304104dSAndroid Build Coastguard Workertest_file testfile38
121*7304104dSAndroid Build Coastguard Worker
122*7304104dSAndroid Build Coastguard Worker# 64bit, big endian, non-rel
123*7304104dSAndroid Build Coastguard Workertest_file testfile27
124*7304104dSAndroid Build Coastguard Worker
125*7304104dSAndroid Build Coastguard Worker# See testfile-dwp-cu-index-overflow.source
126*7304104dSAndroid Build Coastguard Workertestfiles testfile-dwp-5-cu-index-overflow testfile-dwp-5-cu-index-overflow.dwp
127*7304104dSAndroid Build Coastguard Worker
128*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/cu-dwp-section-info testfile-dwp-5-cu-index-overflow.dwp << EOF
129*7304104dSAndroid Build Coastguard Workerfile: testfile-dwp-5-cu-index-overflow.dwp
130*7304104dSAndroid Build Coastguard WorkerINFO: 0x0 0x8000004c
131*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
132*7304104dSAndroid Build Coastguard WorkerABBREV: 0x0 0x50
133*7304104dSAndroid Build Coastguard WorkerLINE: 0x0 0x61
134*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
135*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x0 0x1c
136*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
137*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
138*7304104dSAndroid Build Coastguard Worker
139*7304104dSAndroid Build Coastguard WorkerINFO: 0x8000004c 0x6f
140*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
141*7304104dSAndroid Build Coastguard WorkerABBREV: 0x50 0x15e
142*7304104dSAndroid Build Coastguard WorkerLINE: 0x61 0x63
143*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0xd4
144*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x1c 0x24
145*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
146*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x22
147*7304104dSAndroid Build Coastguard Worker
148*7304104dSAndroid Build Coastguard WorkerINFO: 0x800000bb 0xff
149*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
150*7304104dSAndroid Build Coastguard WorkerABBREV: 0x50 0x15e
151*7304104dSAndroid Build Coastguard WorkerLINE: 0x61 0x63
152*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0xd4
153*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x1c 0x24
154*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
155*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x22
156*7304104dSAndroid Build Coastguard Worker
157*7304104dSAndroid Build Coastguard WorkerINFO: 0x800001ba 0x8000004c
158*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
159*7304104dSAndroid Build Coastguard WorkerABBREV: 0x1ae 0x50
160*7304104dSAndroid Build Coastguard WorkerLINE: 0xc4 0x61
161*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
162*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x40 0x1c
163*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
164*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
165*7304104dSAndroid Build Coastguard Worker
166*7304104dSAndroid Build Coastguard WorkerINFO: 0x100000206 0x6c
167*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
168*7304104dSAndroid Build Coastguard WorkerABBREV: 0x1fe 0xc8
169*7304104dSAndroid Build Coastguard WorkerLINE: 0x125 0x63
170*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
171*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x5c 0x20
172*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
173*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
174*7304104dSAndroid Build Coastguard Worker
175*7304104dSAndroid Build Coastguard WorkerINFO: 0x100000272 0x6f
176*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
177*7304104dSAndroid Build Coastguard WorkerABBREV: 0x1fe 0xc8
178*7304104dSAndroid Build Coastguard WorkerLINE: 0x125 0x63
179*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
180*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x5c 0x20
181*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
182*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
183*7304104dSAndroid Build Coastguard Worker
184*7304104dSAndroid Build Coastguard WorkerINFO: 0x1000002e1 0x182
185*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
186*7304104dSAndroid Build Coastguard WorkerABBREV: 0x2c6 0x188
187*7304104dSAndroid Build Coastguard WorkerLINE: 0x188 0x65
188*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0xd4 0xee
189*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x7c 0x44
190*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
191*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x22 0x43
192*7304104dSAndroid Build Coastguard Worker
193*7304104dSAndroid Build Coastguard WorkerEOF
194*7304104dSAndroid Build Coastguard Worker
195*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/get-units-split testfile-dwp-5-cu-index-overflow << EOF
196*7304104dSAndroid Build Coastguard Workerfile: testfile-dwp-5-cu-index-overflow
197*7304104dSAndroid Build Coastguard WorkerGot cudie unit_type: 4
198*7304104dSAndroid Build Coastguard WorkerFound a skeleton unit, with split die: filler1.cc
199*7304104dSAndroid Build Coastguard WorkerGot cudie unit_type: 4
200*7304104dSAndroid Build Coastguard WorkerFound a skeleton unit, with split die: foo.cc
201*7304104dSAndroid Build Coastguard WorkerGot cudie unit_type: 4
202*7304104dSAndroid Build Coastguard WorkerFound a skeleton unit, with split die: filler2.cc
203*7304104dSAndroid Build Coastguard WorkerGot cudie unit_type: 4
204*7304104dSAndroid Build Coastguard WorkerFound a skeleton unit, with split die: bar.cc
205*7304104dSAndroid Build Coastguard WorkerGot cudie unit_type: 4
206*7304104dSAndroid Build Coastguard WorkerFound a skeleton unit, with split die: main.cc
207*7304104dSAndroid Build Coastguard Worker
208*7304104dSAndroid Build Coastguard WorkerEOF
209*7304104dSAndroid Build Coastguard Worker
210*7304104dSAndroid Build Coastguard Workerrm -f testfile-dwp-5-cu-index-overflow testfile-dwp-5-cu-index-overflow.dwp
211*7304104dSAndroid Build Coastguard Worker
212*7304104dSAndroid Build Coastguard Worker# See testfile-dwp-cu-index-overflow.source
213*7304104dSAndroid Build Coastguard Workertestfiles testfile-dwp-4-cu-index-overflow testfile-dwp-4-cu-index-overflow.dwp
214*7304104dSAndroid Build Coastguard Worker
215*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/cu-dwp-section-info testfile-dwp-4-cu-index-overflow.dwp << EOF
216*7304104dSAndroid Build Coastguard Workerfile: testfile-dwp-4-cu-index-overflow.dwp
217*7304104dSAndroid Build Coastguard WorkerINFO: 0x0 0x8000004b
218*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
219*7304104dSAndroid Build Coastguard WorkerABBREV: 0x0 0x58
220*7304104dSAndroid Build Coastguard WorkerLINE: 0x0 0x2c
221*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
222*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x0 0x14
223*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
224*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
225*7304104dSAndroid Build Coastguard Worker
226*7304104dSAndroid Build Coastguard WorkerINFO: 0x8000004b 0x116
227*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
228*7304104dSAndroid Build Coastguard WorkerABBREV: 0x58 0x16f
229*7304104dSAndroid Build Coastguard WorkerLINE: 0x2c 0x34
230*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x110
231*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x14 0x1c
232*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
233*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
234*7304104dSAndroid Build Coastguard Worker
235*7304104dSAndroid Build Coastguard WorkerINFO: 0x80000161 0x8000004b
236*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
237*7304104dSAndroid Build Coastguard WorkerABBREV: 0x1c7 0x58
238*7304104dSAndroid Build Coastguard WorkerLINE: 0x60 0x2c
239*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
240*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x30 0x14
241*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
242*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
243*7304104dSAndroid Build Coastguard Worker
244*7304104dSAndroid Build Coastguard WorkerINFO: 0x1000001ac 0x6e
245*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
246*7304104dSAndroid Build Coastguard WorkerABBREV: 0x21f 0xd4
247*7304104dSAndroid Build Coastguard WorkerLINE: 0x8c 0x34
248*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
249*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x44 0x18
250*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
251*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
252*7304104dSAndroid Build Coastguard Worker
253*7304104dSAndroid Build Coastguard WorkerINFO: 0x10000021a 0x1b5
254*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
255*7304104dSAndroid Build Coastguard WorkerABBREV: 0x2f3 0x19b
256*7304104dSAndroid Build Coastguard WorkerLINE: 0xc0 0x35
257*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x110 0x12a
258*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x5c 0x3c
259*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
260*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
261*7304104dSAndroid Build Coastguard Worker
262*7304104dSAndroid Build Coastguard WorkerINFO: 0x0 0x0
263*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x6e
264*7304104dSAndroid Build Coastguard WorkerABBREV: 0x58 0x16f
265*7304104dSAndroid Build Coastguard WorkerLINE: 0x2c 0x34
266*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x110
267*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x14 0x1c
268*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
269*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
270*7304104dSAndroid Build Coastguard Worker
271*7304104dSAndroid Build Coastguard WorkerINFO: 0x0 0x0
272*7304104dSAndroid Build Coastguard WorkerTYPES: 0x6e 0x6b
273*7304104dSAndroid Build Coastguard WorkerABBREV: 0x21f 0xd4
274*7304104dSAndroid Build Coastguard WorkerLINE: 0x8c 0x34
275*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
276*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x44 0x18
277*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x0
278*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
279*7304104dSAndroid Build Coastguard Worker
280*7304104dSAndroid Build Coastguard WorkerEOF
281*7304104dSAndroid Build Coastguard Worker
282*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/get-units-split testfile-dwp-4-cu-index-overflow << EOF
283*7304104dSAndroid Build Coastguard Workerfile: testfile-dwp-4-cu-index-overflow
284*7304104dSAndroid Build Coastguard WorkerGot cudie unit_type: 4
285*7304104dSAndroid Build Coastguard WorkerFound a skeleton unit, with split die: filler1.cc
286*7304104dSAndroid Build Coastguard WorkerGot cudie unit_type: 4
287*7304104dSAndroid Build Coastguard WorkerFound a skeleton unit, with split die: foo.cc
288*7304104dSAndroid Build Coastguard WorkerGot cudie unit_type: 4
289*7304104dSAndroid Build Coastguard WorkerFound a skeleton unit, with split die: filler2.cc
290*7304104dSAndroid Build Coastguard WorkerGot cudie unit_type: 4
291*7304104dSAndroid Build Coastguard WorkerFound a skeleton unit, with split die: bar.cc
292*7304104dSAndroid Build Coastguard WorkerGot cudie unit_type: 4
293*7304104dSAndroid Build Coastguard WorkerFound a skeleton unit, with split die: main.cc
294*7304104dSAndroid Build Coastguard Worker
295*7304104dSAndroid Build Coastguard WorkerEOF
296*7304104dSAndroid Build Coastguard Worker
297*7304104dSAndroid Build Coastguard Workerrm -f testfile-dwp-4-cu-index-overflow testfile-dwp-4-cu-index-overflow.dwp
298*7304104dSAndroid Build Coastguard Worker
299*7304104dSAndroid Build Coastguard Workerexit 0
300