Commit | Line | Data |
---|---|---|
a9a704fc | 1 | # Expect script for FRV FDPIC linker tests |
f96b4a7b | 2 | # Copyright 2003, 2004, 2005, 2007 Free Software Foundation, Inc. |
a9a704fc | 3 | # |
f96b4a7b NC |
4 | # This file is part of the GNU Binutils. |
5 | # | |
6 | # This program is free software; you can redistribute it and/or modify | |
a9a704fc | 7 | # it under the terms of the GNU General Public License as published by |
f96b4a7b | 8 | # the Free Software Foundation; either version 3 of the License, or |
a9a704fc AO |
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 | |
f96b4a7b NC |
18 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
19 | # MA 02110-1301, USA. | |
a9a704fc AO |
20 | # |
21 | ||
22 | if {![istarget frv*-*-*] || ![is_elf_format]} { | |
23 | return | |
24 | } | |
25 | ||
90219bd0 AO |
26 | global ASFLAGS |
27 | set saved_ASFLAGS "$ASFLAGS" | |
28 | set ASFLAGS "$ASFLAGS -mfdpic" | |
29 | ||
a9a704fc | 30 | global LDFLAGS |
b8bfc9e1 | 31 | set saved_LDFLAGS "$LDFLAGS" |
a9a704fc AO |
32 | set LDFLAGS "$LDFLAGS -melf32frvfd" |
33 | ||
34 | run_dump_test "fdpic-static-1" | |
35 | run_dump_test "fdpic-pie-1" | |
36 | run_dump_test "fdpic-shared-1" | |
37 | ||
38 | run_dump_test "fdpic-static-2" | |
39 | run_dump_test "fdpic-pie-2" | |
40 | run_dump_test "fdpic-shared-2-fail" | |
41 | run_dump_test "fdpic-shared-2" | |
42 | run_dump_test "fdpic-shared-local-2" | |
43 | ||
44 | run_dump_test "fdpic-shared-3" | |
45 | ||
46 | run_dump_test "fdpic-shared-4" | |
47 | ||
48 | run_dump_test "fdpic-static-5" | |
49 | run_dump_test "fdpic-pie-5" | |
50 | run_dump_test "fdpic-shared-5" | |
51 | ||
52 | run_dump_test "fdpic-static-6" | |
9b1f5ff9 | 53 | run_dump_test "fdpic-pie-6-fail" |
a9a704fc | 54 | run_dump_test "fdpic-pie-6" |
9b1f5ff9 | 55 | run_dump_test "fdpic-shared-6-fail" |
a9a704fc AO |
56 | run_dump_test "fdpic-shared-6" |
57 | ||
58 | run_dump_test "fdpic-static-7" | |
59 | run_dump_test "fdpic-pie-7" | |
60 | run_dump_test "fdpic-shared-7" | |
61 | ||
62 | run_dump_test "fdpic-static-8" | |
a9a704fc AO |
63 | run_dump_test "fdpic-pie-8" |
64 | run_dump_test "fdpic-shared-8-fail" | |
65 | run_dump_test "fdpic-shared-8" | |
66 | run_dump_test "fdpic-shared-local-8" | |
b8bfc9e1 AO |
67 | |
68 | set LDFLAGS "$saved_LDFLAGS" | |
90219bd0 | 69 | set ASFLAGS "$saved_ASFLAGS" |