* config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-mips-elf / mips-elf.exp
CommitLineData
a657e7c1 1# Expect script for MIPS ELF linker tests
48fe7bda 2# Copyright 2002, 2003 Free Software Foundation, Inc.
a657e7c1
CD
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 mips*-*-*] } then {
20
30a2f863 21 set elf [expr [istarget mips*-*-elf] || [istarget mips*-*-linux*] || \
8914585c 22 [istarget mips*-*-netbsd] || [istarget mips*-*-irix*]]
48fe7bda 23 set linux_gnu [expr [istarget mips*-*-linux*]]
30a2f863
CD
24 set embedded_elf [expr [istarget mips*-*-elf]]
25
26
27 if { $elf } {
28 # Check MIPS16 markings being passed through link.
29 run_dump_test "mips16-1"
30
31 # MIPS branch offset final link checking.
32 run_dump_test "branch-misc-1"
8914585c
AO
33
34 # Test multi-got link.
35 run_dump_test "multi-got-1"
05e6bb2f
AO
36
37 run_dump_test "relax-jalr-n32"
38 run_dump_test "relax-jalr-n32-shared"
39 run_dump_test "relax-jalr-n64"
40 run_dump_test "relax-jalr-n64-shared"
30a2f863
CD
41 }
42
48fe7bda
AO
43 if { $linux_gnu } {
44 run_dump_test "rel32-o32"
45 run_dump_test "rel32-n32"
46 run_dump_test "rel64"
47 }
48
49
30a2f863
CD
50 if { $embedded_elf } {
51 # Check basic Embedded-PIC PC-relative HI/LO relocs.
a657e7c1
CD
52 run_dump_test "empic1-ln"
53 run_dump_test "empic1-lp"
54 run_dump_test "empic1-mn"
55 run_dump_test "empic1-mp"
56 run_dump_test "empic1-sn"
57 run_dump_test "empic1-sp"
58
30a2f863 59 # Embedded-PIC PC-relative HI/LO reloc edge-case regression tests.
a657e7c1
CD
60 # As of 2001-12-26, the linker botches the fwd-0 and rev-1 tests.
61 run_dump_test "empic2-fwd-0"
62 run_dump_test "empic2-fwd-1"
63 run_dump_test "empic2-rev-0"
64 run_dump_test "empic2-rev-1"
38b566ae
CD
65
66 # Check generation of embedded relocs section.
67 run_dump_test "emrelocs-eb"
68 run_dump_test "emrelocs-el"
e560f274
RS
69
70 run_dump_test "region1"
a657e7c1
CD
71 }
72}
This page took 0.112148 seconds and 4 git commands to generate.