]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-metag/metag.exp
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-metag / metag.exp
CommitLineData
26244894
NC
1# Expect script for ld-metag tests
2#
250d07de 3# Copyright (C) 2013-2021 Free Software Foundation, Inc.
26244894
NC
4# Contributed by Imagination Technologies Ltd.
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
22if {!([istarget "metag-*-*"]) } {
23 return
24}
25
26# Set up a list as described in ld-lib.exp
27
28set metag_tests {
897aea50 29 {"Meta pc-relative relocs linker test" "" "" ""
26244894
NC
30 { "pcrel.s" "external.s" }
31 { {objdump -Dz pcrel.d} }
32 "pcrel"
33 }
bab55c05 34 {"Simple PIC shared library" "-shared --hash-style=sysv" "" ""
26244894
NC
35 {shared.s}
36 { {objdump -fdw shared.d} {objdump -Rw shared.r} }
37 "shared.so"
38 }
897aea50 39 {"Long branch stub" "" "" ""
26244894
NC
40 {stub.s}
41 { {objdump -fdw stub.d} }
42 "stub"
43 }
bab55c05 44 {"Shared library for stub tests" "-shared --hash-style=sysv" "" ""
26244894
NC
45 {stub_shared.s}
46 { {objdump -fdw stub_shared.d} {objdump -Rw stub_shared.r} }
47 "stub_shared.so"
48 }
bab55c05 49 {"Long branch stub (PIC, app)" "--hash-style=sysv tmpdir/stub_shared.so" "" ""
26244894
NC
50 {stub_pic_app.s}
51 { {objdump -fdw stub_pic_app.d} {objdump -Rw stub_pic_app.r} }
52 "stub_pic_app"
53 }
bab55c05 54 {"Long branch stub (PIC, shared)" "-shared --hash-style=sysv" "" ""
26244894
NC
55 {stub_pic_shared.s}
56 { {objdump -fdw stub_pic_shared.d} }
57 "stub_pic_shared.so"
58 }
59}
60
61run_ld_link_tests $metag_tests