Upload Tizen:Base source
[external/binutils.git] / ld / testsuite / ld-frv / tls.exp
1 # Expect script for FRV FDPIC TLS linker tests
2 #   Copyright 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
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 if {![istarget frv*-*-*] || ![is_elf_format]} {
23     return
24 }
25
26 global ASFLAGS
27 set saved_ASFLAGS "$ASFLAGS"
28 set ASFLAGS "$ASFLAGS -mfdpic"
29
30 global LDFLAGS
31 set saved_LDFLAGS "$LDFLAGS"
32 set LDFLAGS "$LDFLAGS -melf32frvfd"
33
34 run_ld_link_tests [list [list "tls-1-dep" "$LDFLAGS -shared" "" "tls-1-dep.s" [list] "tls-1-dep.so" ""]]
35 run_dump_test "tls-static-1"
36 run_dump_test "tls-dynamic-1"
37 run_dump_test "tls-pie-1"
38 run_dump_test "tls-shared-1-fail"
39 run_dump_test "tls-shared-1"
40
41 run_dump_test "tls-relax-static-1"
42 run_dump_test "tls-relax-dynamic-1"
43 run_dump_test "tls-relax-pie-1"
44 run_dump_test "tls-relax-shared-1"
45
46 run_dump_test "tls-dynamic-2"
47 run_dump_test "tls-shared-2"
48 run_dump_test "tls-initial-shared-2"
49
50 run_dump_test "tls-relax-dynamic-2"
51 run_dump_test "tls-relax-shared-2"
52 run_dump_test "tls-relax-initial-shared-2"
53
54 run_dump_test "tls-static-3"
55 run_dump_test "tls-dynamic-3"
56 run_dump_test "tls-pie-3"
57 run_dump_test "tls-shared-3"
58
59 run_dump_test "tls-relax-static-3"
60 run_dump_test "tls-relax-dynamic-3"
61 run_dump_test "tls-relax-pie-3"
62 run_dump_test "tls-relax-shared-3"
63
64 set LDFLAGS "$saved_LDFLAGS"
65 set ASFLAGS "$saved_ASFLAGS"