1 # Expect script
for ld-maxq tests
2 # Copyright
(C
) 2004 Free Software Foundation
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.
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.
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.
, 51 Franklin Street
- Fifth Floor
, Boston
, MA
02110-1301, USA.
18 # Written by inderpreetb@noida.hcltech.com
20 # Test maxq linking
; all types of relocs. This tests the assembler and
21 # tools like objdump as well as the linker.
23 if { !([istarget
"maxq*-*-*"] ) } {
27 # List contains test
-items with
3 items followed by
2 lists
:
28 #
0:name 1:ld options
2:assembler options
29 #
3:filenames of assembler files
4: action and options.
5: name of output file
32 # objdump
: Apply objdump options
on result. Compare with regex
(last
arg).
33 # nm
: Apply nm options
on result. Compare with regex
(last
arg).
34 # readelf
: Apply readelf options
on result. Compare with regex
(last
arg).
37 {"32-bit Relocation check" "" ""
38 {r32
-1.s r32
-2.s
} {{objdump
-drw r32.dd
}}
40 {"maxq addend check" "" ""
41 {addend.s
} {{objdump
-dw addend.dd
}}
43 {"16bit relocation test" "" ""
44 {paddr.s
} {{objdump
-Dw paddr.dd
}}
46 {"16bit relocation test-1" "" ""
47 {paddr1.s
} {{objdump
-Dw paddr1.dd
}}
52 run_ld_link_tests $maxqtests