1 # Expect script
for ld-xstormy16 tests
2 # Copyright
(C
) 2003 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.
, 59 Temple Place
- Suite
330, Boston
, MA
02111-1307, USA.
19 # Test xc16x linking of pc
-relative relocs. This tests the assembler and
20 # tools like objdump as well as the linker.
22 if {!([istarget
"xc16x*-*-*"]) } {
26 #
Set up a list as described in
ld-lib.exp
30 "xc16x pc-relative relocs linker test"
34 { {objdump
-Dz pcreloc.d
} }
41 "xc16x absolute relative address linker test"
45 { {objdump
-Dz absrel.d
} }
50 set xc16xoffset_tests
{
52 "xc16x offset linker test"
56 { {objdump
-Dz offset.d
} }
61 run_ld_link_tests $xc16x_tests
62 run_ld_link_tests $xc16xabs_tests
63 run_ld_link_tests $xc16xoffset_tests