1 # Expect script for ld-metag tests
3 # Copyright (C) 2013-2014 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,
22 if {!([istarget "metag-*-*"]) } {
26 # Set up a list as described in ld-lib.exp
29 {"Meta pc-relative relocs linker test" "" "" ""
30 { "pcrel.s" "external.s" }
31 { {objdump -Dz pcrel.d} }
34 {"Simple PIC shared library" "-shared" "" ""
36 { {objdump -fdw shared.d} {objdump -Rw shared.r} }
39 {"Long branch stub" "" "" ""
41 { {objdump -fdw stub.d} }
44 {"Shared library for stub tests" "-shared" "" ""
46 { {objdump -fdw stub_shared.d} {objdump -Rw stub_shared.r} }
49 {"Long branch stub (PIC, app)" "tmpdir/stub_shared.so" "" ""
51 { {objdump -fdw stub_pic_app.d} {objdump -Rw stub_pic_app.r} }
54 {"Long branch stub (PIC, shared)" "-shared" "" ""
56 { {objdump -fdw stub_pic_shared.d} }
61 run_ld_link_tests $metag_tests