bfd/ChangeLog:
[deliverable/binutils-gdb.git] / ld / testsuite / ld-frv / tls.exp
CommitLineData
90219bd0
AO
1# Expect script for FRV FDPIC TLS linker tests
2# Copyright 2003, 2004, 2005 Free Software Foundation, Inc.
3#
4# This file is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17#
18
19if {![istarget frv*-*-*] || ![is_elf_format]} {
20 return
21}
22
23global ASFLAGS
24set saved_ASFLAGS "$ASFLAGS"
25set ASFLAGS "$ASFLAGS -mfdpic"
26
27global LDFLAGS
28set saved_LDFLAGS "$LDFLAGS"
29set LDFLAGS "$LDFLAGS -melf32frvfd"
30
31run_ld_link_tests [list [list "tls-1-dep" "$LDFLAGS -shared" "" "tls-1-dep.s" [list] "tls-1-dep.so" ""]]
32run_dump_test "tls-static-1"
33run_dump_test "tls-dynamic-1"
34run_dump_test "tls-pie-1"
35run_dump_test "tls-shared-1-fail"
36run_dump_test "tls-shared-1"
37
38run_dump_test "tls-relax-static-1"
39run_dump_test "tls-relax-dynamic-1"
40run_dump_test "tls-relax-pie-1"
41run_dump_test "tls-relax-shared-1"
42
43run_dump_test "tls-dynamic-2"
44run_dump_test "tls-shared-2"
45run_dump_test "tls-initial-shared-2"
46
47run_dump_test "tls-relax-dynamic-2"
48run_dump_test "tls-relax-shared-2"
49run_dump_test "tls-relax-initial-shared-2"
50
51run_dump_test "tls-static-3"
52run_dump_test "tls-dynamic-3"
53run_dump_test "tls-pie-3"
54run_dump_test "tls-shared-3"
55
56run_dump_test "tls-relax-static-3"
57run_dump_test "tls-relax-dynamic-3"
58run_dump_test "tls-relax-pie-3"
59run_dump_test "tls-relax-shared-3"
60
61set LDFLAGS "$saved_LDFLAGS"
62set ASFLAGS "$saved_ASFLAGS"
This page took 0.026549 seconds and 4 git commands to generate.