bfd/ChangeLog:
[deliverable/binutils-gdb.git] / ld / testsuite / ld-frv / fdpic.exp
CommitLineData
a9a704fc 1# Expect script for FRV FDPIC linker tests
90219bd0 2# Copyright 2003, 2004, 2005 Free Software Foundation, Inc.
a9a704fc
AO
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
90219bd0
AO
23global ASFLAGS
24set saved_ASFLAGS "$ASFLAGS"
25set ASFLAGS "$ASFLAGS -mfdpic"
26
a9a704fc 27global LDFLAGS
b8bfc9e1 28set saved_LDFLAGS "$LDFLAGS"
a9a704fc
AO
29set LDFLAGS "$LDFLAGS -melf32frvfd"
30
31run_dump_test "fdpic-static-1"
32run_dump_test "fdpic-pie-1"
33run_dump_test "fdpic-shared-1"
34
35run_dump_test "fdpic-static-2"
36run_dump_test "fdpic-pie-2"
37run_dump_test "fdpic-shared-2-fail"
38run_dump_test "fdpic-shared-2"
39run_dump_test "fdpic-shared-local-2"
40
41run_dump_test "fdpic-shared-3"
42
43run_dump_test "fdpic-shared-4"
44
45run_dump_test "fdpic-static-5"
46run_dump_test "fdpic-pie-5"
47run_dump_test "fdpic-shared-5"
48
49run_dump_test "fdpic-static-6"
9b1f5ff9 50run_dump_test "fdpic-pie-6-fail"
a9a704fc 51run_dump_test "fdpic-pie-6"
9b1f5ff9 52run_dump_test "fdpic-shared-6-fail"
a9a704fc
AO
53run_dump_test "fdpic-shared-6"
54
55run_dump_test "fdpic-static-7"
56run_dump_test "fdpic-pie-7"
57run_dump_test "fdpic-shared-7"
58
59run_dump_test "fdpic-static-8"
a9a704fc
AO
60run_dump_test "fdpic-pie-8"
61run_dump_test "fdpic-shared-8-fail"
62run_dump_test "fdpic-shared-8"
63run_dump_test "fdpic-shared-local-8"
b8bfc9e1
AO
64
65set LDFLAGS "$saved_LDFLAGS"
90219bd0 66set ASFLAGS "$saved_ASFLAGS"
This page took 0.067577 seconds and 4 git commands to generate.