Add support for 64-bit ARM architecture: AArch64
[deliverable/binutils-gdb.git] / ld / testsuite / ld-aarch64 / aarch64-elf.exp
1 # Expect script for various AARCH64 ELF tests.
2 # Copyright 2009-2012 Free Software Foundation, Inc.
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.
22 if { ![is_elf_format] || ![istarget "aarch64*-*-*"] } {
23 return
24 }
25
26 # List contains test-items with 3 items followed by 2 lists:
27 # 0:name 1:ld options 2:assembler options
28 # 3:filenames of assembler files 4: action and options. 5: name of output file
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
35 set aarch64elftests {
36 {"EH Frame merge" "-Ttext 0x8000" "" {eh-frame-bar.s eh-frame-foo.s}
37 {{objdump --dwarf=frames eh-frame.d}} "eh-frame"}
38 }
39
40 run_ld_link_tests $aarch64elftests
41
42 # Relocation Tests
43 run_dump_test "weak-undefined"
44 run_dump_test "emit-relocs-257"
45 run_dump_test "emit-relocs-257-be"
46 # 258 is tested in 257
47 # 259 is tested in 257
48 run_dump_test "emit-relocs-260"
49 run_dump_test "emit-relocs-260-be"
50 # 261 is tested by 260
51 run_dump_test "emit-relocs-262"
52 run_dump_test "emit-relocs-263"
53 run_dump_test "emit-relocs-264"
54 run_dump_test "emit-relocs-265"
55 run_dump_test "emit-relocs-266"
56 run_dump_test "emit-relocs-267"
57 run_dump_test "emit-relocs-268"
58 run_dump_test "emit-relocs-269"
59 run_dump_test "emit-relocs-270"
60 run_dump_test "emit-relocs-270-bad"
61 run_dump_test "emit-relocs-271"
62 run_dump_test "emit-relocs-272"
63 run_dump_test "emit-relocs-273"
64 run_dump_test "emit-relocs-274"
65 run_dump_test "emit-relocs-275"
66 run_dump_test "emit-relocs-276"
67 run_dump_test "emit-relocs-277"
68 run_dump_test "emit-relocs-278"
69 run_dump_test "emit-relocs-279"
70 run_dump_test "emit-relocs-279-bad"
71 run_dump_test "emit-relocs-280"
72 # 281 is unused
73 run_dump_test "emit-relocs-282"
74 run_dump_test "emit-relocs-283"
75 run_dump_test "emit-relocs-284"
76 run_dump_test "emit-relocs-285"
77 run_dump_test "emit-relocs-286"
78 run_dump_test "emit-relocs-286-bad"
79 # 287-298 are not done yet
80 run_dump_test "emit-relocs-299"
81 # 300-310 are not done yet
82 run_dump_test "emit-relocs-311"
83 run_dump_test "emit-relocs-312"
84
85
86 run_dump_test "limit-b"
87 run_dump_test "limit-bl"
88 run_dump_test "farcall-section"
89 run_dump_test "farcall-back"
90 run_dump_test "farcall-bl"
91 run_dump_test "farcall-b"
92 run_dump_test "farcall-b-none-function"
93 run_dump_test "farcall-bl-none-function"
94
95 run_dump_test "tls-relax-all"
96 run_dump_test "tls-relax-gd-le"
97 run_dump_test "tls-relax-gdesc-le"
98 run_dump_test "tls-relax-gd-ie"
99 run_dump_test "tls-relax-gdesc-ie"
100 run_dump_test "tls-relax-ie-le"
101 run_dump_test "tls-desc-ie"
102 run_dump_test "tls-relax-gdesc-ie-2"
103 run_dump_test "tls-relax-gdesc-le-2"
104 run_dump_test "tls-relax-ie-le-2"
105 run_dump_test "tls-relax-ie-le-3"
This page took 0.036215 seconds and 4 git commands to generate.