gdb/
[deliverable/binutils-gdb.git] / ld / testsuite / ld-mips-elf / mips-elf.exp
CommitLineData
a657e7c1 1# Expect script for MIPS ELF linker tests
aa820537
AM
2# Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008
3# Free Software Foundation, Inc.
a657e7c1 4#
f96b4a7b
NC
5# This file is part of the GNU Binutils.
6#
7# This program is free software; you can redistribute it and/or modify
a657e7c1 8# it under the terms of the GNU General Public License as published by
f96b4a7b 9# the Free Software Foundation; either version 3 of the License, or
a657e7c1
CD
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
f96b4a7b
NC
19# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20# MA 02110-1301, USA.
a657e7c1
CD
21#
22
0a44bf69
RS
23if {[istarget "mips*-*-vxworks"]} {
24 set mipsvxtests {
25 {"VxWorks shared library test 1" "-shared -Tvxworks1.ld"
26 "-mips2" {vxworks1-lib.s}
27 {{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd}
9e3313ae 28 {readelf --symbols vxworks1-lib.nd} {readelf -d vxworks1-lib.td}}
0a44bf69
RS
29 "libvxworks1.so"}
30 {"VxWorks executable test 1 (dynamic)" \
31 "tmpdir/libvxworks1.so -Tvxworks1.ld -q --force-dynamic"
32 "-mips2" {vxworks1.s}
33 {{readelf --relocs vxworks1.rd} {objdump -dr vxworks1.dd}}
34 "vxworks1"}
35 {"VxWorks executable test 2 (dynamic)" \
36 "-Tvxworks1.ld -q --force-dynamic"
37 "-mips2" {vxworks2.s}
38 {{readelf --segments vxworks2.sd}}
39 "vxworks2"}
40 {"VxWorks executable test 2 (static)"
41 "-Tvxworks1.ld"
42 "-mips2" {vxworks2.s}
43 {{readelf --segments vxworks2-static.sd}}
44 "vxworks2"}
45 }
46 run_ld_link_tests $mipsvxtests
47 run_dump_test "vxworks1-static"
8275b357 48 run_dump_test "vxworks-forced-local-1"
0a44bf69
RS
49 return
50}
51
fbf18a5c
TS
52if {![istarget mips*-*-*] || ![is_elf_format]} {
53 return
54}
30a2f863 55
fbf18a5c
TS
56set has_newabi [expr [istarget *-*-irix6*] || [istarget mips64*-*-linux*]]
57set linux_gnu [expr [istarget mips*-*-linux*]]
58set embedded_elf [expr [istarget mips*-*-elf]]
30a2f863 59
738e5348
RS
60if { $linux_gnu } {
61 run_ld_link_tests [list \
62 [list "Dummy shared library for MIPS16 PIC test 1" \
63 "-shared -melf32btsmip" \
64 "-EB -32" { mips16-pic-1-dummy.s } \
65 {} \
66 "mips16-pic-1-dummy.so"] \
67 [list "MIPS16 PIC test 1" \
68 "-melf32btsmip -T mips16-pic-1.ld tmpdir/mips16-pic-1-dummy.so" \
69 "-EB -32 -I $srcdir/$subdir" { mips16-pic-1a.s mips16-pic-1b.s } \
70 { { objdump { -dr -j.text } mips16-pic-1.dd }
71 { readelf -A mips16-pic-1.gd } } \
72 "mips16-pic-1"] \
73 [list "MIPS16 PIC test 2" \
74 "-melf32btsmip -T mips16-pic-1.ld -shared" \
75 "-EB -32 -I $srcdir/$subdir" { mips16-pic-2a.s mips16-pic-2b.s } \
76 { { objdump { -dr -j.text } mips16-pic-2.dd } \
77 { readelf -A mips16-pic-2.gd } \
78 { readelf --symbols mips16-pic-2.nd } \
79 { readelf --relocs mips16-pic-2.rd } \
80 { readelf -d mips16-pic-2.ad } } \
861fb55a
DJ
81 "mips16-pic-2"] \
82 [list "MIPS16 PIC test 3" \
83 "-melf32btsmip -T mips16-pic-1.ld tmpdir/mips16-pic-1-dummy.so" \
84 "-EB -32 -I $srcdir/$subdir" { mips16-pic-3a.s mips16-pic-3b.s } \
85 { { objdump -dr mips16-pic-3.dd } \
86 { readelf --relocs mips16-pic-3.rd } \
87 { readelf -A mips16-pic-3.gd } } \
61b0a4af
RS
88 "mips16-pic-3"] \
89 [list "MIPS16 PIC test 4 (shared library)" \
90 "-shared -melf32btsmip -T mips16-pic-1.ld --version-script mips16-pic-4.ver" \
91 "-EB -32" { mips16-pic-4a.s mips16-pic-4b.s } \
92 { { objdump -dr mips16-pic-4a.dd } \
93 { readelf --symbols mips16-pic-4a.nd } \
94 { readelf -A mips16-pic-4a.gd } } \
95 "mips16-pic-4.so"] \
96 [list "MIPS16 PIC test 4 (executable)" \
97 "-melf32btsmip -T mips16-pic-1.ld tmpdir/mips16-pic-4.so" \
98 "-EB -32" { mips16-pic-4c.s } \
99 { { objdump -dr mips16-pic-4b.dd } } \
100 "mips16-pic-4"]]
738e5348
RS
101}
102
08e8dfaf
RS
103if { [istarget mips64*-linux-gnu] } {
104 set o32_as_flags "-32 -EB"
105 set o32_ld_flags "-melf32btsmip"
106} else {
107 set o32_as_flags ""
108 set o32_ld_flags ""
109}
30a2f863 110
fbf18a5c
TS
111# Check MIPS16 markings being passed through link.
112run_dump_test "mips16-1"
8914585c 113
fbf18a5c
TS
114# MIPS branch offset final link checking.
115run_dump_test "branch-misc-1"
7d6c7577 116
732be173
DJ
117# Test multi-got link. We only do this on GNU/Linux because it requires
118# the "traditional" emulations.
119if { $linux_gnu } {
120 run_dump_test "multi-got-1"
bbe506e8 121 run_dump_test "multi-got-no-shared"
2152e047
DJ
122 run_dump_test "multi-got-hidden-1"
123 run_dump_test "multi-got-hidden-2"
732be173 124}
30a2f863 125
0a61c8c2
RS
126# Test __gnu_local_gp accesses
127if { $linux_gnu } {
128 run_dump_test "no-shared-1-o32"
129 if { $has_newabi } {
130 run_dump_test "no-shared-1-n32"
131 run_dump_test "no-shared-1-n64"
132 }
133}
134
fbf18a5c
TS
135if $has_newabi {
136 run_dump_test "elf-rel-got-n32"
137 run_dump_test "elf-rel-xgot-n32"
48fe7bda 138 if { $linux_gnu } {
fbf18a5c
TS
139 run_dump_test "elf-rel-got-n64-linux"
140 run_dump_test "elf-rel-xgot-n64-linux"
141 } else {
142 run_dump_test "elf-rel-got-n64"
143 run_dump_test "elf-rel-xgot-n64"
48fe7bda
AO
144 }
145
fbf18a5c
TS
146 run_dump_test "relax-jalr-n32"
147 run_dump_test "relax-jalr-n32-shared"
148 run_dump_test "relax-jalr-n64"
149 run_dump_test "relax-jalr-n64-shared"
150}
48fe7bda 151
fbf18a5c
TS
152if { $linux_gnu } {
153 run_dump_test "rel32-o32"
154 run_dump_test "rel32-n32"
155 run_dump_test "rel64"
861fb55a
DJ
156 # The first test checks that a mixed PIC/non-PIC relocatable link
157 # will not introduce any stubs itself, but will flag PIC functions
158 # for the final link.
159 #
160 # The second test checks that we insert stubs for calls from
161 # non-PIC functions to PIC functions when linking the original
162 # two objects together.
163 #
164 # The third test checks that we do the same when linking the
165 # result of the first link (with no other source files).
166 run_ld_link_tests {
167 {"PIC and non-PIC test 1 (relocatable)" "-r -melf32btsmip"
168 "-32 -EB -mips2" {pic-and-nonpic-1a.s pic-and-nonpic-1b.s}
169 {{objdump -dr pic-and-nonpic-1-rel.dd}
170 {readelf --symbols pic-and-nonpic-1-rel.nd}}
171 "pic-and-nonpic-1-rel.o"}
172 {"PIC and non-PIC test 1 (static 1)"
173 "-melf32btsmip -Tpic-and-nonpic-1.ld"
174 "-32 -EB -mips2" {pic-and-nonpic-1a.s pic-and-nonpic-1b.s}
175 {{objdump -dr pic-and-nonpic-1.dd}
176 {readelf --symbols pic-and-nonpic-1.nd}}
177 "pic-and-nonpic-1-static1.o"}
178 {"PIC and non-PIC test 1 (static 2)"
179 "-melf32btsmip -Tpic-and-nonpic-1.ld tmpdir/pic-and-nonpic-1-rel.o"
180 "" {}
181 {{objdump -dr pic-and-nonpic-1.dd}
182 {readelf --symbols pic-and-nonpic-1.nd}}
183 "pic-and-nonpic-1-static2.o"}
184 }
185 run_dump_test "pic-and-nonpic-2"
186 run_ld_link_tests {
187 {"PIC and non-PIC test 3 (shared library)"
188 "-melf32btsmip -shared -Tpic-and-nonpic-3a.ld"
189 "-32 -EB -mips2" {pic-and-nonpic-3a.s}
190 {{readelf --segments pic-and-nonpic-3a.sd}
191 {readelf -A pic-and-nonpic-3a.gd}
192 {objdump -dr pic-and-nonpic-3a.dd}}
193 "pic-and-nonpic-3a.so"}
194 {"PIC and non-PIC test 3 (executable)"
195 "-melf32btsmip -Tpic-and-nonpic-3b.ld tmpdir/pic-and-nonpic-3a.so"
196 "-32 -EB -mips2" {pic-and-nonpic-3b.s}
197 {{readelf --segments pic-and-nonpic-3b.sd}
198 {objdump -dr pic-and-nonpic-3b.dd}
199 {objdump {-s -j.got.plt} pic-and-nonpic-3b.pd}
200 {readelf -A pic-and-nonpic-3b.gd}
201 {readelf --relocs pic-and-nonpic-3b.rd}
202 {readelf --symbols pic-and-nonpic-3b.nd}
203 {readelf -d pic-and-nonpic-3b.ad}}
204 "pic-and-nonpic-3b"}
205 }
206 run_dump_test "pic-and-nonpic-3-error"
207 run_ld_link_tests {
208 {"PIC and non-PIC test 4 (shared library)"
209 "-melf32btsmip -shared -Tpic-and-nonpic-3a.ld"
210 "-32 -EB -mips2" {pic-and-nonpic-4a.s}
211 {}
212 "pic-and-nonpic-4a.so"}
213 {"PIC and non-PIC test 4 (executable)"
214 "-melf32btsmip -Tpic-and-nonpic-4b.ld tmpdir/pic-and-nonpic-4a.so"
215 "-32 -EB -mips2" {pic-and-nonpic-4b.s}
216 {{readelf --segments pic-and-nonpic-4b.sd}
217 {objdump -dr pic-and-nonpic-4b.dd}
218 {objdump {-s -j.got -j.data} pic-and-nonpic-4b.gd}
219 {readelf --relocs pic-and-nonpic-4b.rd}
220 {readelf --symbols pic-and-nonpic-4b.nd}
221 {readelf -d pic-and-nonpic-4b.ad}}
222 "pic-and-nonpic-4b"}
223 }
224 run_dump_test "pic-and-nonpic-4-error"
225 run_ld_link_tests {
226 {"PIC and non-PIC test 5 (executable)"
227 "-melf32btsmip -Tpic-and-nonpic-5b.ld tmpdir/pic-and-nonpic-3a.so tmpdir/pic-and-nonpic-4a.so"
228 "-32 -EB -mips2" {pic-and-nonpic-5a.s pic-and-nonpic-5b.s}
229 {{readelf --segments pic-and-nonpic-5b.sd}
230 {objdump -dr pic-and-nonpic-5b.dd}
231 {objdump {-s -j.got.plt -j.data} pic-and-nonpic-5b.pd}
232 {readelf -A pic-and-nonpic-5b.gd}
233 {readelf --relocs pic-and-nonpic-5b.rd}
234 {readelf --symbols pic-and-nonpic-5b.nd}
235 {readelf -d pic-and-nonpic-5b.ad}}
236 "pic-and-nonpic-5b"}
237 }
238 set abis { o32 -32 elf32btsmip }
239 if $has_newabi {
240 lappend abis n32 -n32 elf32btsmipn32
241 lappend abis n64 -64 elf64btsmip
242 }
243 foreach { abi flag emul } $abis {
244 run_ld_link_tests [list \
245 [list "PIC and non-PIC test 6 ($abi shared library)" \
246 "-m$emul -shared -Tpic-and-nonpic-3a.ld" \
247 "$flag -EB -mips3" \
248 [list "pic-and-nonpic-6-${abi}a.s"] {} \
249 "pic-and-nonpic-6-${abi}.so"] \
250 [list "PIC and non-PIC test 6 ($abi executable)" \
251 "-m$emul -Tpic-and-nonpic-6.ld tmpdir/pic-and-nonpic-6-${abi}.so" \
252 "$flag -EB -mips3" \
253 [list "pic-and-nonpic-6-${abi}b.s" \
254 "pic-and-nonpic-6-${abi}c.s"] \
255 [list "readelf {--wide --segments} pic-and-nonpic-6-${abi}.sd" \
256 "objdump -dr pic-and-nonpic-6-${abi}.dd" \
257 "objdump {-s -j.got.plt} pic-and-nonpic-6-${abi}.pd" \
258 "readelf -A pic-and-nonpic-6-${abi}.gd" \
259 "readelf --relocs pic-and-nonpic-6-${abi}.rd" \
260 "readelf --symbols pic-and-nonpic-6-${abi}.nd" \
261 "readelf -d pic-and-nonpic-6-${abi}.ad"] \
262 "pic-and-nonpic-6-${abi}"]]
263 }
fbf18a5c 264}
a657e7c1 265
fbf18a5c 266if { $embedded_elf } {
fbf18a5c 267 run_dump_test "region1"
a657e7c1 268}
18ab1921
RS
269
270if $embedded_elf {
271 # This could work on other targets too, but would need the appropriate
272 # ld -m switch.
273 run_dump_test "reloc-1-rel"
274}
275if $has_newabi {
276 run_dump_test "reloc-1-n32"
277 if $linux_gnu {
278 # Uses a linux-specific ld -m switch
279 run_dump_test "reloc-1-n64"
280 }
281}
282run_dump_test "reloc-2"
17a6716a 283run_dump_test "reloc-merge-lo16"
3b788261
TS
284run_dump_test "reloc-3"
285if {$has_newabi} {
286 run_dump_test "reloc-3-n32"
287}
43ec5bc0
AN
288run_dump_test "reloc-4"
289run_dump_test "reloc-5"
290
353057a5
RS
291if {$has_newabi && $linux_gnu} {
292 run_dump_test "eh-frame1-n32"
293 run_dump_test "eh-frame1-n64"
dcf507a6
RS
294 run_dump_test "eh-frame2-n32"
295 run_dump_test "eh-frame2-n64"
353057a5 296}
8c946ed5
RS
297if {$embedded_elf} {
298 run_dump_test "eh-frame3"
299 run_dump_test "eh-frame4"
300}
0efd4160
ILT
301
302run_dump_test "jaloverflow"
c314987d 303run_dump_test "jaloverflow-2"
1f0f3e9b
RS
304if {$has_newabi} {
305 run_dump_test "jalbal"
306}
d6f16593
MR
307
308run_dump_test "mips16-hilo"
309if {$has_newabi} {
310 run_dump_test "mips16-hilo-n32"
311}
f4e584bd 312
cc27e1dc
EC
313if { $linux_gnu } {
314 run_dump_test "textrel-1"
c224138d
RS
315 run_dump_test "got-page-1"
316 if $has_newabi {
317 run_dump_test "got-page-2"
08b55522 318 run_dump_test "dyn-sec64"
c224138d
RS
319 }
320 run_dump_test "got-page-3"
ccb4c951
RS
321 run_dump_test "got-dump-1"
322 if $has_newabi {
323 run_dump_test "got-dump-2"
324 }
63897e2c 325 run_dump_test "reloc-estimate-1"
cc27e1dc
EC
326}
327
81d43bff
RS
328if $has_newabi {
329 run_dump_test "emit-relocs-1"
330}
331
73934d31
RS
332run_dump_test "hash1a"
333run_dump_test "hash1b"
334run_dump_test "hash1c"
335
5108fc1b
RS
336if {[istarget mips*-*-linux*]} {
337 # The number of symbols that are always included in the symbol table
74541ad4 338 # for these tests. The 4 are:
5108fc1b
RS
339 #
340 # the null symbol entry
341 # the .MIPS.stubs section symbol
5108fc1b
RS
342 # _gp
343 # _GLOBAL_OFFSET_TABLE_
74541ad4 344 set base_syms 4
5108fc1b
RS
345 foreach dynsym { 7fff 8000 fff0 10000 2fe80 } {
346 run_ld_link_tests \
347 [list [list \
348 "Stub for dynsym 0x$dynsym" \
349 "-shared -melf32btsmip -T stub-dynsym-1.ld" \
350 [concat \
351 "-EB -march=mips1 -32 -KPIC" \
352 "--defsym base_syms=$base_syms" \
353 "--defsym dynsym=0x$dynsym"] \
354 [list "stub-dynsym-1.s"] \
355 [list [list \
356 "objdump" "-dz" \
357 "stub-dynsym-1-$dynsym.d"]] \
358 "stub-dynsym-1-$dynsym"]]
359 }
360 }
361
f4e584bd
DJ
362# For tests which may involve multiple files, use run_ld_link_tests.
363
364# List contains test-items with 3 items followed by 2 lists:
365# 0:name 1:ld options 2:assembler options
366# 3:filenames of assembler files 4: action and options. 5: name of output file
367
368# Actions:
369# objdump: Apply objdump options on result. Compare with regex (last arg).
370# nm: Apply nm options on result. Compare with regex (last arg).
371# readelf: Apply readelf options on result. Compare with regex (last arg).
372
373set mips_tls_tests {
374 {"Static executable with TLS" "-static -melf32btsmip -T mips-dyn.ld"
375 "-EB -march=mips1 -32 -KPIC" {tlsbin-o32.s}
376 {{objdump {-dr -m mips:isa32r2} tlsbin-o32.d} {objdump -srj.got tlsbin-o32.got}}
377 "tls-static-o32"}
378 {"Shared library with TLS" "-shared -melf32btsmip -T mips-lib.ld"
379 "-EB -march=mips1 -32 -KPIC" {tlslib-o32.s}
380 {{objdump {-dr -m mips:isa32r2} tlslib-o32.d} {objdump -Rsj.got tlslib-o32.got}}
381 "tlslib-o32.so"}
382 {"Dynamic executable with TLS"
383 "-melf32btsmip -T mips-dyn.ld tmpdir/tlslib-o32.so"
384 "-EB -march=mips1 -32 -KPIC" {tlsdyn-o32.s}
385 {{objdump {-dr -m mips:isa32r2} tlsdyn-o32.d} {objdump -Rsj.got tlsdyn-o32.got}}
386 "tls-dynamic-o32"}
387 {"Shared library with multiple GOTs and TLS"
388 "-shared -melf32btsmip -T mips-lib.ld"
389 "-EB -march=mips1 -32 -KPIC" {tls-multi-got-1-1.s tls-multi-got-1-2.s}
390 {{readelf {-d -r} tls-multi-got-1.r}
391 {objdump {-dr -m mips:isa32r2} tls-multi-got-1.d}
392 {objdump -Rsj.got tls-multi-got-1.got}}
393 "tlslib-multi.so"}
394 {"Shared library with TLS and versioning"
395 "-shared -melf32btsmip -T mips-lib.ld --version-script tlslib.ver"
396 "-EB -march=mips1 -32 -KPIC" {tlslib-o32.s}
397 {{objdump {-dr -m mips:isa32r2} tlslib-o32.d} {objdump -Rsj.got tlslib-o32-ver.got}}
398 "tlslib-o32-ver.so"}
399 {"Dynamic executable with TLS and versioning"
400 "-melf32btsmip -T mips-dyn.ld tmpdir/tlslib-o32-ver.so"
401 "-EB -march=mips1 -32 -KPIC" {tlsdyn-o32.s tlsdyn-o32-2.s}
402 {{objdump {-dr -m mips:isa32r2} tlsdyn-o32-1.d} {objdump -Rsj.got tlsdyn-o32-1.got}}
403 "tls-dynamic-o32-ver"}
404 {"Dynamic executable with TLS and versioning (order 2)"
405 "-melf32btsmip -T mips-dyn.ld tmpdir/tlsdyn-o32.o tmpdir/tlslib-o32-ver.so tmpdir/tlsdyn-o32-2.o"
406 "-EB -march=mips1 -32 -KPIC" {}
407 {{objdump {-dr -m mips:isa32r2} tlsdyn-o32-2.d} {objdump -Rsj.got tlsdyn-o32-2.got}}
408 "tls-dynamic-o32-ver-2"}
409 {"Dynamic executable with TLS and versioning (order 3)"
410 "-melf32btsmip -T mips-dyn.ld tmpdir/tlsdyn-o32-2.o tmpdir/tlslib-o32-ver.so tmpdir/tlsdyn-o32.o"
411 "-EB -march=mips1 -32 -KPIC" {}
412 {{objdump {-dr -m mips:isa32r2} tlsdyn-o32-3.d} {objdump -Rsj.got tlsdyn-o32-3.got}}
413 "tls-dynamic-o32-ver-3"}
414 {"Shared library with TLS and hidden symbols"
415 "-shared -melf32btsmip -T mips-lib.ld --version-script tlslib-hidden.ver"
416 "-EB -march=mips1 -32 -KPIC" {tlslib-o32.s}
417 {{objdump {-dr -m mips:isa32r2} tlslib-o32.d} {objdump -Rsj.got tlslib-o32-hidden.got}}
418 "tlslib-o32-hidden.so"}
4005427f
RS
419 {"Shared library with TLS and hidden symbols (2)"
420 "-shared -melf32btsmip -T mips-lib.ld"
421 "-EB -march=mips1 -32 -KPIC" {tls-hidden2a.s tls-hidden2b.s}
422 {{objdump -drj.text tls-hidden2.d} {objdump -sj.got tls-hidden2-got.d}}
423 "tls-hidden2.so"}
ead49a57
RS
424 {"Shared library with TLS and hidden symbols (3)"
425 "-shared -melf32btsmip -T tls-hidden3.ld"
426 "-EB -march=mips2 -32 -KPIC" {tls-hidden3a.s tls-hidden3b.s}
427 {{objdump -dj.text tls-hidden3.d} {objdump -sj.got tls-hidden3.got}
428 {readelf --relocs tls-hidden3.r}}
429 "tls-hidden3.so"}
430 {"Shared library with TLS and hidden symbols (4)"
431 "-shared -melf32btsmip -T tls-hidden3.ld"
432 "-EB -march=mips2 -32 -KPIC" {tls-hidden4a.s tls-hidden4b.s}
433 {{objdump -sj.got tls-hidden4.got} {readelf --relocs tls-hidden4.r}}
434 "tls-hidden4.so"}
f4e584bd
DJ
435}
436
437if {[istarget mips*-*-linux*]} {
438 run_ld_link_tests $mips_tls_tests
439}
440
08e8dfaf
RS
441set mips16_call_global_test [list \
442 [list "Global calls from mips16" \
443 "$o32_ld_flags" \
444 "$o32_as_flags -mips32r2" \
445 {mips16-call-global-1.s mips16-call-global-2.s mips16-call-global-3.s} \
446 {{objdump -dr mips16-call-global.d}} \
447 "mips16-call-global"]]
35d3d567
TS
448
449run_ld_link_tests $mips16_call_global_test
b9d58d71 450
08e8dfaf
RS
451set mips16_intermix_test [list \
452 [list "Intermixing mips32 and mips16 functions" \
453 "$o32_ld_flags" \
454 "$o32_as_flags -mips32r2" \
455 {mips16-intermix-1.s mips16-intermix-2.s} \
456 {{objdump -t mips16-intermix.d}} \
457 "mips16-intermix"]]
b9d58d71
TS
458
459run_ld_link_tests $mips16_intermix_test
b314ec0e
RS
460
461run_dump_test "mips16-local-stubs-1"
2cf19d5c
JM
462
463run_dump_test "attr-gnu-4-00"
464run_dump_test "attr-gnu-4-01"
465run_dump_test "attr-gnu-4-02"
466run_dump_test "attr-gnu-4-03"
42554f6a
TS
467run_dump_test "attr-gnu-4-04"
468run_dump_test "attr-gnu-4-05"
2cf19d5c
JM
469run_dump_test "attr-gnu-4-10"
470run_dump_test "attr-gnu-4-11"
471run_dump_test "attr-gnu-4-12"
472run_dump_test "attr-gnu-4-13"
473run_dump_test "attr-gnu-4-14"
42554f6a 474run_dump_test "attr-gnu-4-15"
2cf19d5c
JM
475run_dump_test "attr-gnu-4-20"
476run_dump_test "attr-gnu-4-21"
477run_dump_test "attr-gnu-4-22"
478run_dump_test "attr-gnu-4-23"
42554f6a
TS
479run_dump_test "attr-gnu-4-24"
480run_dump_test "attr-gnu-4-25"
2cf19d5c
JM
481run_dump_test "attr-gnu-4-30"
482run_dump_test "attr-gnu-4-31"
483run_dump_test "attr-gnu-4-32"
484run_dump_test "attr-gnu-4-33"
42554f6a
TS
485run_dump_test "attr-gnu-4-34"
486run_dump_test "attr-gnu-4-35"
487run_dump_test "attr-gnu-4-40"
2cf19d5c 488run_dump_test "attr-gnu-4-41"
42554f6a
TS
489run_dump_test "attr-gnu-4-42"
490run_dump_test "attr-gnu-4-43"
491run_dump_test "attr-gnu-4-44"
492run_dump_test "attr-gnu-4-45"
493run_dump_test "attr-gnu-4-51"
634835ae
RS
494
495if { $linux_gnu } {
496 run_ld_link_tests {
497 {"GOT and versioning 1"
498 "-shared -melf32btsmip --version-script got-vers-1.ver"
499 "-EB -mips2 -32" {got-vers-1a.s got-vers-1b.s}
500 {{readelf -d got-vers-1.dd}
501 {readelf --symbols got-vers-1.sd}
502 {readelf --relocs got-vers-1.rd}}
503 "got-vers-1.so"}
504 }
505}
This page took 0.45797 seconds and 4 git commands to generate.