]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-elf/build-id.exp
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-elf / build-id.exp
CommitLineData
1f1d0f88 1# Expect script for --build-id tests.
fd67aa11 2# Copyright (C) 2021-2024 Free Software Foundation, Inc.
1f1d0f88
L
3#
4# This file is part of the GNU Binutils.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 3 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19# MA 02110-1301, USA.
20#
21
22# Exclude non-ELF targets.
23
24if ![is_elf_format] {
25 return
26}
27
28if { [istarget frv-*-*] || [istarget lm32-*-*] } {
29 return
30}
31
32if { !([istarget *-*-linux*]
33 || [istarget arm*-*-uclinuxfdpiceabi]
34 || [istarget *-*-nacl*]
35 || [istarget *-*-gnu*]) } then {
36 return
37}
38
39run_ld_link_tests [list \
40 [list \
41 "pr28639a.o" \
42 "-r --build-id=md5" \
43 "" \
44 "" \
45 {start.s} \
46 {{readelf {--notes} pr28639a.rd}} \
47 "pr28639a.o" \
48 ] \
49 [list \
50 "pr28639a.o" \
51 "-r --build-id" \
52 "" \
53 "" \
54 {dummy.s} \
55 {{readelf {--notes} pr28639b.rd}} \
56 "pr28639b.o" \
57 ] \
58 [list \
59 "pr28639a" \
60 "--build-id tmpdir/pr28639a.o tmpdir/pr28639b.o" \
61 "" \
62 "" \
63 {dummy.s} \
64 {{readelf {--notes} pr28639b.rd} \
65 {readelf {--notes} pr28639c.rd}} \
66 "pr28639a" \
67 ] \
68 [list \
69 "pr28639b" \
70 "--build-id=none tmpdir/pr28639a.o tmpdir/pr28639b.o" \
71 "" \
72 "" \
73 {dummy.s} \
74 {{readelf {--notes} pr28639d.rd}} \
75 "pr28639b" \
76 ] \
77]