Update year range in copyright notice of binutils files
[deliverable/binutils-gdb.git] / ld / testsuite / ld-alpha / alpha.exp
CommitLineData
8b0c8155 1# Expect script for ld-alpha tests
82704155 2# Copyright (C) 2003-2019 Free Software Foundation, Inc.
8b0c8155 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
8b0c8155 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
8b0c8155
RH
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.
8b0c8155
RH
20#
21
22# Test Alpha ELF linking; all types of relocs. This tests the
23# assembler and tools like objdump as well as the linker.
24
25if { !([istarget "alpha*-*-elf*"]
26 || [istarget "alpha*-*-linux*"]) } {
27 return
28}
29
30# List contains test-items with 3 items followed by 2 lists:
897aea50
MR
31# 0:name 1:ld early options 2:ld late options 3:assembler options
32# 4:filenames of assembler files 5: action and options. 6: name of output file
8b0c8155
RH
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
39set alphatests {
bab55c05 40 {"TLS -fpic -shared" "-shared -melf64alpha --hash-style=sysv" ""
8b0c8155
RH
41 "" {align.s tlspic1.s tlspic2.s}
42 {{readelf -WSsrl tlspic.rd} {objdump -drj.text tlspic.dd}
43 {objdump -sj.got tlspic.sd} {objdump -sj.tdata tlspic.td}}
6452a567 44 "libtlspic.so"}
897aea50 45 {"Helper shared library" "-shared -melf64alpha" ""
8b0c8155
RH
46 "" {tlslib.s} {} "libtlslib.so"}
47 {"TLS -fpic and -fno-pic exec"
bab55c05
AM
48 "-melf64alpha tmpdir/libtlslib.so --hash-style=sysv" ""
49 "" {align.s tlsbinpic.s tlsbin.s}
8b0c8155
RH
50 {{readelf -WSsrl tlsbin.rd} {objdump -drj.text tlsbin.dd}
51 {objdump -sj.got tlsbin.sd} {objdump -sj.tdata tlsbin.td}}
6452a567 52 "tlsbin"}
8b0c8155 53 {"TLS -fpic and -fno-pic exec -relax"
bab55c05 54 "-relax -melf64alpha --hash-style=sysv tmpdir/libtlslib.so" ""
897aea50 55 "" {align.s tlsbinpic.s tlsbin.s}
8b0c8155
RH
56 {{readelf -WSsrl tlsbinr.rd} {objdump -drj.text tlsbinr.dd}
57 {objdump -sj.got tlsbinr.sd}}
6452a567
RH
58 "tlsbinr"}
59 {"empty got"
897aea50 60 "-melf64alpha" "" ""
6452a567
RH
61 {emptygot.s}
62 {{nm "-n" emptygot.nm}}
63 "emptygot"}
8b0c8155
RH
64}
65
66# Not implemented yet
897aea50 67# {"TLS in debug sections" "-melf64alpha" ""
8b0c8155
RH
68# "" {tlsg.s}
69# {{objdump -sj.debug_foobar tlsg.sd}} "tlsg"}
70
71run_ld_link_tests $alphatests
This page took 0.661534 seconds and 4 git commands to generate.