* config/tc-mips.c (append_insn): Correctly handle mips16 case
[binutils.git] / ld / testsuite / ld-alpha / alpha.exp
blobcc628d22d27b73ca200a8cf199ffa07a28327193
1 # Expect script for ld-alpha 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
19 # Test Alpha ELF linking; all types of relocs. This tests the
20 # assembler and tools like objdump as well as the linker.
22 if { !([istarget "alpha*-*-elf*"]
23 || [istarget "alpha*-*-linux*"]) } {
24 return
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
31 # Actions:
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).
36 set alphatests {
37 {"TLS -fpic -shared" "-shared -melf64alpha"
38 "" {align.s tlspic1.s tlspic2.s}
39 {{readelf -WSsrl tlspic.rd} {objdump -drj.text tlspic.dd}
40 {objdump -sj.got tlspic.sd} {objdump -sj.tdata tlspic.td}}
41 "libtlspic.so"}
42 {"Helper shared library" "-shared -melf64alpha"
43 "" {tlslib.s} {} "libtlslib.so"}
44 {"TLS -fpic and -fno-pic exec"
45 "-melf64alpha tmpdir/libtlslib.so" "" {align.s tlsbinpic.s tlsbin.s}
46 {{readelf -WSsrl tlsbin.rd} {objdump -drj.text tlsbin.dd}
47 {objdump -sj.got tlsbin.sd} {objdump -sj.tdata tlsbin.td}}
48 "tlsbin"}
49 {"TLS -fpic and -fno-pic exec -relax"
50 "-relax -melf64alpha tmpdir/libtlslib.so" "" {align.s tlsbinpic.s tlsbin.s}
51 {{readelf -WSsrl tlsbinr.rd} {objdump -drj.text tlsbinr.dd}
52 {objdump -sj.got tlsbinr.sd}}
53 "tlsbinr"}
56 # Not implemented yet
57 # {"TLS in debug sections" "-melf64alpha"
58 # "" {tlsg.s}
59 # {{objdump -sj.debug_foobar tlsg.sd}} "tlsg"}
61 run_ld_link_tests $alphatests