Commit | Line | Data |
---|---|---|
a9a704fc AO |
1 | # Expect script for FRV FDPIC linker tests |
2 | # Copyright 2003 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 | ||
19 | if {![istarget frv*-*-*] || ![is_elf_format]} { | |
20 | return | |
21 | } | |
22 | ||
23 | global LDFLAGS | |
b8bfc9e1 | 24 | set saved_LDFLAGS "$LDFLAGS" |
a9a704fc AO |
25 | set LDFLAGS "$LDFLAGS -melf32frvfd" |
26 | ||
27 | run_dump_test "fdpic-static-1" | |
28 | run_dump_test "fdpic-pie-1" | |
29 | run_dump_test "fdpic-shared-1" | |
30 | ||
31 | run_dump_test "fdpic-static-2" | |
32 | run_dump_test "fdpic-pie-2" | |
33 | run_dump_test "fdpic-shared-2-fail" | |
34 | run_dump_test "fdpic-shared-2" | |
35 | run_dump_test "fdpic-shared-local-2" | |
36 | ||
37 | run_dump_test "fdpic-shared-3" | |
38 | ||
39 | run_dump_test "fdpic-shared-4" | |
40 | ||
41 | run_dump_test "fdpic-static-5" | |
42 | run_dump_test "fdpic-pie-5" | |
43 | run_dump_test "fdpic-shared-5" | |
44 | ||
45 | run_dump_test "fdpic-static-6" | |
9b1f5ff9 | 46 | run_dump_test "fdpic-pie-6-fail" |
a9a704fc | 47 | run_dump_test "fdpic-pie-6" |
9b1f5ff9 | 48 | run_dump_test "fdpic-shared-6-fail" |
a9a704fc AO |
49 | run_dump_test "fdpic-shared-6" |
50 | ||
51 | run_dump_test "fdpic-static-7" | |
52 | run_dump_test "fdpic-pie-7" | |
53 | run_dump_test "fdpic-shared-7" | |
54 | ||
55 | run_dump_test "fdpic-static-8" | |
a9a704fc AO |
56 | run_dump_test "fdpic-pie-8" |
57 | run_dump_test "fdpic-shared-8-fail" | |
58 | run_dump_test "fdpic-shared-8" | |
59 | run_dump_test "fdpic-shared-local-8" | |
b8bfc9e1 AO |
60 | |
61 | set LDFLAGS "$saved_LDFLAGS" |