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