Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-metag / metag.exp
blobc526bca320c0ecd3bee341cbf8ef6a2089373a61
1 # Expect script for ld-metag tests
3 # Copyright (C) 2013-2022 Free Software Foundation, Inc.
4 # Contributed by Imagination Technologies Ltd.
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.
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.
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.
22 if {!([istarget "metag-*-*"]) } {
23 return
26 # Set up a list as described in ld-lib.exp
28 set metag_tests {
29 {"Meta pc-relative relocs linker test" "" "" ""
30 { "pcrel.s" "external.s" }
31 { {objdump -Dz pcrel.d} }
32 "pcrel"
34 {"Simple PIC shared library" "-shared --hash-style=sysv" "" ""
35 {shared.s}
36 { {objdump -fdw shared.d} {objdump -Rw shared.r} }
37 "shared.so"
39 {"Long branch stub" "" "" ""
40 {stub.s}
41 { {objdump -fdw stub.d} }
42 "stub"
44 {"Shared library for stub tests" "-shared --hash-style=sysv" "" ""
45 {stub_shared.s}
46 { {objdump -fdw stub_shared.d} {objdump -Rw stub_shared.r} }
47 "stub_shared.so"
49 {"Long branch stub (PIC, app)" "--hash-style=sysv tmpdir/stub_shared.so" "" ""
50 {stub_pic_app.s}
51 { {objdump -fdw stub_pic_app.d} {objdump -Rw stub_pic_app.r} }
52 "stub_pic_app"
54 {"Long branch stub (PIC, shared)" "-shared --hash-style=sysv" "" ""
55 {stub_pic_shared.s}
56 { {objdump -fdw stub_pic_shared.d} }
57 "stub_pic_shared.so"
61 run_ld_link_tests $metag_tests