xref: /aosp_15_r20/external/elfutils/tests/run-cu-dwp-section-info.sh (revision 7304104da70ce23c86437a01be71edd1a2d7f37e)
1*7304104dSAndroid Build Coastguard Worker#! /bin/sh
2*7304104dSAndroid Build Coastguard Worker# Copyright (c) 2023 Meta Platforms, Inc. and affiliates.
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 testfile-dwp.source.
21*7304104dSAndroid Build Coastguard Workertestfiles testfile-dwp-5.dwp testfile-dwp-4.dwp testfile-dwp-4-strict.dwp
22*7304104dSAndroid Build Coastguard Worker
23*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/cu-dwp-section-info testfile-dwp-5.dwp << EOF
24*7304104dSAndroid Build Coastguard Workerfile: testfile-dwp-5.dwp
25*7304104dSAndroid Build Coastguard WorkerINFO: 0x0 0x70
26*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
27*7304104dSAndroid Build Coastguard WorkerABBREV: 0x0 0x160
28*7304104dSAndroid Build Coastguard WorkerLINE: 0x0 0x7f
29*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0xdb
30*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x0 0x75c
31*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x6c6
32*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x22
33*7304104dSAndroid Build Coastguard Worker
34*7304104dSAndroid Build Coastguard WorkerINFO: 0x70 0x108
35*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
36*7304104dSAndroid Build Coastguard WorkerABBREV: 0x0 0x160
37*7304104dSAndroid Build Coastguard WorkerLINE: 0x0 0x7f
38*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0xdb
39*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x0 0x75c
40*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x6c6
41*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x22
42*7304104dSAndroid Build Coastguard Worker
43*7304104dSAndroid Build Coastguard WorkerINFO: 0x178 0x6e
44*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
45*7304104dSAndroid Build Coastguard WorkerABBREV: 0x160 0xca
46*7304104dSAndroid Build Coastguard WorkerLINE: 0x7f 0x7f
47*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
48*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x75c 0x758
49*7304104dSAndroid Build Coastguard WorkerMACRO: 0x6c6 0x6c5
50*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
51*7304104dSAndroid Build Coastguard Worker
52*7304104dSAndroid Build Coastguard WorkerINFO: 0x1e6 0x78
53*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
54*7304104dSAndroid Build Coastguard WorkerABBREV: 0x160 0xca
55*7304104dSAndroid Build Coastguard WorkerLINE: 0x7f 0x7f
56*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
57*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x75c 0x758
58*7304104dSAndroid Build Coastguard WorkerMACRO: 0x6c6 0x6c5
59*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
60*7304104dSAndroid Build Coastguard Worker
61*7304104dSAndroid Build Coastguard WorkerINFO: 0x25e 0x193
62*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
63*7304104dSAndroid Build Coastguard WorkerABBREV: 0x22a 0x18a
64*7304104dSAndroid Build Coastguard WorkerLINE: 0xfe 0x81
65*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0xdb 0xc9
66*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0xeb4 0x77c
67*7304104dSAndroid Build Coastguard WorkerMACRO: 0xd8b 0x6c6
68*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x22 0x43
69*7304104dSAndroid Build Coastguard Worker
70*7304104dSAndroid Build Coastguard WorkerEOF
71*7304104dSAndroid Build Coastguard Worker
72*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/cu-dwp-section-info testfile-dwp-4.dwp << EOF
73*7304104dSAndroid Build Coastguard Workerfile: testfile-dwp-4.dwp
74*7304104dSAndroid Build Coastguard WorkerINFO: 0x0 0x11e
75*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
76*7304104dSAndroid Build Coastguard WorkerABBREV: 0x0 0x172
77*7304104dSAndroid Build Coastguard WorkerLINE: 0x0 0x52
78*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x11b
79*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x0 0x754
80*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x6c7
81*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
82*7304104dSAndroid Build Coastguard Worker
83*7304104dSAndroid Build Coastguard WorkerINFO: 0x11e 0x76
84*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
85*7304104dSAndroid Build Coastguard WorkerABBREV: 0x172 0xd7
86*7304104dSAndroid Build Coastguard WorkerLINE: 0x52 0x52
87*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
88*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x754 0x750
89*7304104dSAndroid Build Coastguard WorkerMACRO: 0x6c7 0x6c6
90*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
91*7304104dSAndroid Build Coastguard Worker
92*7304104dSAndroid Build Coastguard WorkerINFO: 0x194 0x1c5
93*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
94*7304104dSAndroid Build Coastguard WorkerABBREV: 0x249 0x19e
95*7304104dSAndroid Build Coastguard WorkerLINE: 0xa4 0x53
96*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x11b 0xf1
97*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0xea4 0x774
98*7304104dSAndroid Build Coastguard WorkerMACRO: 0xd8d 0x6c7
99*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
100*7304104dSAndroid Build Coastguard Worker
101*7304104dSAndroid Build Coastguard WorkerINFO: 0x0 0x0
102*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x6f
103*7304104dSAndroid Build Coastguard WorkerABBREV: 0x0 0x172
104*7304104dSAndroid Build Coastguard WorkerLINE: 0x0 0x52
105*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x11b
106*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x0 0x754
107*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x6c7
108*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
109*7304104dSAndroid Build Coastguard Worker
110*7304104dSAndroid Build Coastguard WorkerINFO: 0x0 0x0
111*7304104dSAndroid Build Coastguard WorkerTYPES: 0x6f 0x6d
112*7304104dSAndroid Build Coastguard WorkerABBREV: 0x172 0xd7
113*7304104dSAndroid Build Coastguard WorkerLINE: 0x52 0x52
114*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
115*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x754 0x750
116*7304104dSAndroid Build Coastguard WorkerMACRO: 0x6c7 0x6c6
117*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
118*7304104dSAndroid Build Coastguard Worker
119*7304104dSAndroid Build Coastguard WorkerEOF
120*7304104dSAndroid Build Coastguard Worker
121*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/cu-dwp-section-info testfile-dwp-4-strict.dwp << EOF
122*7304104dSAndroid Build Coastguard Workerfile: testfile-dwp-4-strict.dwp
123*7304104dSAndroid Build Coastguard WorkerINFO: 0x0 0x105
124*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
125*7304104dSAndroid Build Coastguard WorkerABBREV: 0x0 0x15f
126*7304104dSAndroid Build Coastguard WorkerLINE: 0x0 0x52
127*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0xe2
128*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x0 0x24
129*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x38e4
130*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
131*7304104dSAndroid Build Coastguard Worker
132*7304104dSAndroid Build Coastguard WorkerINFO: 0x105 0x72
133*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
134*7304104dSAndroid Build Coastguard WorkerABBREV: 0x15f 0xd3
135*7304104dSAndroid Build Coastguard WorkerLINE: 0x52 0x52
136*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
137*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x24 0x20
138*7304104dSAndroid Build Coastguard WorkerMACRO: 0x38e4 0x38db
139*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
140*7304104dSAndroid Build Coastguard Worker
141*7304104dSAndroid Build Coastguard WorkerINFO: 0x177 0x17b
142*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x0
143*7304104dSAndroid Build Coastguard WorkerABBREV: 0x232 0x157
144*7304104dSAndroid Build Coastguard WorkerLINE: 0xa4 0x53
145*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0xe2 0xb1
146*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x44 0x44
147*7304104dSAndroid Build Coastguard WorkerMACRO: 0x71bf 0x38f5
148*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
149*7304104dSAndroid Build Coastguard Worker
150*7304104dSAndroid Build Coastguard WorkerINFO: 0x0 0x0
151*7304104dSAndroid Build Coastguard WorkerTYPES: 0x0 0x6e
152*7304104dSAndroid Build Coastguard WorkerABBREV: 0x0 0x15f
153*7304104dSAndroid Build Coastguard WorkerLINE: 0x0 0x52
154*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0xe2
155*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x0 0x24
156*7304104dSAndroid Build Coastguard WorkerMACRO: 0x0 0x38e4
157*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
158*7304104dSAndroid Build Coastguard Worker
159*7304104dSAndroid Build Coastguard WorkerINFO: 0x0 0x0
160*7304104dSAndroid Build Coastguard WorkerTYPES: 0x6e 0x6b
161*7304104dSAndroid Build Coastguard WorkerABBREV: 0x15f 0xd3
162*7304104dSAndroid Build Coastguard WorkerLINE: 0x52 0x52
163*7304104dSAndroid Build Coastguard WorkerLOCLISTS: 0x0 0x0
164*7304104dSAndroid Build Coastguard WorkerSTR_OFFSETS: 0x24 0x20
165*7304104dSAndroid Build Coastguard WorkerMACRO: 0x38e4 0x38db
166*7304104dSAndroid Build Coastguard WorkerRNGLISTS: 0x0 0x0
167*7304104dSAndroid Build Coastguard Worker
168*7304104dSAndroid Build Coastguard WorkerEOF
169