xref: /aosp_15_r20/external/elfutils/tests/run-xlate-note.sh (revision 7304104da70ce23c86437a01be71edd1a2d7f37e)
1*7304104dSAndroid Build Coastguard Worker# Copyright (C) 2019 Red Hat, Inc.
2*7304104dSAndroid Build Coastguard Worker# This file is part of elfutils.
3*7304104dSAndroid Build Coastguard Worker#
4*7304104dSAndroid Build Coastguard Worker# This file is free software; you can redistribute it and/or modify
5*7304104dSAndroid Build Coastguard Worker# it under the terms of the GNU General Public License as published by
6*7304104dSAndroid Build Coastguard Worker# the Free Software Foundation; either version 3 of the License, or
7*7304104dSAndroid Build Coastguard Worker# (at your option) any later version.
8*7304104dSAndroid Build Coastguard Worker#
9*7304104dSAndroid Build Coastguard Worker# elfutils is distributed in the hope that it will be useful, but
10*7304104dSAndroid Build Coastguard Worker# WITHOUT ANY WARRANTY; without even the implied warranty of
11*7304104dSAndroid Build Coastguard Worker# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12*7304104dSAndroid Build Coastguard Worker# GNU General Public License for more details.
13*7304104dSAndroid Build Coastguard Worker#
14*7304104dSAndroid Build Coastguard Worker# You should have received a copy of the GNU General Public License
15*7304104dSAndroid Build Coastguard Worker# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16*7304104dSAndroid Build Coastguard Worker
17*7304104dSAndroid Build Coastguard Worker. $srcdir/test-subr.sh
18*7304104dSAndroid Build Coastguard Worker
19*7304104dSAndroid Build Coastguard Workertestfiles testfileppc32
20*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/xlate_notes testfileppc32 << EOF
21*7304104dSAndroid Build Coastguard WorkerNotes in section 2:
22*7304104dSAndroid Build Coastguard Workertype: 1,1, namesz: 4,4, descsz: 16,16
23*7304104dSAndroid Build Coastguard WorkerNotes in section 3:
24*7304104dSAndroid Build Coastguard Workertype: 3,3, namesz: 4,4, descsz: 20,20
25*7304104dSAndroid Build Coastguard WorkerEOF
26*7304104dSAndroid Build Coastguard Worker
27*7304104dSAndroid Build Coastguard Workertestfiles testfileppc64
28*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/xlate_notes testfileppc64 << EOF
29*7304104dSAndroid Build Coastguard WorkerNotes in section 2:
30*7304104dSAndroid Build Coastguard Workertype: 1,1, namesz: 4,4, descsz: 16,16
31*7304104dSAndroid Build Coastguard WorkerNotes in section 3:
32*7304104dSAndroid Build Coastguard Workertype: 3,3, namesz: 4,4, descsz: 20,20
33*7304104dSAndroid Build Coastguard WorkerEOF
34*7304104dSAndroid Build Coastguard Worker
35*7304104dSAndroid Build Coastguard Workertestfiles testfiles390
36*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/xlate_notes testfiles390 << EOF
37*7304104dSAndroid Build Coastguard WorkerNotes in section 2:
38*7304104dSAndroid Build Coastguard Workertype: 1,1, namesz: 4,4, descsz: 16,16
39*7304104dSAndroid Build Coastguard WorkerNotes in section 3:
40*7304104dSAndroid Build Coastguard Workertype: 3,3, namesz: 4,4, descsz: 20,20
41*7304104dSAndroid Build Coastguard WorkerEOF
42*7304104dSAndroid Build Coastguard Worker
43*7304104dSAndroid Build Coastguard Workertestfiles testfiles390x
44*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/xlate_notes testfiles390x << EOF
45*7304104dSAndroid Build Coastguard WorkerNotes in section 2:
46*7304104dSAndroid Build Coastguard Workertype: 1,1, namesz: 4,4, descsz: 16,16
47*7304104dSAndroid Build Coastguard WorkerNotes in section 3:
48*7304104dSAndroid Build Coastguard Workertype: 3,3, namesz: 4,4, descsz: 20,20
49*7304104dSAndroid Build Coastguard WorkerEOF
50*7304104dSAndroid Build Coastguard Worker
51*7304104dSAndroid Build Coastguard Workertestfiles testfileaarch64
52*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/xlate_notes testfileaarch64 << EOF
53*7304104dSAndroid Build Coastguard WorkerNotes in section 2:
54*7304104dSAndroid Build Coastguard Workertype: 1,1, namesz: 4,4, descsz: 16,16
55*7304104dSAndroid Build Coastguard WorkerNotes in section 3:
56*7304104dSAndroid Build Coastguard Workertype: 3,3, namesz: 4,4, descsz: 20,20
57*7304104dSAndroid Build Coastguard WorkerEOF
58*7304104dSAndroid Build Coastguard Worker
59*7304104dSAndroid Build Coastguard Workertestfiles testfilearm
60*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/xlate_notes testfilearm << EOF
61*7304104dSAndroid Build Coastguard WorkerNotes in section 2:
62*7304104dSAndroid Build Coastguard Workertype: 1,1, namesz: 4,4, descsz: 16,16
63*7304104dSAndroid Build Coastguard WorkerNotes in section 3:
64*7304104dSAndroid Build Coastguard Workertype: 3,3, namesz: 4,4, descsz: 20,20
65*7304104dSAndroid Build Coastguard WorkerEOF
66*7304104dSAndroid Build Coastguard Worker
67*7304104dSAndroid Build Coastguard Workertestfiles testfile_gnu_props.32be.o
68*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/xlate_notes testfile_gnu_props.32be.o << EOF
69*7304104dSAndroid Build Coastguard WorkerNotes in section 4:
70*7304104dSAndroid Build Coastguard Workertype: 5,5, namesz: 4,4, descsz: 12,12
71*7304104dSAndroid Build Coastguard Workertype: 5,5, namesz: 4,4, descsz: 8,8
72*7304104dSAndroid Build Coastguard WorkerEOF
73*7304104dSAndroid Build Coastguard Worker
74*7304104dSAndroid Build Coastguard Workertestfiles testfile_gnu_props.32le.o
75*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/xlate_notes testfile_gnu_props.32le.o << EOF
76*7304104dSAndroid Build Coastguard WorkerNotes in section 4:
77*7304104dSAndroid Build Coastguard Workertype: 5,5, namesz: 4,4, descsz: 12,12
78*7304104dSAndroid Build Coastguard Workertype: 5,5, namesz: 4,4, descsz: 8,8
79*7304104dSAndroid Build Coastguard WorkerEOF
80*7304104dSAndroid Build Coastguard Worker
81*7304104dSAndroid Build Coastguard Workertestfiles testfile_gnu_props.64be.o
82*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/xlate_notes testfile_gnu_props.64be.o << EOF
83*7304104dSAndroid Build Coastguard WorkerNotes in section 4:
84*7304104dSAndroid Build Coastguard Workertype: 5,5, namesz: 4,4, descsz: 16,16
85*7304104dSAndroid Build Coastguard Workertype: 5,5, namesz: 4,4, descsz: 8,8
86*7304104dSAndroid Build Coastguard WorkerEOF
87*7304104dSAndroid Build Coastguard Worker
88*7304104dSAndroid Build Coastguard Workertestfiles testfile_gnu_props.64le.o
89*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_top_builddir}/tests/xlate_notes testfile_gnu_props.64le.o << EOF
90*7304104dSAndroid Build Coastguard WorkerNotes in section 4:
91*7304104dSAndroid Build Coastguard Workertype: 5,5, namesz: 4,4, descsz: 16,16
92*7304104dSAndroid Build Coastguard Workertype: 5,5, namesz: 4,4, descsz: 8,8
93*7304104dSAndroid Build Coastguard WorkerEOF
94