* elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
[binutils.git] / ld / testsuite / ld-frv / tls.exp
blob416bcfaa2fe9425003724d3b9e868fe303317774
1 # Expect script for FRV FDPIC TLS linker tests
2 # Copyright 2003, 2004, 2005 Free Software Foundation, Inc.
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.
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.
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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
19 if {![istarget frv*-*-*] || ![is_elf_format]} {
20 return
23 global ASFLAGS
24 set saved_ASFLAGS "$ASFLAGS"
25 set ASFLAGS "$ASFLAGS -mfdpic"
27 global LDFLAGS
28 set saved_LDFLAGS "$LDFLAGS"
29 set LDFLAGS "$LDFLAGS -melf32frvfd"
31 run_ld_link_tests [list [list "tls-1-dep" "$LDFLAGS -shared" "" "tls-1-dep.s" [list] "tls-1-dep.so" ""]]
32 run_dump_test "tls-static-1"
33 run_dump_test "tls-dynamic-1"
34 run_dump_test "tls-pie-1"
35 run_dump_test "tls-shared-1-fail"
36 run_dump_test "tls-shared-1"
38 run_dump_test "tls-relax-static-1"
39 run_dump_test "tls-relax-dynamic-1"
40 run_dump_test "tls-relax-pie-1"
41 run_dump_test "tls-relax-shared-1"
43 run_dump_test "tls-dynamic-2"
44 run_dump_test "tls-shared-2"
45 run_dump_test "tls-initial-shared-2"
47 run_dump_test "tls-relax-dynamic-2"
48 run_dump_test "tls-relax-shared-2"
49 run_dump_test "tls-relax-initial-shared-2"
51 run_dump_test "tls-static-3"
52 run_dump_test "tls-dynamic-3"
53 run_dump_test "tls-pie-3"
54 run_dump_test "tls-shared-3"
56 run_dump_test "tls-relax-static-3"
57 run_dump_test "tls-relax-dynamic-3"
58 run_dump_test "tls-relax-pie-3"
59 run_dump_test "tls-relax-shared-3"
61 set LDFLAGS "$saved_LDFLAGS"
62 set ASFLAGS "$saved_ASFLAGS"