Commit | Line | Data |
---|---|---|
7499d566 | 1 | # Expect script for ld-maxq tests |
f96b4a7b | 2 | # Copyright (C) 2004, 2007 Free Software Foundation |
7499d566 | 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 | |
7499d566 | 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 |
7499d566 NC |
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. | |
7499d566 NC |
20 | # |
21 | # Written by inderpreetb@noida.hcltech.com | |
22 | ||
23 | # Test maxq linking; all types of relocs. This tests the assembler and | |
24 | # tools like objdump as well as the linker. | |
25 | ||
26 | if { !([istarget "maxq*-*-*"] ) } { | |
27 | return | |
28 | } | |
29 | ||
30 | # List contains test-items with 3 items followed by 2 lists: | |
31 | # 0:name 1:ld options 2:assembler options | |
32 | # 3:filenames of assembler files 4: action and options. 5: name of output file | |
33 | ||
34 | # Actions: | |
35 | # objdump: Apply objdump options on result. Compare with regex (last arg). | |
36 | # nm: Apply nm options on result. Compare with regex (last arg). | |
37 | # readelf: Apply readelf options on result. Compare with regex (last arg). | |
38 | ||
39 | set maxqtests { | |
40 | {"32-bit Relocation check" "" "" | |
41 | {r32-1.s r32-2.s} {{objdump -drw r32.dd}} | |
42 | "r32.o" } | |
43 | {"maxq addend check" "" "" | |
44 | {addend.s} {{objdump -dw addend.dd}} | |
45 | "addendo.o" } | |
46 | {"16bit relocation test" "" "" | |
47 | {paddr.s} {{objdump -Dw paddr.dd}} | |
48 | "paddro.o" } | |
49 | {"16bit relocation test-1" "" "" | |
50 | {paddr1.s} {{objdump -Dw paddr1.dd}} | |
51 | "paddro1.o" } | |
52 | ||
53 | } | |
54 | ||
55 | run_ld_link_tests $maxqtests |