]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-xtensa/xtensa-linux.exp
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-xtensa / xtensa-linux.exp
CommitLineData
28dbbc02 1# Expect script for ld-xtensa tests
250d07de 2# Copyright (C) 2008-2021 Free Software Foundation, Inc.
28dbbc02
BW
3#
4# This file is part of the GNU Binutils.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 3 of the License, or
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
18# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19# MA 02110-1301, USA.
20#
21
22if { !([istarget "xtensa*-*-linux*"]) } {
23 return
24}
25
26# List contains test-items with 3 items followed by 2 lists:
897aea50
MR
27# 0:name 1:ld early options 2:ld late options 3:assembler options
28# 4:filenames of assembler files 5: action and options. 6: name of output file
28dbbc02
BW
29
30# Actions:
31# objdump: Apply objdump options on result. Compare with regex (last arg).
32# nm: Apply nm options on result. Compare with regex (last arg).
33# readelf: Apply readelf options on result. Compare with regex (last arg).
34
35set xtensatests {
36 {"TLS -shared transitions"
bab55c05
AM
37 "-shared -melf32xtensa --hash-style=sysv" ""
38 "" {tlspic1.s tlspic2.s}
28dbbc02
BW
39 {{readelf -WSsrl tlspic.rd}
40 {objdump "-drj.text --start-address=0x350" tlspic.dd}
41 {objdump "-sj.text --stop-address=0x350" tlspic.sd}
42 {objdump -sj.tdata tlspic.td}}
43 "libtlspic.so"}
897aea50 44 {"Helper shared library" "-shared -melf32xtensa" ""
28dbbc02
BW
45 "" {tlslib.s} {} "libtlslib.so"}
46 {"TLS exec transitions"
bab55c05
AM
47 "-melf32xtensa tmpdir/libtlslib.so --hash-style=sysv" ""
48 "" {tlsbin.s}
28dbbc02
BW
49 {{readelf -WSsrl tlsbin.rd}
50 {objdump "-drj.text --start-address=0x400238" tlsbin.dd}
51 {objdump "-sj.text --stop-address=0x400238" tlsbin.sd}
52 {objdump -sj.tdata tlsbin.td}}
53 "tlsbin"}
54}
55
56run_ld_link_tests $xtensatests