2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
[deliverable/binutils-gdb.git] / ld / testsuite / ld-aarch64 / aarch64-elf.exp
CommitLineData
a06ea964 1# Expect script for various AARCH64 ELF tests.
cb8af559 2# Copyright 2009-2013 Free Software Foundation, Inc.
a06ea964
NC
3#
4# This file is part of the GNU Binutils.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 3 of the License, or
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
18# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19# MA 02110-1301, USA.
20
21# Exclude non-aarch64-ELF targets.
22if { ![is_elf_format] || ![istarget "aarch64*-*-*"] } {
23 return
24}
25
26# List contains test-items with 3 items followed by 2 lists:
897aea50
MR
27# 0:name 1:ld early options 2:ld late options 3:assembler options
28# 4:filenames of assembler files 5: action and options. 6: name of output file
a06ea964
NC
29
30# Actions:
31# objdump: Apply objdump options on result. Compare with regex (last arg).
32# nm: Apply nm options on result. Compare with regex (last arg).
33# readelf: Apply readelf options on result. Compare with regex (last arg).
34
35set aarch64elftests {
897aea50 36 {"EH Frame merge" "-Ttext 0x8000" "" "" {eh-frame-bar.s eh-frame-foo.s}
a06ea964
NC
37 {{objdump --dwarf=frames eh-frame.d}} "eh-frame"}
38}
39
40run_ld_link_tests $aarch64elftests
41
42# Relocation Tests
43run_dump_test "weak-undefined"
44run_dump_test "emit-relocs-257"
45run_dump_test "emit-relocs-257-be"
46# 258 is tested in 257
47# 259 is tested in 257
48run_dump_test "emit-relocs-260"
49run_dump_test "emit-relocs-260-be"
50# 261 is tested by 260
51run_dump_test "emit-relocs-262"
52run_dump_test "emit-relocs-263"
53run_dump_test "emit-relocs-264"
54run_dump_test "emit-relocs-265"
55run_dump_test "emit-relocs-266"
56run_dump_test "emit-relocs-267"
57run_dump_test "emit-relocs-268"
58run_dump_test "emit-relocs-269"
59run_dump_test "emit-relocs-270"
60run_dump_test "emit-relocs-270-bad"
61run_dump_test "emit-relocs-271"
62run_dump_test "emit-relocs-272"
63run_dump_test "emit-relocs-273"
64run_dump_test "emit-relocs-274"
65run_dump_test "emit-relocs-275"
66run_dump_test "emit-relocs-276"
67run_dump_test "emit-relocs-277"
68run_dump_test "emit-relocs-278"
69run_dump_test "emit-relocs-279"
70run_dump_test "emit-relocs-279-bad"
71run_dump_test "emit-relocs-280"
72# 281 is unused
73run_dump_test "emit-relocs-282"
74run_dump_test "emit-relocs-283"
75run_dump_test "emit-relocs-284"
76run_dump_test "emit-relocs-285"
77run_dump_test "emit-relocs-286"
78run_dump_test "emit-relocs-286-bad"
79# 287-298 are not done yet
80run_dump_test "emit-relocs-299"
f41aef5f
RE
81# 300-308 are not done yet
82run_dump_test "emit-relocs-309-up"
83run_dump_test "emit-relocs-309-low"
84run_dump_test "emit-relocs-309-up-bad"
85run_dump_test "emit-relocs-309-low-bad"
86# 310 not done yet
a06ea964
NC
87run_dump_test "emit-relocs-311"
88run_dump_test "emit-relocs-312"
89
90
91run_dump_test "limit-b"
92run_dump_test "limit-bl"
93run_dump_test "farcall-section"
94run_dump_test "farcall-back"
95run_dump_test "farcall-bl"
96run_dump_test "farcall-b"
97run_dump_test "farcall-b-none-function"
98run_dump_test "farcall-bl-none-function"
99
100run_dump_test "tls-relax-all"
101run_dump_test "tls-relax-gd-le"
102run_dump_test "tls-relax-gdesc-le"
103run_dump_test "tls-relax-gd-ie"
104run_dump_test "tls-relax-gdesc-ie"
105run_dump_test "tls-relax-ie-le"
106run_dump_test "tls-desc-ie"
107run_dump_test "tls-relax-gdesc-ie-2"
108run_dump_test "tls-relax-gdesc-le-2"
109run_dump_test "tls-relax-ie-le-2"
110run_dump_test "tls-relax-ie-le-3"
bb3f9ed8 111run_dump_test "tlsle-symbol-offset"
cb8af559
NC
112run_dump_test "gc-got-relocs"
113run_dump_test "gc-tls-relocs"
edb2fa9a
MS
114run_dump_test "gc-plt-relocs"
115run_dump_test "gc-relocs-257-dyn"
116run_dump_test "gc-relocs-257"
This page took 0.069707 seconds and 4 git commands to generate.