x86: Disable GOT relaxation with data prefix
[deliverable/binutils-gdb.git] / ld / testsuite / ld-x86-64 / x86-64.exp
CommitLineData
bffbf940 1# Expect script for ld-x86_64 tests
219d1afa 2# Copyright (C) 2002-2018 Free Software Foundation, Inc.
bffbf940 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
bffbf940 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
bffbf940
JJ
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.
bffbf940
JJ
20#
21
22# Test x86_64 linking; all types of relocs. This tests the assembler and
23# tools like objdump as well as the linker.
24
25if { !([istarget "x86_64-*-elf*"]
5a68afcf 26 || [istarget "x86_64-*-nacl*"]
bffbf940
JJ
27 || [istarget "x86_64-*-linux*"]) } {
28 return
29}
30
5a68afcf
RM
31if [istarget "*-*-nacl*"] {
32 set emul "elf_x86_64_nacl"
33} else {
34 set emul "elf_x86_64"
35}
36
6c0d3bde
L
37global ASFLAGS
38set saved_ASFLAGS "$ASFLAGS"
39set ASFLAGS "$ASFLAGS -mx86-used-note=no"
40
bffbf940 41# List contains test-items with 3 items followed by 2 lists:
897aea50
MR
42# 0:name 1:ld early options 2:ld late options 3:assembler options
43# 4:filenames of assembler files 5: action and options. 6: name of output file
bffbf940
JJ
44
45# Actions:
46# objdump: Apply objdump options on result. Compare with regex (last arg).
47# nm: Apply nm options on result. Compare with regex (last arg).
48# readelf: Apply readelf options on result. Compare with regex (last arg).
49
50set x86_64tests {
5a68afcf 51 {"Helper shared library (basic PLT test)"
897aea50 52 "-shared -melf_x86_64" "" "--64" {pltlib.s} {} "libpltlib.so"}
5a68afcf 53 {"basic PLT generation"
897aea50 54 "-melf_x86_64 tmpdir/libpltlib.so" "" "--64" {plt.s}
5a68afcf 55 {{objdump -drj.plt plt.pd}} "plt"}
e41b3a13 56 {"TLS -fpic -shared transitions"
7c9f387a
L
57 "-shared -melf_x86_64 --no-ld-generated-unwind-info \
58 -z noseparate-code -z max-page-size=0x200000 --hash-style=sysv" ""
bffbf940 59 "--64" {tlspic1.s tlspic2.s}
5db04b09 60 {{readelf -WSsrl tlspic.rd} {objdump -drj.text\ -Mintel64 tlspic.dd}
bffbf940
JJ
61 {objdump -sj.got tlspic.sd} {objdump -sj.tdata tlspic.td}}
62 "libtlspic.so"}
e2cbcd91 63 {"TLS -fpic -shared transitions with r15 as GOT base"
7c9f387a
L
64 "-shared -melf_x86_64 --no-ld-generated-unwind-info \
65 -z noseparate-code -z max-page-size=0x200000 --hash-style=sysv" ""
e2cbcd91
L
66 "--64 -mrelax-relocations=yes"
67 {tlspic3.s tlspic2.s}
68 {{readelf -WSsrl tlspic2.rd} {objdump -drj.text\ -Mintel64 tlspic2.dd}
69 {objdump -sj.got tlspic2.sd} {objdump -sj.tdata tlspic2.td}}
70 "libtlspic2.so"}
e41b3a13 71 {"TLS descriptor -fpic -shared transitions"
7c9f387a
L
72 "-shared -melf_x86_64 --no-ld-generated-unwind-info \
73 -z noseparate-code -z max-page-size=0x200000 --hash-style=sysv" ""
67a4f2b7
AO
74 "--64" {tlsdesc.s tlspic2.s}
75 {{readelf -WSsrld tlsdesc.rd} {objdump -drj.text tlsdesc.dd}
76 {objdump "-s -j.got -j.got.plt" tlsdesc.sd} {objdump -sj.tdata tlsdesc.td}
77 {objdump -drj.plt tlsdesc.pd}} "libtlsdesc.so"}
897aea50 78 {"Helper shared library" "-shared -melf_x86_64" ""
bffbf940
JJ
79 "--64" {tlslib.s} {} "libtlslib.so"}
80 {"TLS -fpic and -fno-pic exec transitions"
7c9f387a
L
81 "-melf_x86_64 tmpdir/libtlslib.so --no-ld-generated-unwind-info \
82 -z noseparate-code -z max-page-size=0x200000 --hash-style=sysv" ""
e41b3a13 83 "--64" {tlsbinpic.s tlsbin.s}
bffbf940
JJ
84 {{readelf -WSsrl tlsbin.rd} {objdump -drj.text tlsbin.dd}
85 {objdump -sj.got tlsbin.sd} {objdump -sj.tdata tlsbin.td}}
86 "tlsbin"}
e2cbcd91 87 {"TLS -fpic and -fno-pic exec transitions without PLT"
7c9f387a
L
88 "-melf_x86_64 tmpdir/libtlslib.so --no-ld-generated-unwind-info \
89 -z noseparate-code -z max-page-size=0x200000 --hash-style=sysv" ""
e2cbcd91
L
90 "-mrelax-relocations=yes --64" {tlsbinpic2.s tlsbin.s}
91 {{readelf -WSsrl tlsbin2.rd} {objdump -drj.text tlsbin2.dd}
92 {objdump -sj.got tlsbin2.sd} {objdump -sj.tdata tlsbin2.td}}
93 "tlsbin2"}
67a4f2b7 94 {"TLS descriptor -fpic and -fno-pic exec transitions"
7c9f387a
L
95 "-melf_x86_64 tmpdir/libtlslib.so --no-ld-generated-unwind-info \
96 -z noseparate-code -z max-page-size=0x200000 --hash-style=sysv" ""
e41b3a13 97 "--64" {tlsbindesc.s tlsbin.s}
67a4f2b7
AO
98 {{readelf -WSsrl tlsbindesc.rd} {objdump -drj.text tlsbindesc.dd}
99 {objdump -sj.got tlsbindesc.sd} {objdump -sj.tdata tlsbindesc.td}}
100 "tlsbindesc"}
101 {"TLS with global dynamic and descriptors"
7c9f387a
L
102 "-shared -melf_x86_64 --no-ld-generated-unwind-info \
103 -z noseparate-code -z max-page-size=0x200000 --hash-style=sysv" ""
e41b3a13 104 "--64" {tlsgdesc.s}
5db04b09 105 {{readelf -WSsrl tlsgdesc.rd} {objdump -drj.text\ -Mintel64 tlsgdesc.dd}}
67a4f2b7 106 "libtlsgdesc.so"}
897aea50 107 {"TLS in debug sections" "-melf_x86_64" ""
a45bb67d
JJ
108 "--64" {tlsg.s}
109 {{objdump -sj.debug_foobar tlsg.sd}} "tlsg"}
897aea50 110 {"TLS GD->LE transition" "-melf_x86_64" ""
a3fadc9a
L
111 "--64" {tlsgd1.s}
112 {{objdump -dwr tlsgd1.dd}} "tlsgd1"}
897aea50 113 {"TLS LD->LE transition" "-melf_x86_64" ""
a3fadc9a
L
114 "--64" {tlsld1.s}
115 {{objdump -dwr tlsld1.dd}} "tlsld1"}
897aea50 116 {"TLS IE->LE transition" "-melf_x86_64" ""
dd1093aa
L
117 "--64" {tlsie1.s}
118 {{objdump -dwr tlsie1.dd}} "tlsie1"}
897aea50 119 {"Helper 64bit object 1" "-r -melf_x86_64" ""
39334f3a 120 "--64" {mixed1a.s} {} "libmixe1a.o"}
897aea50 121 {"Helper 32bit object 1" "-r -melf_i386" ""
39334f3a 122 "--32" {mixed1b.s} {} "libmixe1b.o"}
897aea50 123 {"Helper 64bit object 2" "-r -melf_x86_64" ""
39334f3a 124 "--64" {mixed2a.s} {} "libmixe2a.o"}
897aea50 125 {"Helper 32bit object 2" "-r -melf_i386" ""
39334f3a 126 "--32" {mixed2b.s} {} "libmixe2b.o"}
897aea50
MR
127 {"Split by file with 'l' flag on section."
128 "-split-by-file -r -melf_x86_64" ""
3dbcc61d
NC
129 "--64" {split-by-file1.s split-by-file2.s}
130 {{readelf -SW split-by-file.rd}} "split-by-file.o"}
897aea50 131 {"TLS X32 IE->LE transition" "-melf32_x86_64" ""
4a4c5f25
L
132 "--x32" {tlsie4.s}
133 {{objdump -dwr tlsie4.dd}} "tlsie4"}
897aea50 134 {"TLS X32 GD->LE transition" "-melf32_x86_64" ""
52bc799a
L
135 "--x32" {tlsgd4.s}
136 {{objdump -dwr tlsgd4.dd}} "tlsgd4"}
897aea50 137 {"Helper TLS GD->IE transition DSO" "-shared -melf_x86_64" ""
52bc799a 138 "--64" {tlsgd5b.s} {} "libtlsgd5.so"}
897aea50 139 {"TLS GD->IE transition" "-melf_x86_64 tmpdir/libtlsgd5.so" ""
52bc799a 140 "--64" {tlsgd5a.s}
e2cbcd91
L
141 {{objdump -dwr tlsgd5.dd}} "tlsgd5a"}
142 {"TLS GD->IE transition without PLT"
143 "-melf_x86_64 tmpdir/libtlsgd5.so" ""
144 "-mrelax-relocations=yes --64" {tlsgd5c.s}
145 {{objdump -dwr tlsgd5.dd}} "tlsgd5b"}
897aea50 146 {"Helper TLS X32 GD->IE transition DSO" "-shared -melf32_x86_64" ""
52bc799a 147 "--x32" {tlsgd6b.s} {} "libtlsgd6.so"}
897aea50 148 {"TLS X32 GD->IE transition" "-melf32_x86_64 tmpdir/libtlsgd6.so" ""
52bc799a 149 "--x32" {tlsgd6a.s}
e2cbcd91
L
150 {{objdump -dwr tlsgd6.dd}} "tlsgd6a"}
151 {"TLS X32 GD->IE transition without PLT"
152 "-melf32_x86_64 tmpdir/libtlsgd6.so" ""
153 "-mrelax-relocations=yes --x32" {tlsgd6c.s}
154 {{objdump -dwr tlsgd6.dd}} "tlsgd6b"}
897aea50 155 {"TLS X32 LD->LE transition" "-melf32_x86_64" ""
52bc799a
L
156 "--x32" {tlsld2.s}
157 {{objdump -dwr tlsld2.dd}} "tlsld2"}
5c98a14e
JJ
158 {"TLS -mcmodel=large GD->LE transition" "-melf_x86_64" ""
159 "--64" {tlsgd7.s}
160 {{objdump -dwr tlsgd7.dd}} "tlsgd7"}
161 {"TLS -mcmodel=large LD->LE transition" "-melf_x86_64" ""
162 "--64" {tlsld3.s}
163 {{objdump -dwr tlsld3.dd}} "tlsld3"}
e2cbcd91
L
164 {"TLS -mcmodel=large LD->LE transition with r15 as GOT base"
165 "-melf_x86_64" ""
166 "--64" {tlsld4.s}
167 {{objdump -dwr tlsld4.dd}} "tlsld4"}
168 {"TLS LD->LE transition without PLT"
169 "-melf_x86_64" ""
170 "--64 -mrelax-relocations=yes"
171 {tlsld5.s}
172 {{objdump -dwr tlsld5.dd}} "tlsld5"}
173 {"TLS X32 LD->LE transition without PLT" "-melf32_x86_64" ""
174 "--x32 -mrelax-relocations=yes"
175 {tlsld6.s}
176 {{objdump -dwr tlsld6.dd}} "tlsld6"}
5c98a14e
JJ
177 {"TLS -mcmodel=large GD->IE transition" "-melf_x86_64 tmpdir/libtlsgd5.so" ""
178 "--64" {tlsgd8.s}
179 {{objdump -dwrj.text tlsgd8.dd}} "tlsgd8"}
e2cbcd91
L
180 {"TLS -mcmodel=large GD->LE transition with r15 as GOT base"
181 "-melf_x86_64" ""
182 "--64" {tlsgd9.s}
183 {{objdump -dwr tlsgd9.dd}} "tlsgd9"}
184 {"TLS -mcmodel=large GD->IE transition with r15 as GOT base"
185 "-melf_x86_64 tmpdir/libtlsgd5.so" ""
186 "--64" {tlsgd10.s}
187 {{objdump -dwrj.text tlsgd10.dd}} "tlsgd10"}
188 {"TLS GD->LE transition without PLT"
189 "-melf_x86_64" ""
190 "--64" {tlsgd11.s}
191 {{objdump -dwr tlsgd11.dd}} "tlsgd11"}
192 {"TLS X32 GD->LE transition without PLT"
193 "-melf32_x86_64" ""
194 "--x32" {tlsgd14.s}
195 {{objdump -dwr tlsgd14.dd}} "tlsgd14"}
897aea50
MR
196 {"build 32-bit object with 33 locals" "-melf_x86_64 -e 0" "" "--32" {32bit.s} {{ ld incompatible.l }} "dummy" }
197 {"build 64-bit object" "-melf_x86_64 -e 0 --defsym foo=1" "" "--64" {64bit.s} {} "dummy" }
198 {"link mixed objects" "-melf_x86_64 -e 0 tmpdir/32bit.o tmpdir/64bit.o" "" "" {} { { ld incompatible.l } } "mixed"}
29a9f53e
L
199 {"PR ld/17313 (1)" "-melf_x86_64" ""
200 "--64" {dummy.s} {} ""}
201 {"PR ld/17313 (2)" "-melf_x86_64 -shared --just-symbols=tmpdir/dummy.o" ""
202 "--64" {lea1.s} {} "libpr17313.so"}
c8831961
L
203 {"PR ld/17306 (1)" "-melf_x86_64" ""
204 "--64" {pr17306b.s} {} ""}
205 {"PR ld/17306 (2)" "-melf_x86_64 -shared -Bsymbolic --just-symbols=tmpdir/pr17306b.o" ""
206 "--64" {pr17306a.s} {} "libpr17306.so"}
f7483970
L
207 {"PR ld/17709 (1)" "-melf_x86_64 -shared" ""
208 "--64" {pr17709a.s} {} "libpr17709.so"}
209 {"PR ld/17709 (2)" "-melf_x86_64 tmpdir/libpr17709.so" ""
210 "--64" {pr17709b.s} {{readelf -rW pr17709.rd}} "pr17709"}
4e0c91e4
L
211 {"Build pr19827a.o" "" ""
212 "--64" { pr19827a.S }}
213 {"Build pr19827b.so" "-melf_x86_64 -shared" ""
214 "--64" { pr19827b.S } {} "pr19827b.so"}
215 {"Build pr19827" "-melf_x86_64 -pie tmpdir/pr19827a.o tmpdir/pr19827b.so" ""
216 "--64" { dummy.s } {{readelf {-rW} pr19827.rd}} "pr19827"}
217 {"Build pr19827.so" "-melf_x86_64 -shared -Bsymbolic" ""
218 "--64" { pr19827a.S } {{readelf {-rW} pr19827.rd}} "pr19827.so"}
338c190a
L
219 {"Build pr19969.so" "-melf_x86_64 -shared" ""
220 "--64" { pr19969a.S } {} "pr19969.so"}
d8457a04
L
221 {"Build pr20550a.o" "" ""
222 "--64" { pr20550a.s }}
223 {"Build pr20550b.so" "-melf_x86_64 -shared" ""
224 "--64" { pr20550b.s } {} "pr20550b.so"}
225 {"Build pr20550" "-melf_x86_64 -pie tmpdir/pr20550a.o tmpdir/pr20550b.so" ""
226 "--64" { dummy.s } {} "pr20550"}
5a68afcf
RM
227}
228
229# So as to avoid rewriting every last test case here in a nacl variant,
230# we use black magic to massage the generic cases into nacl-variant cases.
231if [istarget "*-*-nacl*"] {
232 set emul elf_x86_64_nacl
233
234 set lhs {elf(32)?_(i386|x86_64)[[:>:]]}
235 set rhs {&_nacl}
236
237 # Change all the -melf_x86_64 to -melf_x86_64_nacl so linking can succeed.
238 regsub -all -- $lhs $x86_64tests $rhs x86_64tests
239
7c9f387a
L
240 set zlhs {-z noseparate-code -z max-page-size=0x200000}
241 set zrhs {}
242
243 # Remove -z max-page-size=0x200000 -z noseparate-code since they
244 # generate different addresses for nacl targets.
245 regsub -all -- $zlhs $x86_64tests $zrhs x86_64tests
246
5a68afcf
RM
247 # Same, applied to all the run_dump_test cases.
248 set options_regsub(ld) [list $lhs $rhs]
249
250 # The section/segment layout differs too much for the vanilla
251 # readelf output files to match. So massage the cases so that
252 # they refer to a foo-nacl.rd file instead of a foo.rd file.
253 regsub -all -- {([a-z0-9]+)\.rd} $x86_64tests {\1-nacl.rd} x86_64tests
254
255 # Likewise for PLTs.
256 regsub -all -- {([a-z0-9]+)\.pd} $x86_64tests {\1-nacl.pd} x86_64tests
257} else {
258 set emul elf_x86_64
bffbf940
JJ
259}
260
261run_ld_link_tests $x86_64tests
ac2aa337 262
39334f3a
L
263global link_output
264global ld
265
b51176f1 266set test_name "Mixed x86_64 and i386 input test 1"
39334f3a 267set test mixed1
d9816402 268if { ![ld_link $ld tmpdir/$test "-m$emul tmpdir/${test}a.o tmpdir/${test}b.o"] } {
64b384e1 269 if [string match "*i386* architecture of input file `tmpdir/${test}b.o' is incompatible with i386:x86-64* output*" $link_output] {
5a68afcf 270 pass "$test_name"
39334f3a 271 } {
5a68afcf 272 fail "$test_name"
39334f3a
L
273 }
274}
275
b51176f1 276set test_name "Mixed x86_64 and i386 input test 2"
39334f3a 277set test mixed2
d9816402 278if { ![ld_link $ld tmpdir/$test "-m$emul tmpdir/${test}a.o tmpdir/${test}b.o"] } {
64b384e1 279 if [string match "*i386* architecture of input file `tmpdir/${test}b.o' is incompatible with i386:x86-64* output*" $link_output] {
5a68afcf 280 pass "$test_name"
39334f3a 281 } {
5a68afcf 282 fail "$test_name"
39334f3a
L
283 }
284}
285
ac2aa337 286run_dump_test "abs"
8a9036a4 287run_dump_test "abs-l1om"
43083a50 288run_dump_test "apic"
ac2aa337
JB
289run_dump_test "pcrel8"
290run_dump_test "pcrel16"
dd1093aa
L
291run_dump_test "tlsgd2"
292run_dump_test "tlsgd3"
e2cbcd91
L
293run_dump_test "tlsgd12"
294run_dump_test "tlsgd13"
dd1093aa
L
295run_dump_test "tlsie2"
296run_dump_test "tlsie3"
41bed6dd
L
297run_dump_test "hidden1"
298run_dump_test "hidden2"
299run_dump_test "hidden3"
e3c0e327
L
300run_dump_test "hidden4"
301run_dump_test "hidden5"
41bed6dd
L
302run_dump_test "protected1"
303run_dump_test "protected2"
8a9036a4 304run_dump_test "protected2-l1om"
41bed6dd 305run_dump_test "protected3"
8a9036a4 306run_dump_test "protected3-l1om"
bdb892b9
L
307run_dump_test "protected4"
308run_dump_test "protected5"
e3c0e327 309run_dump_test "protected6a"
889c2a67 310run_dump_test "protected6b"
3d949995
L
311run_dump_test "protected7a"
312run_dump_test "protected7b"
73784fa5 313run_dump_test "protected8"
9b769489 314run_dump_test "tlsle1"
1d85728f 315run_dump_test "tlspie1"
e2cbcd91
L
316run_dump_test "tlspie2a"
317run_dump_test "tlspie2b"
318run_dump_test "tlspie2c"
6f8bcf84 319run_dump_test "unique1"
a7b16ceb 320run_dump_test "nogot1"
0629d0af 321run_dump_test "nogot2"
56d4289c 322run_dump_test "discarded1"
2abca860 323run_dump_test "pr12718"
a81aeffc 324run_dump_test "pr12921"
aed64b35 325run_dump_test "pr13947"
2fe0fd06
L
326run_dump_test "pr12570a"
327run_dump_test "pr12570b"
17d6eea5 328run_dump_test "pr14215"
8981c88a 329run_dump_test "pr14207"
553d1284 330run_dump_test "gotplt1"
6333bc0d 331run_dump_test "pie1"
126697d1 332run_dump_test "pie2"
c5bb8910
L
333run_dump_test "pie3"
334run_dump_test "pie3-nacl"
03f2309a 335run_dump_test "pic1"
b8871f35
L
336run_dump_test "largecomm-1a"
337run_dump_test "largecomm-1b"
338run_dump_test "largecomm-1c"
339run_dump_test "largecomm-1d"
340run_dump_test "largecomm-1e"
341run_dump_test "largecomm-1f"
3ab94f96
L
342run_dump_test "pr19539a"
343run_dump_test "pr19539b"
4c10bbaa
L
344run_dump_test "pr19807-1a"
345run_dump_test "pr19807-1b"
346run_dump_test "pr19807-2a"
347run_dump_test "pr19807-2b"
348run_dump_test "pr19807-2c"
349run_dump_test "pr19807-2d"
350run_dump_test "pr19807-2e"
338c190a 351run_dump_test "pr19969"
2168b268
L
352run_dump_test "pr20093-1"
353run_dump_test "pr20093-2"
73caa85d 354run_dump_test "property-x86-3"
92f7d783
L
355run_dump_test "property-x86-4a"
356run_dump_test "property-x86-4b"
654f3b6a
L
357run_dump_test "property-x86-3-x32"
358run_dump_test "property-x86-4a-x32"
359run_dump_test "property-x86-4b-x32"
90c745dc
L
360run_dump_test "property-x86-5"
361run_dump_test "property-x86-5-x32"
ee2fdd6f
L
362run_dump_test "property-x86-ibt1a"
363run_dump_test "property-x86-ibt1b"
364run_dump_test "property-x86-ibt1a-x32"
365run_dump_test "property-x86-ibt1b-x32"
366run_dump_test "property-x86-ibt2"
367run_dump_test "property-x86-ibt2-x32"
368run_dump_test "property-x86-ibt3a"
369run_dump_test "property-x86-ibt3b"
370run_dump_test "property-x86-ibt3a-x32"
371run_dump_test "property-x86-ibt3b-x32"
372run_dump_test "property-x86-ibt4"
373run_dump_test "property-x86-ibt4-x32"
374run_dump_test "property-x86-ibt5"
375run_dump_test "property-x86-ibt5-x32"
48580982
L
376run_dump_test "property-x86-shstk1a"
377run_dump_test "property-x86-shstk1b"
378run_dump_test "property-x86-shstk1a-x32"
379run_dump_test "property-x86-shstk1b-x32"
380run_dump_test "property-x86-shstk2"
381run_dump_test "property-x86-shstk2-x32"
382run_dump_test "property-x86-shstk3a"
383run_dump_test "property-x86-shstk3b"
384run_dump_test "property-x86-shstk3a-x32"
385run_dump_test "property-x86-shstk3b-x32"
386run_dump_test "property-x86-shstk4"
387run_dump_test "property-x86-shstk4-x32"
388run_dump_test "property-x86-shstk5"
389run_dump_test "property-x86-shstk5-x32"
9593aade 390run_dump_test "pr21884"
34c4758c 391run_dump_test "pr21884-nacl"
0e30d991 392run_dump_test "pr22071"
0a27fed7
L
393run_dump_test "pr22115-1a"
394run_dump_test "pr22115-1a-x32"
395run_dump_test "pr22115-1b"
396run_dump_test "pr22115-1b-x32"
397run_dump_test "pr22115-1c"
398run_dump_test "pr22115-1c-x32"
399run_dump_test "pr22115-1d"
400run_dump_test "pr22115-1d-x32"
5e5e02ae 401run_dump_test "pr22135"
cd048363
L
402run_dump_test "pr22782a"
403run_dump_test "pr22782b"
941036f4 404run_dump_test "pr23189"
97373b2e 405run_dump_test "pr23194"
b638b5d5
L
406run_dump_test "pr23324a"
407run_dump_test "pr23324b"
56ad703d
L
408run_dump_test "pr23372a"
409run_dump_test "pr23372a-x32"
410run_dump_test "pr23372b"
411run_dump_test "pr23372b-x32"
a9eafb08
L
412run_dump_test "pr23372c"
413run_dump_test "pr23372c-x32"
414run_dump_test "pr23372d"
415run_dump_test "pr23372d-x32"
f7309df2
L
416run_dump_test "pr23486a"
417run_dump_test "pr23486a-x32"
418run_dump_test "pr23486b"
419run_dump_test "pr23486b-x32"
a9eafb08
L
420run_dump_test "pr23486c"
421run_dump_test "pr23486c-x32"
422run_dump_test "pr23486d"
423run_dump_test "pr23486d-x32"
e60f4d3b 424run_dump_test "pr23854"
25d17eb4 425
5a68afcf 426if { ![istarget "x86_64-*-linux*"] && ![istarget "x86_64-*-nacl*"]} {
25d17eb4
L
427 return
428}
429
5a68afcf 430if ![ld_assemble $as "--x32 $srcdir/$subdir/start.s" tmpdir/startx32.o] {
889a4d3e
L
431 unresolved "Build ILP32 start.o"
432 return
433}
434
5a68afcf 435if ![ld_assemble $as "--32 $srcdir/$subdir/start.s" tmpdir/start32.o] {
889a4d3e
L
436 unresolved "Build ia32 start.o"
437 return
438}
439
5a68afcf 440if ![ld_assemble $as "--64 $srcdir/$subdir/start.s" tmpdir/start64.o] {
889a4d3e
L
441 unresolved "Build LP64 start.o"
442 return
443}
444
5a68afcf 445if ![ld_assemble $as "--x32 $srcdir/$subdir/foo.s" tmpdir/foox32.o] {
889a4d3e
L
446 unresolved "Build ILP32 foo.o"
447 return
448}
449
5a68afcf 450if ![ld_assemble $as "--32 $srcdir/$subdir/foo.s" tmpdir/foo32.o] {
889a4d3e
L
451 unresolved "Build ia32 foo.o"
452 return
453}
454
5a68afcf 455if ![ld_assemble $as "--64 $srcdir/$subdir/foo.s" tmpdir/foo64.o] {
889a4d3e
L
456 unresolved "Build LP64 foo.o"
457 return
458}
459
25d17eb4 460run_dump_test "compressed1"
889a4d3e
L
461run_dump_test "ilp32-1"
462run_dump_test "ilp32-2"
463run_dump_test "ilp32-3"
82e96e07 464run_dump_test "ilp32-4"
5a68afcf 465run_dump_test "ilp32-4-nacl"
248775ba 466run_dump_test "ilp32-5"
d7921315
L
467run_dump_test "ilp32-6"
468run_dump_test "ilp32-7"
469run_dump_test "ilp32-8"
470run_dump_test "ilp32-9"
df4f9443 471run_dump_test "ilp32-10"
8cf0d2dd 472run_dump_test "ilp32-11"
889a4d3e
L
473run_dump_test "ia32-1"
474run_dump_test "ia32-2"
475run_dump_test "ia32-3"
476run_dump_test "lp64-1"
477run_dump_test "lp64-2"
478run_dump_test "lp64-3"
64d25c44
L
479run_dump_test "pr13082-1a"
480run_dump_test "pr13082-1b"
481run_dump_test "pr13082-2a"
482run_dump_test "pr13082-2b"
483run_dump_test "pr13082-3a"
484run_dump_test "pr13082-3b"
bae420ef
L
485run_dump_test "pr13082-3c"
486run_dump_test "pr13082-3d"
64d25c44
L
487run_dump_test "pr13082-4a"
488run_dump_test "pr13082-4b"
489run_dump_test "pr13082-5a"
490run_dump_test "pr13082-5b"
491run_dump_test "pr13082-6a"
492run_dump_test "pr13082-6b"
80d87326
L
493run_dump_test "lea1a"
494run_dump_test "lea1b"
495run_dump_test "lea1c"
496run_dump_test "lea1d"
497run_dump_test "lea1e"
498run_dump_test "lea1f"
daa67607
L
499run_dump_test "lea1g"
500run_dump_test "lea1h"
501run_dump_test "lea1i"
502run_dump_test "lea1j"
503run_dump_test "lea1k"
504run_dump_test "lea1l"
3f65f599
L
505run_dump_test "mov1a"
506run_dump_test "mov1b"
507run_dump_test "mov1c"
508run_dump_test "mov1d"
02e2aef8
L
509run_dump_test "mov2a"
510run_dump_test "mov2b"
511run_dump_test "mov2c"
512run_dump_test "mov2d"
56ceb5b5
L
513run_dump_test "load1a"
514run_dump_test "load1b"
515run_dump_test "load1c"
516run_dump_test "load1d"
caa65211
L
517run_dump_test "load1a-nacl"
518run_dump_test "load1b-nacl"
519run_dump_test "load1c-nacl"
520run_dump_test "load1d-nacl"
2856a627 521run_dump_test "load2"
caa65211
L
522run_dump_test "call1a"
523run_dump_test "call1b"
524run_dump_test "call1c"
525run_dump_test "call1d"
526run_dump_test "call1e"
527run_dump_test "call1f"
528run_dump_test "call1g"
529run_dump_test "call1h"
530run_dump_test "call1i"
1952c5cd
L
531run_dump_test "pr17935-1"
532run_dump_test "pr17935-2"
b19a8f85 533run_dump_test "pr18160"
875b5b9d 534run_dump_test "pr18176"
8efa2874 535run_dump_test "pr18801"
13a2df29 536run_dump_test "pr18815"
9865bd0d
L
537run_dump_test "pr19013"
538run_dump_test "pr19013-x32"
539run_dump_test "pr19013-nacl"
7963511f 540run_dump_test "pr19162"
7b7e7f1d 541run_dump_test "pr19175"
6ba2af25 542run_dump_test "pr18591"
e20365c5 543run_dump_test "pr19615"
aec6b87e
L
544run_dump_test "pr19636-1a"
545run_dump_test "pr19636-1b"
546run_dump_test "pr19636-1c"
547run_dump_test "pr19636-1d"
548run_dump_test "pr19636-1e"
549run_dump_test "pr19636-1f"
550run_dump_test "pr19636-1g"
853ee16f
L
551run_dump_test "pr19636-1h"
552run_dump_test "pr19636-1i"
553run_dump_test "pr19636-1j"
aec6b87e
L
554run_dump_test "pr19636-2a"
555run_dump_test "pr19636-2b"
556run_dump_test "pr19636-2c"
557run_dump_test "pr19636-2d"
558run_dump_test "pr19636-2d-nacl"
559run_dump_test "pr19636-2e"
560run_dump_test "pr19636-2f"
561run_dump_test "pr19636-2g"
562run_dump_test "pr19636-2h"
563run_dump_test "pr19636-2i"
853ee16f
L
564run_dump_test "pr19636-2j"
565run_dump_test "pr19636-2k"
566run_dump_test "pr19636-2l"
567run_dump_test "pr19636-2m"
aec6b87e
L
568run_dump_test "pr19636-3a"
569run_dump_test "pr19636-3b"
570run_dump_test "pr19636-3c"
b8871f35 571run_dump_test "pr19645"
bae420ef
L
572run_dump_test "pr19609-1a"
573run_dump_test "pr19609-1b"
574run_dump_test "pr19609-1c"
575run_dump_test "pr19609-1d"
576run_dump_test "pr19609-1e"
577run_dump_test "pr19609-1f"
578run_dump_test "pr19609-1g"
579run_dump_test "pr19609-1h"
580run_dump_test "pr19609-1i"
581run_dump_test "pr19609-1j"
582run_dump_test "pr19609-1k"
583run_dump_test "pr19609-1l"
584run_dump_test "pr19609-1m"
585run_dump_test "pr19609-2a"
586run_dump_test "pr19609-2b"
587run_dump_test "pr19609-2c"
588run_dump_test "pr19609-2d"
589run_dump_test "pr19609-3a"
590run_dump_test "pr19609-3b"
591run_dump_test "pr19609-4a"
592run_dump_test "pr19609-4b"
593run_dump_test "pr19609-4c"
594run_dump_test "pr19609-4d"
595run_dump_test "pr19609-4e"
596run_dump_test "pr19609-5a"
597run_dump_test "pr19609-5b"
598run_dump_test "pr19609-5c"
599run_dump_test "pr19609-5d"
600run_dump_test "pr19609-5e"
601run_dump_test "pr19609-6a"
602run_dump_test "pr19609-6b"
603run_dump_test "pr19609-6c"
604run_dump_test "pr19609-6d"
605run_dump_test "pr19609-7a"
606run_dump_test "pr19609-7b"
607run_dump_test "pr19609-7c"
608run_dump_test "pr19609-7d"
2df3368d
L
609run_dump_test "pr19939a"
610run_dump_test "pr19939b"
87d455c0 611run_dump_test "pr19719"
233cc9c1
L
612run_dump_test "pr20253-1a"
613run_dump_test "pr20253-1b"
614run_dump_test "pr20253-1c"
615run_dump_test "pr20253-1d"
616run_dump_test "pr20253-1e"
617run_dump_test "pr20253-1f"
618run_dump_test "pr20253-1g"
619run_dump_test "pr20253-1h"
620run_dump_test "pr20253-1i"
621run_dump_test "pr20253-1j"
622run_dump_test "pr20253-1k"
623run_dump_test "pr20253-1l"
624run_dump_test "pr20253-3"
625run_dump_test "pr20253-4a"
626run_dump_test "pr20253-4b"
627run_dump_test "pr20253-4c"
628run_dump_test "pr20253-4d"
629run_dump_test "pr20253-4e"
630run_dump_test "pr20253-4f"
631run_dump_test "pr20253-5a"
632run_dump_test "pr20253-5b"
97d343d4 633run_dump_test "tlsdesc2"
d7de6408 634run_dump_test "pr22048"
347a8774 635run_dump_test "pr22929"
aec6b87e
L
636
637proc undefined_weak {cflags ldflags} {
638 set testname "Undefined weak symbol"
639 if { ![ string match "" $cflags$ldflags] } {
640 set testname "$testname ($cflags $ldflags)"
641 }
642
074f6066
L
643 if { [string match "*-fPIE*" $cflags]
644 && ![string match "*nodynamic-undefined-weak*" $ldflags] } {
aec6b87e
L
645 set weak_symbol "Weak defined"
646 } else {
647 set weak_symbol "Weak undefined"
648 }
649
650 run_cc_link_tests [list \
651 [list \
652 "Build libpr19704a.so" \
653 "-shared -Wl,-soname,libpr19704.so" \
654 "" \
655 { dummy.s } \
656 {} \
657 "libpr19704a.so" \
658 ] \
659 [list \
660 "Build libpr19704b.so" \
661 "-shared -Wl,-soname,libpr19704.so" \
662 "-fPIC" \
663 { pr19704b.c } \
664 {} \
665 "libpr19704b.so" \
666 ] \
667 ]
668
669 exec cp tmpdir/libpr19704a.so tmpdir/libpr19704.so
670
982c6f26 671 run_ld_link_exec_tests [list \
aec6b87e
L
672 [list \
673 "Run pr19704" \
d9816402 674 "-Wl,--no-as-needed,-R,tmpdir $ldflags tmpdir/libpr19704.so" \
aec6b87e
L
675 "" \
676 { pr19704a.c } \
677 "pr19704" \
678 "pr19704.out" \
679 "$cflags" \
680 ] \
681 ]
682
683 exec cp tmpdir/libpr19704b.so tmpdir/libpr19704.so
684
685 set exec_output [run_host_cmd tmpdir/pr19704 ""]
686 if {![string match $weak_symbol $exec_output]} {
687 fail $testname
688 } else {
689 pass $testname
690 }
691}
adc7571d 692
ea9fb8b3
L
693# Add $PLT_CFLAGS if PLT is expected.
694global PLT_CFLAGS
a7eaf017
L
695# Add $NOPIE_CFLAGS and $NOPIE_LDFLAGS if non-PIE is required.
696global NOPIE_CFLAGS NOPIE_LDFLAGS
ea9fb8b3 697
56d4d7f2
L
698# Must be native with the C compiler
699if { [isnative] && [which $CC] != 0 } {
adc7571d
L
700 run_cc_link_tests {
701 {"Helper X32 DSO from x86-64 object" "" "-m64 -fPIC -g"
702 {simple.c} {} "libsimple.a"}
703 }
704
705 set convertx32 "$objcopy -O elf32-x86-64 tmpdir/simple.o tmpdir/simple-x32.o"
706 send_log "$convertx32\n"
707 set got [remote_exec host "$convertx32"]
708 if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
709 send_log "$got\n"
710 fail "Convert x86-64 object to x32"
711 return
712 }
713
714 run_ld_link_tests {
715 {"X32 DSO from x86-64 object"
6c0d3bde
L
716 "-shared -melf32_x86_64 tmpdir/simple-x32.o" ""
717 "--x32 -mx86-used-note=yes"
adc7571d
L
718 {dummy.s} {{readelf {-s --wide} x86-64-x32.rd}} "x86-64-x32"}
719 }
76e7af5f
L
720
721 run_cc_link_tests [list \
722 [list \
723 "Build plt-lib.so" \
724 "-shared" \
6c0d3bde 725 "-fPIC -Wa,-mx86-used-note=yes" \
76e7af5f
L
726 { plt-lib.c } \
727 {} \
728 "libplt-lib.so" \
729 ] \
730 [list \
731 "Build libplt-main1.a" \
732 "" \
6c0d3bde 733 "-fPIC -Wa,-mrelax-relocations=yes,-mx86-used-note=yes" \
76e7af5f
L
734 { plt-main1.c } \
735 {{readelf {-Wr} plt-main1.rd}} \
736 "libplt-main1.a" \
737 ] \
738 [list \
739 "Build libplt-main2.a" \
740 "" \
6c0d3bde 741 "-fPIC -Wa,-mrelax-relocations=yes,-mx86-used-note=yes" \
76e7af5f
L
742 { plt-main2.c } \
743 {{readelf {-Wr} plt-main2.rd}} \
744 "libplt-main2.a" \
745 ] \
746 [list \
747 "Build libplt-main3.a" \
748 "" \
6c0d3bde 749 "-fPIC -Wa,-mrelax-relocations=yes,-mx86-used-note=yes $PLT_CFLAGS" \
76e7af5f
L
750 { plt-main3.c } \
751 {{readelf {-Wr} plt-main3.rd}} \
752 "libplt-main3.a" \
753 ] \
754 [list \
755 "Build libplt-main4.a" \
756 "" \
6c0d3bde 757 "-fPIC -Wa,-mrelax-relocations=yes,-mx86-used-note=yes $PLT_CFLAGS" \
76e7af5f
L
758 { plt-main4.c } \
759 {{readelf {-Wr} plt-main4.rd}} \
760 "libplt-main4.a" \
761 ] \
dd7e64d4
L
762 [list \
763 "Build plt-main" \
764 "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
765 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
766 "" \
767 { plt-main5.c } \
768 {{readelf {-Wr} plt-main.rd}} \
769 "plt-main" \
770 ] \
771 [list \
772 "Build plt-main with PIE" \
773 "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
774 tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie" \
6c0d3bde 775 "-fPIC -Wa,-mx86-used-note=yes" \
dd7e64d4
L
776 { plt-main5.c } \
777 {{readelf {-Wr} plt-main.rd}} \
778 "plt-main" \
779 ] \
9a926d55
L
780 [list \
781 "Build copyreloc-lib.so" \
782 "-shared" \
6c0d3bde 783 "-fPIC -Wa,-mx86-used-note=yes" \
9a926d55
L
784 { copyreloc-lib.c } \
785 {} \
786 "copyreloc-lib.so" \
787 ] \
788 [list \
46175b4e
L
789 "Build libcopyreloc-main.a" \
790 "" \
6c0d3bde 791 "-Wa,-mx86-used-note=yes" \
01bbed2a 792 { copyreloc-main.S } \
46175b4e
L
793 {} \
794 "libcopyreloc-main.a" \
795 ] \
796 [list \
797 "Build copyreloc-main with PIE without -fPIE (1)" \
798 "tmpdir/copyreloc-main.o tmpdir/copyreloc-lib.so -pie" \
6c0d3bde 799 "-Wa,-mx86-used-note=yes" \
46175b4e 800 { dummy.s } \
9a926d55
L
801 {{readelf {-Wr} copyreloc-main1.rd}} \
802 "copyreloc-main" \
803 ] \
804 [list \
805 "Build copyreloc-main with PIE without -fPIE (2)" \
46175b4e 806 "tmpdir/copyreloc-main.o tmpdir/copyreloc-lib.so -pie" \
6c0d3bde 807 "-Wa,-mx86-used-note=yes" \
46175b4e 808 { dummy.s } \
9a926d55
L
809 {{readelf {-Wr} copyreloc-main2.rd}} \
810 "copyreloc-main" \
811 ] \
bc696fd5
L
812 [list \
813 "Build pr17689.so" \
814 "-shared" \
6c0d3bde 815 "-fPIC -Wa,-mx86-used-note=yes" \
bc696fd5
L
816 { pr17689a.c } \
817 {} \
818 "pr17689.so" \
819 ] \
25070364
L
820 [list \
821 "Build pr17689now.so with -z now" \
822 "-shared -Wl,-z,now" \
6c0d3bde 823 "-fPIC -Wa,-mx86-used-note=yes" \
25070364
L
824 { pr17689a.c } \
825 {{readelf {-Wr} pr17689now.rd}} \
826 "pr17689now.so" \
827 ] \
bc696fd5 828 [list \
37ce0cc4
L
829 "Build pr17689b.o" \
830 "" \
6c0d3bde 831 "-Wa,-mx86-used-note=yes" \
bc696fd5 832 { pr17689b.S } \
37ce0cc4
L
833 {} \
834 ] \
835 [list \
836 "Build pr17689 with PIE without -fPIE" \
837 "tmpdir/pr17689b.o tmpdir/pr17689.so -pie" \
6c0d3bde 838 "-Wa,-mx86-used-note=yes" \
37ce0cc4 839 { dummy.s } \
bc696fd5
L
840 {{readelf {-Wr} pr17689.rd}} \
841 "pr17689" \
842 ] \
25070364
L
843 [list \
844 "Build pr17689 with PIE -z now without -fPIE" \
37ce0cc4 845 "tmpdir/pr17689b.o tmpdir/pr17689.so -pie -Wl,-z,now" \
6c0d3bde 846 "-Wa,-mx86-used-note=yes" \
37ce0cc4 847 { dummy.s } \
25070364
L
848 {{readelf {-Wr} pr17689now.rd}} \
849 "pr17689now" \
850 ] \
9d1d54d5
L
851 [list \
852 "Build pr17827 with PIE without -fPIE" \
37ce0cc4 853 "-Wl,--as-needed tmpdir/pr17689b.o tmpdir/pr17689.so -pie" \
6c0d3bde 854 "-Wa,-mx86-used-note=yes" \
37ce0cc4 855 { dummy.s } \
9d1d54d5
L
856 {{readelf {-Wr} pr17827.rd}} \
857 "pr17827" \
858 ] \
04ebc307
L
859 [list \
860 "Build pr18900.so" \
861 "-shared" \
6c0d3bde 862 "-fPIC -Wa,-mx86-used-note=yes" \
04ebc307
L
863 { pr18900a.c } \
864 "" \
865 "pr18900.so" \
866 ] \
867 [list \
23a4bd22
L
868 "Build pr18900.o" \
869 "-r -nostdlib" \
6c0d3bde 870 "-Wa,-mx86-used-note=yes" \
04ebc307 871 { pr18900b.c pr18900c.c } \
23a4bd22
L
872 "" \
873 "pr18900.o" \
874 ] \
875 [list \
876 "Build pr18900a" \
877 "tmpdir/pr18900.o tmpdir/pr18900.so" \
6c0d3bde 878 "-Wa,-mx86-used-note=yes" \
23a4bd22 879 { dummy.s } \
04ebc307
L
880 {{readelf {-Wrd} pr18900a.rd}} \
881 "pr18900a" \
882 ] \
883 [list \
884 "Build pr18900b" \
23a4bd22 885 "-Wl,--as-needed tmpdir/pr18900.o tmpdir/pr18900.so" \
6c0d3bde 886 "-Wa,-mx86-used-note=yes" \
23a4bd22 887 { dummy.s } \
04ebc307
L
888 {{readelf {-Wrd} pr18900b.rd}} \
889 "pr18900b" \
890 ] \
5db4f0d3
L
891 [list \
892 "Build pr19031.so" \
893 "-shared" \
6c0d3bde 894 "-fPIC -Wa,-mx86-used-note=yes" \
5db4f0d3
L
895 { pr19031a.c } \
896 "" \
897 "pr19031.so" \
898 ] \
56ceb5b5
L
899 [list \
900 "Build gotpcrel1d.so" \
901 "-shared" \
6c0d3bde 902 "-Wa,-mx86-used-note=yes" \
56ceb5b5
L
903 { gotpcrel1d.S } \
904 "" \
905 "gotpcrel1d.so" \
906 ] \
37ce0cc4 907 [list \
b1058ce9 908 "Build gotpcrel1a.o gotpcrel1b.o gotpcrel1c.o" \
37ce0cc4 909 "" \
6c0d3bde 910 "-Wa,-mrelax-relocations=yes,-mx86-used-note=yes" \
37ce0cc4 911 { gotpcrel1a.S gotpcrel1b.c gotpcrel1c.c } \
37ce0cc4 912 ] \
56ceb5b5
L
913 [list \
914 "Build gotpcrel1" \
68193357
L
915 "$NOPIE_LDFLAGS -Wl,--as-needed tmpdir/gotpcrel1a.o \
916 tmpdir/gotpcrel1b.o tmpdir/gotpcrel1c.o \
917 tmpdir/gotpcrel1d.so" \
6c0d3bde 918 "-Wa,-mx86-used-note=yes" \
37ce0cc4 919 { dummy.s } \
56ceb5b5
L
920 {{objdump {-dw} gotpcrel1.dd}} \
921 "gotpcrel1" \
922 ] \
ead3d542
L
923 [list \
924 "Build pr19319.so" \
925 "-shared" \
6c0d3bde 926 "-Wa,-mx86-used-note=yes" \
ead3d542
L
927 { pr19319a.S } \
928 "" \
929 "pr19319.so" \
930 ] \
931 [list \
932 "Build pr19319" \
933 "-pie -nostdlib -nostartfiles tmpdir/pr19319.so" \
6c0d3bde 934 "-Wa,-mx86-used-note=yes" \
ead3d542
L
935 { pr19319b.S } \
936 {{objdump {-dw} pr19319.dd}} \
937 "pr19319" \
938 ] \
46bed679
L
939 [list \
940 "Build property 1" \
941 "" \
6c0d3bde 942 "-Wa,-mx86-used-note=no" \
46bed679
L
943 {pass.c property-no-copy.S} \
944 {{readelf {-n} property-1.r}} \
945 "property-1" \
946 ] \
947 [list \
948 "Build property 1 (.o)" \
949 "-r -nostdlib" \
6c0d3bde 950 "-Wa,-mx86-used-note=yes" \
46bed679 951 {pass.c property-no-copy.S} \
6c0d3bde 952 {{readelf {-n} property-1a.r}} \
46bed679
L
953 "property-1.o" \
954 ] \
955 [list \
956 "Build property 1 (.so)" \
957 "-shared" \
6c0d3bde 958 "-fPIC -Wa,-mx86-used-note=no" \
46bed679
L
959 {pass.c property-no-copy.S} \
960 {{readelf {-n} property-1.r}} \
961 "property-1.so" \
962 ] \
963 [list \
964 "Build property 2" \
965 "" \
6c0d3bde 966 "-Wa,-mx86-used-note=no" \
46bed679
L
967 {pass.c property-stack.S} \
968 {{readelf {-n} property-2.r}} \
969 "property-2" \
970 ] \
971 [list \
972 "Build property 2 (.o)" \
973 "-r -nostdlib" \
6c0d3bde 974 "-Wa,-mx86-used-note=yes" \
46bed679 975 {pass.c property-stack.S} \
6c0d3bde 976 {{readelf {-n} property-2a.r}} \
46bed679
L
977 "property-2.o" \
978 ] \
979 [list \
980 "Build property 2 (.so)" \
981 "-shared" \
6c0d3bde 982 "-fPIC -Wa,-mx86-used-note=yes" \
46bed679
L
983 {pass.c property-stack.S} \
984 {{readelf {-n} property-2.r}} \
985 "property-2.so" \
986 ] \
987 [list \
988 "Build property 3" \
989 "" \
6c0d3bde 990 "-Wa,-mx86-used-note=yes" \
46bed679
L
991 {pass.c property-stack.S property-x86-1.S} \
992 {{readelf {-n} property-3.r}} \
993 "property-3" \
994 ] \
995 [list \
996 "Build property 3 (.o)" \
997 "-r -nostdlib" \
6c0d3bde 998 "-Wa,-mx86-used-note=yes" \
46bed679 999 {pass.c property-x86-1.S property-stack.S} \
6c0d3bde 1000 {{readelf {-n} property-3a.r}} \
46bed679
L
1001 "property-3.o" \
1002 ] \
1003 [list \
1004 "Build property 3 (.so)" \
1005 "-shared" \
6c0d3bde 1006 "-fPIC -Wa,-mx86-used-note=yes" \
46bed679
L
1007 {property-x86-1.S pass.c property-stack.S} \
1008 {{readelf {-n} property-3.r}} \
1009 "property-3.so" \
1010 ] \
1011 [list \
1012 "Build property 4" \
1013 "" \
6c0d3bde 1014 "-Wa,-mx86-used-note=yes" \
46bed679
L
1015 {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
1016 {{readelf {-n} property-4.r}} \
1017 "property-4" \
1018 ] \
1019 [list \
1020 "Build property 4 (.o)" \
1021 "-r -nostdlib" \
6c0d3bde 1022 "-Wa,-mx86-used-note=yes" \
46bed679 1023 {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
6c0d3bde 1024 {{readelf {-n} property-4a.r}} \
46bed679
L
1025 "property-4.o" \
1026 ] \
1027 [list \
1028 "Build property 4 (.so)" \
1029 "-shared" \
6c0d3bde 1030 "-fPIC -Wa,-mx86-used-note=yes" \
46bed679
L
1031 {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
1032 {{readelf {-n} property-4.r}} \
1033 "property-4.so" \
1034 ] \
1035 [list \
1036 "Build property 4 (-Wl,-z,stack-size=0)" \
1037 "-Wl,-z,stack-size=0" \
6c0d3bde 1038 "-Wa,-mx86-used-note=yes" \
46bed679
L
1039 {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
1040 {{readelf {-n} property-4.r}} \
1041 "property-4" \
1042 ] \
1043 [list \
1044 "Build property 5" \
1045 "-Wl,-z,stack-size=0x900000" \
6c0d3bde 1046 "-Wa,-mx86-used-note=yes" \
46bed679
L
1047 {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
1048 {{readelf {-n} property-5.r}} \
1049 "property-5" \
1050 ] \
1051 [list \
1052 "Build property 5 (.o)" \
1053 "-r -nostdlib -Wl,-z,stack-size=0x900000" \
6c0d3bde 1054 "-Wa,-mx86-used-note=yes" \
46bed679 1055 {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
6c0d3bde 1056 {{readelf {-n} property-5a.r}} \
46bed679
L
1057 "property-5.o" \
1058 ] \
1059 [list \
1060 "Build property 5 (.so)" \
1061 "-shared -Wl,-z,stack-size=0x900000" \
6c0d3bde 1062 "-fPIC -Wa,-mx86-used-note=yes" \
46bed679
L
1063 {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
1064 {{readelf {-n} property-5.r}} \
1065 "property-5.so" \
1066 ] \
1067 [list \
1068 "Build property-6.so" \
1069 "-shared" \
6c0d3bde 1070 "-fPIC -Wa,-mx86-used-note=yes" \
46bed679
L
1071 {property-6a.c property-6c.S} \
1072 {{readelf {-n} property-6.r}} \
1073 "property-6.so" \
1074 ] \
1075 [list \
1076 "Build property-6.o" \
1077 "-r -nostdlib" \
6c0d3bde 1078 "-Wa,-mx86-used-note=yes" \
46bed679 1079 {property-6b.c property-stack.S} \
6c0d3bde 1080 {{readelf {-n} property-2a.r}} \
46bed679
L
1081 "property-6.o" \
1082 ] \
1083 [list \
1084 "Build property-6" \
1085 "-Wl,--as-needed tmpdir/property-6.o tmpdir/property-6.so" \
6c0d3bde 1086 "-Wa,-mx86-used-note=yes" \
46bed679 1087 { dummy.s } \
46bed679
L
1088 {{readelf {-n} property-2.r}} \
1089 "property-6" \
1090 ] \
1091 [list \
1092 "Build property 7a (.o)" \
1093 "-r -nostdlib" \
6c0d3bde 1094 "-Wa,-mx86-used-note=yes" \
46bed679 1095 {property-unsorted-1.S} \
6c0d3bde 1096 {{readelf {-n} property-7a.r}} \
46bed679
L
1097 "property-7a.o" \
1098 ] \
1099 [list \
1100 "Build property 7b (.o)" \
1101 "-r -nostdlib" \
6c0d3bde 1102 "-Wa,-mx86-used-note=yes" \
46bed679 1103 {property-unsorted-2.S} \
6c0d3bde 1104 {{readelf {-n} property-7a.r}} \
46bed679
L
1105 "property-7b.o" \
1106 ] \
7073b5b9
L
1107 [list \
1108 "Build pr22001-1.so" \
1109 "-shared" \
6c0d3bde 1110 "-fPIC -Wa,-mx86-used-note=yes" \
7073b5b9
L
1111 { pr22001-1a.c } \
1112 {} \
1113 "pr22001-1.so" \
1114 ] \
1115 [list \
1116 "Build pr22001-1a" \
1117 "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
6c0d3bde 1118 "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
7073b5b9
L
1119 { pr22001-1b.c } \
1120 {{error_output "pr22001-1a.err"}} \
1121 "pr22001-1a" \
1122 ] \
a5b4ee94
L
1123 [list \
1124 "Build pr21997-1.so" \
1125 "-shared" \
6c0d3bde 1126 "-Wa,-mx86-used-note=yes" \
a5b4ee94
L
1127 { property-stack.S property-no-copy.S pr21997-1a.S } \
1128 {} \
1129 "pr21997-1.so" \
1130 ] \
1131 [list \
1132 "Build pr21997-1a" \
1133 "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
6c0d3bde 1134 "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
a5b4ee94
L
1135 { pr21997-1b.c } \
1136 {{error_output "pr21997-1a.err"}} \
1137 "pr21997-1a" \
1138 ] \
ad71ce8d
L
1139 [list \
1140 "Build pr22064a.o" \
1141 "" \
6c0d3bde 1142 "-Wa,-mx86-used-note=yes" \
ad71ce8d
L
1143 { pr22064a.S } \
1144 ] \
1145 [list \
1146 "Build pr22064.so" \
1147 "-shared" \
6c0d3bde 1148 "-fPIC -Wa,-mx86-used-note=yes" \
ad71ce8d
L
1149 { pr22064b.c } \
1150 {} \
1151 "pr22064.so" \
1152 ] \
cf9e7f1f
L
1153 [list \
1154 "Build pr22393-3a.so" \
1155 "-shared -Wl,-z,separate-code,-z,max-page-size=0x1000" \
6c0d3bde 1156 "-fPIC -Wa,-mx86-used-note=yes" \
cf9e7f1f
L
1157 {pr22393-3a.c} \
1158 {{readelf -lW pr22393-3a.rd} \
1159 {readelf -lW pr22393-3b.rd}} \
1160 "pr22393-3a.so" \
1161 ] \
1162 [list \
1163 "Build pr22393-3a-now.so" \
1164 "-shared -Wl,-z,separate-code,-z,now,-z,max-page-size=0x1000" \
6c0d3bde 1165 "-fPIC -Wa,-mx86-used-note=yes" \
cf9e7f1f
L
1166 {pr22393-3a.c} \
1167 {{readelf -lW pr22393-3a.rd} \
1168 {readelf -lW pr22393-3b.rd}} \
1169 "pr22393-3a-now.so" \
1170 ] \
1171 [list \
1172 "Build pr22393-3" \
85f2093d 1173 "$NOPIE_LDFLAGS -Wl,-z,separate-code,-z,max-page-size=0x1000,--no-as-needed tmpdir/pr22393-3a.so" \
6c0d3bde 1174 "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
cf9e7f1f
L
1175 {pr22393-3b.c} \
1176 {{readelf -lW pr22393-3a.rd} \
1177 {readelf -lW pr22393-3b.rd}} \
1178 "pr22393-3" \
1179 ] \
1180 [list \
1181 "Build pr22393-3 (PIE)" \
85f2093d 1182 "-pie -Wl,-z,separate-code,-z,max-page-size=0x1000,--no-as-needed tmpdir/pr22393-3a-now.so" \
6c0d3bde 1183 "-fPIE -Wa,-mx86-used-note=yes" \
cf9e7f1f
L
1184 {pr22393-3b.c} \
1185 {{readelf -lW pr22393-3a.rd} \
1186 {readelf -lW pr22393-3b.rd}} \
1187 "pr22393-3-pie" \
1188 ] \
1189 [list \
1190 "Build pr22393-3 (static)" \
1191 "-static -Wl,-z,separate-code,-z,max-page-size=0x1000" \
6c0d3bde 1192 "-Wa,-mx86-used-note=yes" \
cf9e7f1f
L
1193 {pr22393-3a.c pr22393-3b.c} \
1194 {{readelf -lW pr22393-3a.rd} \
1195 {readelf -lW pr22393-3b.rd}} \
1196 "pr22393-3-static" \
1197 ] \
bd7ab16b
L
1198 [list \
1199 "Build pr22791-1.so" \
1200 "-shared" \
6c0d3bde 1201 "-fPIC -Wa,-mx86-used-note=yes" \
bd7ab16b
L
1202 { pr22791-1a.c } \
1203 {} \
1204 "pr22791-1.so" \
1205 ] \
1206 [list \
1207 "Build pr22791-1" \
1208 "-pie -Wl,--no-as-needed tmpdir/pr22791-1.so" \
6c0d3bde 1209 "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
bd7ab16b
L
1210 { pr22791-1b.s } \
1211 {{error_output "pr22791-1.err"}} \
1212 "pr22791-1" \
1213 ] \
1214 [list \
1215 "Build pr22791-2a.o" \
1216 "" \
6c0d3bde 1217 "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
bd7ab16b
L
1218 { pr22791-2a.s } \
1219 ] \
1220 [list \
1221 "Build pr22791-2.so" \
1222 "-shared tmpdir/pr22791-2a.o" \
6c0d3bde 1223 "-fPIC -Wa,-mx86-used-note=yes" \
bd7ab16b
L
1224 { pr22791-2b.c } \
1225 {{readelf -drW pr22791-2.rd}} \
1226 "pr22791-2.so" \
1227 ] \
1228 [list \
1229 "Build pr22791-2" \
1230 "-pie -Wl,--no-as-needed tmpdir/pr22791-2.so" \
6c0d3bde 1231 "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
bd7ab16b
L
1232 { pr22791-2c.s } \
1233 {{readelf -drW pr22791-2.rd}} \
1234 "pr22791-2" \
1235 ] \
451875b4
L
1236 [list \
1237 "Build pr22842.so" \
1238 "-shared" \
6c0d3bde 1239 "-fPIC -Wa,-mx86-used-note=yes" \
451875b4
L
1240 { pr22842a.c } \
1241 {} \
1242 "pr22842.so" \
1243 ] \
1244 [list \
1245 "Build pr22842" \
1246 "-pie -Wl,--no-as-needed tmpdir/pr22842.so" \
6c0d3bde 1247 "-Wa,-mx86-used-note=yes" \
451875b4
L
1248 { pr22842b.S } \
1249 {{readelf -rW pr22842a.rd} \
1250 {readelf -rW pr22842b.rd}} \
1251 "pr22842" \
1252 ] \
76e7af5f
L
1253 ]
1254
28e6a46b
L
1255 if {[istarget "x86_64-*-linux*-gnux32"]} {
1256 run_ld_link_exec_tests [list \
1257 [list \
1258 "Run pr22001-1b" \
1259 "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
6c0d3bde 1260 "-Wa,-mx86-used-note=yes" \
28e6a46b
L
1261 { pr22001-1c.c } \
1262 "pr22001-1b" \
1263 "pass.out" \
1264 "$NOPIE_CFLAGS" \
1265 ] \
a5b4ee94
L
1266 [list \
1267 "Run pr21997-1b" \
1268 "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
6c0d3bde 1269 "-Wa,-mx86-used-note=yes" \
a5b4ee94
L
1270 { pr21997-1c.c } \
1271 "pr21997-1b" \
1272 "pass.out" \
1273 "$NOPIE_CFLAGS" \
1274 ] \
28e6a46b
L
1275 ]
1276 } else {
1277 run_cc_link_tests [list \
1278 [list \
1279 "Build pr22001-1b" \
1280 "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
6c0d3bde 1281 "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
28e6a46b
L
1282 { pr22001-1c.c } \
1283 {{error_output "pr22001-1b.err"}} \
1284 "pr22001-1b" \
1285 ] \
a5b4ee94
L
1286 [list \
1287 "Build pr21997-1b" \
1288 "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
6c0d3bde 1289 "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
a5b4ee94
L
1290 { pr21997-1c.c } \
1291 {{error_output "pr21997-1b.err"}} \
1292 "pr21997-1b" \
1293 ] \
28e6a46b
L
1294 ]
1295 }
1296
982c6f26 1297 run_ld_link_exec_tests [list \
76e7af5f
L
1298 [list \
1299 "Run plt-main" \
d9816402
AM
1300 "-Wl,--no-as-needed tmpdir/plt-main1.o tmpdir/plt-main2.o \
1301 tmpdir/plt-main3.o tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
6c0d3bde 1302 "-Wa,-mx86-used-note=yes" \
76e7af5f
L
1303 { plt-main5.c } \
1304 "plt-main" \
1305 "plt-main.out" \
1306 ] \
ce641d0b
L
1307 [list \
1308 "Run plt-main with PIE" \
d9816402
AM
1309 "-Wl,--no-as-needed -pie tmpdir/plt-main1.o tmpdir/plt-main2.o \
1310 tmpdir/plt-main3.o tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
6c0d3bde 1311 "-Wa,-mx86-used-note=yes" \
ce641d0b
L
1312 { plt-main5.c } \
1313 "plt-main-pie" \
1314 "plt-main.out" \
1315 "-fPIC" \
1316 ] \
9a926d55
L
1317 [list \
1318 "Run copyreloc-main with PIE without -fPIE" \
d9816402 1319 "-Wl,--as-needed -pie tmpdir/copyreloc-main.o tmpdir/copyreloc-lib.so" \
6c0d3bde 1320 "-Wa,-mx86-used-note=yes" \
46175b4e 1321 { dummy.s } \
9a926d55
L
1322 "copyreloc-main" \
1323 "copyreloc-main.out" \
1324 ] \
bc696fd5
L
1325 [list \
1326 "Run pr17689 with PIE without -fPIE" \
d9816402 1327 "-Wl,--no-as-needed -pie tmpdir/pr17689b.o tmpdir/pr17689.so" \
6c0d3bde 1328 "-Wa,-mx86-used-note=yes" \
37ce0cc4 1329 { dummy.s } \
bc696fd5
L
1330 "pr17689" \
1331 "pr17689.out" \
1332 ] \
25070364
L
1333 [list \
1334 "Run pr17689 with PIE -z now without -fPIE" \
d9816402 1335 "-Wl,--as-needed,-z,now -pie tmpdir/pr17689b.o tmpdir/pr17689.so" \
6c0d3bde 1336 "-Wa,-mx86-used-note=yes" \
37ce0cc4 1337 { dummy.s } \
25070364
L
1338 "pr17689now" \
1339 "pr17689.out" \
1340 ] \
04ebc307
L
1341 [list \
1342 "Run pr18900" \
d9816402 1343 "-Wl,--no-as-needed tmpdir/pr18900.o tmpdir/pr18900.so" \
6c0d3bde 1344 "-Wa,-mx86-used-note=yes" \
23a4bd22 1345 { dummy.s } \
04ebc307
L
1346 "pr18900" \
1347 "pr18900.out" \
1348 ] \
5db4f0d3
L
1349 [list \
1350 "Run pr19031" \
68193357 1351 "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr19031.so" \
6c0d3bde 1352 "-Wa,-mx86-used-note=yes" \
5db4f0d3
L
1353 { pr19031b.S pr19031c.c } \
1354 "pr19031" \
1355 "pr19031.out" \
68193357 1356 "$NOPIE_CFLAGS" \
5db4f0d3 1357 ] \
56ceb5b5
L
1358 [list \
1359 "Run gotpcrel1" \
d9816402 1360 "-Wl,--no-as-needed tmpdir/gotpcrel1d.so" \
6c0d3bde 1361 "-Wa,-mx86-used-note=yes" \
56ceb5b5
L
1362 { gotpcrel1a.S gotpcrel1b.c gotpcrel1c.c } \
1363 "gotpcrel1" \
1364 "gotpcrel1.out" \
1365 ] \
46bed679
L
1366 [list \
1367 "Run property 1" \
1368 "" \
6c0d3bde 1369 "-Wa,-mx86-used-note=yes" \
46bed679
L
1370 {pass.c property-no-copy.S} \
1371 "property-1" "pass.out" \
1372 ] \
1373 [list \
1374 "Run property 1 (PIE)" \
1375 "-pie" \
6c0d3bde 1376 "-Wa,-mx86-used-note=yes" \
46bed679
L
1377 {pass.c property-no-copy.S} \
1378 "property-1-pie" "pass.out" "-fPIE" \
1379 ] \
1380 [list \
1381 "Run property 1 (static)" \
1382 "-static" \
6c0d3bde 1383 "-Wa,-mx86-used-note=yes" \
46bed679
L
1384 {pass.c property-no-copy.S} \
1385 "property-1-static" "pass.out" \
1386 ] \
1387 [list \
1388 "Run property 2" \
1389 "" \
6c0d3bde 1390 "-Wa,-mx86-used-note=yes" \
46bed679
L
1391 {pass.c property-stack.S} \
1392 "property-2" "pass.out" \
1393 ] \
1394 [list \
1395 "Run property 2 (PIE)" \
1396 "-pie" \
6c0d3bde 1397 "-Wa,-mx86-used-note=yes" \
46bed679
L
1398 {pass.c property-stack.S} \
1399 "property-2-pie" "pass.out" "-fPIE" \
1400 ] \
1401 [list \
1402 "Run property 2 (static)" \
1403 "-static" \
6c0d3bde 1404 "-Wa,-mx86-used-note=yes" \
46bed679
L
1405 {pass.c property-stack.S} \
1406 "property-3-static" "pass.out" \
1407 ] \
1408 [list \
1409 "Run property 3" \
1410 "" \
6c0d3bde 1411 "-Wa,-mx86-used-note=yes" \
46bed679
L
1412 {pass.c property-stack.S property-x86-1.S} \
1413 "property-3" "pass.out" \
1414 ] \
1415 [list \
1416 "Run property 3 (PIE)" \
1417 "-pie" \
6c0d3bde 1418 "-Wa,-mx86-used-note=yes" \
46bed679
L
1419 {pass.c property-x86-1.S property-stack.S} \
1420 "property-3-pie" "pass.out" "-fPIE" \
1421 ] \
1422 [list \
1423 "Run property 3 (static)" \
1424 "-static" \
6c0d3bde 1425 "-Wa,-mx86-used-note=yes" \
46bed679
L
1426 {property-x86-1.S pass.c property-stack.S} \
1427 "property-3-static" "pass.out" \
1428 ] \
1429 [list \
1430 "Run property 4" \
1431 "" \
6c0d3bde 1432 "-Wa,-mx86-used-note=yes" \
46bed679
L
1433 {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
1434 "property-4" "pass.out" \
1435 ] \
1436 [list \
1437 "Run property 4 (PIE)" \
1438 "-pie" \
6c0d3bde 1439 "-Wa,-mx86-used-note=yes" \
46bed679
L
1440 {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
1441 "property-4-pie" "pass.out" "-fPIE" \
1442 ] \
1443 [list \
1444 "Run property 4 (static)" \
1445 "-static" \
6c0d3bde 1446 "-Wa,-mx86-used-note=yes" \
46bed679
L
1447 {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
1448 "property-4-static" "pass.out" \
1449 ] \
1450 [list \
1451 "Run property 5" \
1452 "-Wl,-z,stack-size=0x900000" \
6c0d3bde 1453 "-Wa,-mx86-used-note=yes" \
46bed679
L
1454 {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
1455 "property-5" "pass.out" \
1456 ] \
1457 [list \
1458 "Run property 5 (PIE)" \
1459 "-pie -Wl,-z,stack-size=0x900000" \
6c0d3bde 1460 "-Wa,-mx86-used-note=yes" \
46bed679
L
1461 {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
1462 "property-5-pie" "pass.out" "-fPIE" \
1463 ] \
1464 [list \
1465 "Run property 5 (static)" \
1466 "-static -Wl,-z,stack-size=0x900000" \
6c0d3bde 1467 "-Wa,-mx86-used-note=yes" \
46bed679
L
1468 {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
1469 "property-5-static" "pass.out" \
1470 ] \
7073b5b9
L
1471 [list \
1472 "Run pr22001-1a (PIC 1)" \
1473 "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
6c0d3bde 1474 "-Wa,-mx86-used-note=yes" \
7073b5b9
L
1475 { pr22001-1b.c } \
1476 "pr22001-1a-pic-1" \
1477 "pass.out" \
1478 "-fPIC" \
1479 ] \
1480 [list \
1481 "Run pr22001-1a (PIC 2)" \
1482 "-pie -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
6c0d3bde 1483 "-Wa,-mx86-used-note=yes" \
7073b5b9
L
1484 { pr22001-1b.c } \
1485 "pr22001-1a-pic-2" \
1486 "pass.out" \
1487 "-fPIC" \
1488 ] \
1489 [list \
1490 "Run pr22001-1b (PIC 1)" \
1491 "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
6c0d3bde 1492 "-Wa,-mx86-used-note=yes" \
7073b5b9
L
1493 { pr22001-1c.c } \
1494 "pr22001-1b-pic-1" \
1495 "pass.out" \
1496 "-fPIC" \
1497 ] \
1498 [list \
1499 "Run pr22001-1b (PIC 2)" \
1500 "-pie -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
6c0d3bde 1501 "-Wa,-mx86-used-note=yes" \
7073b5b9
L
1502 { pr22001-1c.c } \
1503 "pr22001-1b-pic-2" \
1504 "pass.out" \
1505 "-fPIC" \
1506 ] \
a5b4ee94
L
1507 [list \
1508 "Run pr21997-1a (PIC 1)" \
1509 "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
6c0d3bde 1510 "-Wa,-mx86-used-note=yes" \
a5b4ee94
L
1511 { pr21997-1b.c } \
1512 "pr21997-1a-pic-1" \
1513 "pass.out" \
1514 "-fPIC" \
1515 ] \
1516 [list \
1517 "Run pr21997-1a (PIC 2)" \
1518 "-pie -Wl,--no-as-needed tmpdir/pr21997-1.so" \
6c0d3bde 1519 "-Wa,-mx86-used-note=yes" \
a5b4ee94
L
1520 { pr21997-1b.c } \
1521 "pr21997-1a-pic-2" \
1522 "pass.out" \
1523 "-fPIC" \
1524 ] \
1525 [list \
1526 "Run pr21997-1b (PIC 1)" \
1527 "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
6c0d3bde 1528 "-Wa,-mx86-used-note=yes" \
a5b4ee94
L
1529 { pr21997-1c.c } \
1530 "pr21997-1b-pic-1" \
1531 "pass.out" \
1532 "-fPIC" \
1533 ] \
1534 [list \
1535 "Run pr21997-1b (PIC 2)" \
1536 "-pie -Wl,--no-as-needed tmpdir/pr21997-1.so" \
6c0d3bde 1537 "-Wa,-mx86-used-note=yes" \
a5b4ee94
L
1538 { pr21997-1c.c } \
1539 "pr21997-1b-pic-2" \
1540 "pass.out" \
1541 "-fPIC" \
1542 ] \
ad71ce8d
L
1543 [list \
1544 "Run pr22064" \
1545 "-pie -Wl,--no-as-needed tmpdir/pr22064a.o tmpdir/pr22064.so" \
6c0d3bde 1546 "-Wa,-mx86-used-note=yes" \
ad71ce8d
L
1547 { dummy.s } \
1548 "pr22064-pie" \
1549 "pass.out" \
1550 "-fPIE" \
1551 ] \
cf9e7f1f
L
1552 [list \
1553 "Run pr22393-3" \
1554 "$NOPIE_LDFLAGS -Wl,-z,separate-code,-z,max-page-size=0x1000,--no-as-needed tmpdir/pr22393-3a.so" \
6c0d3bde 1555 "-Wa,-mx86-used-note=yes" \
cf9e7f1f
L
1556 {pr22393-3b.c} \
1557 "pr22393-3" \
1558 "pass.out" \
1559 "$NOPIE_CFLAGS" \
1560 ] \
1561 [list \
1562 "Run pr22393-3 (PIE)" \
1563 "-pie -Wl,-z,separate-code,-z,max-page-size=0x1000,--no-as-needed tmpdir/pr22393-3a-now.so" \
6c0d3bde 1564 "-Wa,-mx86-used-note=yes" \
cf9e7f1f
L
1565 {pr22393-3b.c} \
1566 "pr22393-3-pie" \
1567 "pass.out" \
1568 "-fPIE" \
1569 ] \
1570 [list \
1571 "Run pr22393-3 (static)" \
1572 "-static -Wl,-z,separate-code,-z,max-page-size=0x1000" \
6c0d3bde 1573 "-Wa,-mx86-used-note=yes" \
cf9e7f1f
L
1574 {pr22393-3a.c pr22393-3b.c} \
1575 "pr22393-3-static" \
1576 "pass.out" \
1577 ] \
bd7ab16b
L
1578 [list \
1579 "Run pr22791-2" \
1580 "-pie -Wl,--no-as-needed tmpdir/pr22791-2.so" \
6c0d3bde 1581 "-Wa,-mx86-used-note=yes" \
bd7ab16b
L
1582 { pr22791-2c.s } \
1583 "pr22791-2" \
1584 "pass.out" \
1585 "$NOPIE_CFLAGS" \
1586 ] \
451875b4
L
1587 [list \
1588 "Build pr22842" \
1589 "-pie -Wl,--no-as-needed tmpdir/pr22842.so" \
6c0d3bde 1590 "-Wa,-mx86-used-note=yes" \
451875b4
L
1591 { pr22842b.S } \
1592 "pr22842" \
1593 "pass.out" \
1594 ] \
76e7af5f 1595 ]
dd7e64d4 1596
3c4f3228
L
1597 # Run-time tests which require working ifunc attribute support.
1598 if { [check_ifunc_attribute_available] } {
1599 run_cc_link_tests [list \
1600 [list \
1601 "Build libpr19784a.so" \
1602 "-shared -Wl,-Bsymbolic-functions" \
6c0d3bde 1603 "-fPIC -O2 -g -Wa,-mx86-used-note=yes" \
3c4f3228
L
1604 { pr19784b.c pr19784c.c } \
1605 {} \
1606 "libpr19784a.so" \
1607 ] \
1608 [list \
1609 "Build libpr19784b.so" \
1610 "-shared -Wl,-Bsymbolic-functions" \
6c0d3bde 1611 "-fPIC -O2 -g -Wa,-mx86-used-note=yes" \
3c4f3228
L
1612 { pr19784c.c pr19784b.c } \
1613 {} \
1614 "libpr19784b.so" \
1615 ] \
1616 [list \
1617 "Build pr19784a.o" \
1618 "" \
6c0d3bde 1619 "-Wa,-mx86-used-note=yes" \
3c4f3228
L
1620 { pr19784a.c } \
1621 ] \
1622 ]
1623
1624 run_ld_link_exec_tests [list \
1625 [list \
1626 "Run pr19784a" \
d9816402 1627 "-Wl,--no-as-needed tmpdir/pr19784a.o tmpdir/libpr19784a.so" \
6c0d3bde 1628 "-Wa,-mx86-used-note=yes" \
3c4f3228
L
1629 { dummy.s } \
1630 "pr19784a" \
1631 "pass.out" \
1632 ] \
1633 [list \
1634 "Run pr19784b" \
d9816402 1635 "-Wl,--as-needed tmpdir/pr19784a.o tmpdir/libpr19784b.so" \
6c0d3bde 1636 "-Wa,-mx86-used-note=yes" \
3c4f3228
L
1637 { dummy.s } \
1638 "pr19784b" \
1639 "pass.out" \
1640 ] \
1641 ]
1642 }
1643
dd7e64d4
L
1644 if { [istarget "x86_64-*-linux*"] \
1645 && ![istarget "x86_64-*-linux*-gnux32"]} {
1646
1647 run_cc_link_tests [list \
1648 [list \
1649 "Build plt-main with -z bndplt" \
1650 "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
7c9f387a
L
1651 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt \
1652 -z noseparate-code -z max-page-size=0x200000" \
6c0d3bde 1653 "-Wa,-mx86-used-note=yes" \
dd7e64d4
L
1654 { plt-main5.c } \
1655 {{objdump {-drw} plt-main-bnd.dd}} \
1656 "plt-main-bnd" \
1657 ] \
1658 [list \
1659 "Build plt-main with PIE and -z bndplt" \
1660 "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
7c9f387a
L
1661 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -pie \
1662 -z noseparate-code -z max-page-size=0x200000" \
6c0d3bde 1663 "-fPIC -Wa,-mx86-used-note=yes" \
dd7e64d4
L
1664 { plt-main5.c } \
1665 {{objdump {-drw} plt-main-bnd.dd}} \
1666 "plt-main-pie-bnd" \
1667 ] \
38b12349
L
1668 [list \
1669 "Build plt-main with -z bndplt -z now" \
1670 "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
7c9f387a
L
1671 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -z now \
1672 -z noseparate-code -z max-page-size=0x200000" \
6c0d3bde 1673 "-Wa,-mx86-used-note=yes" \
38b12349
L
1674 { plt-main5.c } \
1675 {{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \
1676 "plt-main-bnd-now" \
1677 ] \
1678 [list \
1679 "Build plt-main with PIE and -z bndplt -z now" \
1680 "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
7c9f387a
L
1681 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -z now -pie \
1682 -z noseparate-code -z max-page-size=0x200000" \
6c0d3bde 1683 "-fPIC -Wa,-mx86-used-note=yes" \
38b12349
L
1684 { plt-main5.c } \
1685 {{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \
1686 "plt-main-pie-bnd-now" \
1687 ] \
dd7e64d4
L
1688 ]
1689
982c6f26 1690 run_ld_link_exec_tests [list \
dd7e64d4
L
1691 [list \
1692 "Run plt-main with -z bndplt" \
d9816402
AM
1693 "-Wl,--no-as-needed,-z,bndplt tmpdir/plt-main1.o \
1694 tmpdir/plt-main2.o tmpdir/plt-main3.o \
1695 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
6c0d3bde 1696 "-Wa,-mx86-used-note=yes" \
dd7e64d4
L
1697 { plt-main5.c } \
1698 "plt-main-bnd" \
1699 "plt-main.out" \
1700 ] \
1701 [list \
1702 "Run plt-main with PIE and -z bndplt" \
d9816402
AM
1703 "-Wl,--no-as-needed,-z,bndplt -pie tmpdir/plt-main1.o \
1704 tmpdir/plt-main2.o tmpdir/plt-main3.o \
1705 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
6c0d3bde 1706 "-Wa,-mx86-used-note=yes" \
dd7e64d4
L
1707 { plt-main5.c } \
1708 "plt-main-pie-bnd" \
1709 "plt-main.out" \
1710 "-fPIC" \
1711 ] \
38b12349
L
1712 [list \
1713 "Run plt-main with -z bndplt -z now" \
1714 "-Wl,--no-as-needed,-z,bndplt,-z,now tmpdir/plt-main1.o \
1715 tmpdir/plt-main2.o tmpdir/plt-main3.o \
1716 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
6c0d3bde 1717 "-Wa,-mx86-used-note=yes" \
38b12349
L
1718 { plt-main5.c } \
1719 "plt-main-bnd-now" \
1720 "plt-main.out" \
1721 ] \
1722 [list \
1723 "Run plt-main with PIE and -z bndplt -z now" \
1724 "-Wl,--no-as-needed,-z,bndplt,-z,now -pie tmpdir/plt-main1.o \
1725 tmpdir/plt-main2.o tmpdir/plt-main3.o \
1726 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
6c0d3bde 1727 "-Wa,-mx86-used-note=yes" \
38b12349
L
1728 { plt-main5.c } \
1729 "plt-main-pie-bnd-now" \
1730 "plt-main.out" \
1731 "-fPIC" \
1732 ] \
9d734efa
L
1733 [list \
1734 "Run pr20800" \
d9816402 1735 "-Wl,-z,now -pie" \
6c0d3bde 1736 "-Wa,-mx86-used-note=yes" \
9d734efa
L
1737 { pr20800a.S pr20800b.S } \
1738 "pr20800" \
1739 "pass.out" \
1740 ] \
dd7e64d4 1741 ]
85406233
L
1742 if { [check_ifunc_attribute_available] } {
1743 run_ld_link_exec_tests [list \
1744 [list \
1745 "Run pr21481a" \
1746 "$NOPIE_LDFLAGS -Wl,-z,bndplt" \
6c0d3bde 1747 "-Wa,-mx86-used-note=yes" \
85406233
L
1748 { pr21481a.c pr21481b.S } \
1749 "pr21481a" \
1750 "pass.out" \
1751 "$NOPIE_CFLAGS" \
1752 ] \
1753 [list \
1754 "Run pr21481b" \
1755 "$NOPIE_LDFLAGS -Wl,-z,bndplt,-z,now" \
6c0d3bde 1756 "-Wa,-mx86-used-note=yes" \
85406233
L
1757 { pr21481a.c pr21481b.S } \
1758 "pr21481b" \
1759 "pass.out" \
1760 "$NOPIE_CFLAGS" \
1761 ] \
1762 ]
1763 }
dd7e64d4 1764 }
aec6b87e 1765
ee2fdd6f
L
1766 if { [istarget "x86_64-*-linux*"] } {
1767 if { [istarget "x86_64-*-linux*-gnux32"] } {
1768 set pltdump {{objdump {-drw} plt-main-ibt-x32.dd}}
1769 set pltsecdump {{readelf {-SW} plt-main-ibt-now.rd} {objdump {-drw} plt-main-ibt-x32.dd}}
1770 } else {
1771 set pltdump {{objdump {-drw} plt-main-ibt.dd}}
1772 set pltsecdump {{readelf {-SW} plt-main-ibt-now.rd} {objdump {-drw} plt-main-ibt.dd}}
1773 }
1774 run_cc_link_tests [list \
1775 [list \
1776 "Build plt-main with -z ibtplt" \
1777 "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
7c9f387a
L
1778 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt \
1779 -z noseparate-code -z max-page-size=0x200000" \
6c0d3bde 1780 "-Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1781 { plt-main5.c } \
1782 $pltdump \
1783 "plt-main-ibt" \
1784 ] \
1785 [list \
1786 "Build plt-main with PIE and -z ibtplt" \
1787 "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
7c9f387a
L
1788 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -pie \
1789 -z noseparate-code -z max-page-size=0x200000" \
6c0d3bde 1790 "-fPIC -Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1791 { plt-main5.c } \
1792 $pltdump \
1793 "plt-main-pie-ibt" \
1794 ] \
1795 [list \
1796 "Build plt-main with -z ibtplt -z now" \
1797 "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
7c9f387a
L
1798 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -z now \
1799 -z noseparate-code -z max-page-size=0x200000" \
6c0d3bde 1800 "-Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1801 { plt-main5.c } \
1802 $pltsecdump \
1803 "plt-main-ibt-now" \
1804 ] \
1805 [list \
1806 "Build plt-main with PIE and -z ibtplt -z now" \
1807 "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
7c9f387a
L
1808 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -z now -pie \
1809 -z noseparate-code -z max-page-size=0x200000" \
6c0d3bde 1810 "-fPIC -Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1811 { plt-main5.c } \
1812 $pltsecdump \
1813 "plt-main-pie-ibt-now" \
1814 ] \
1815 [list \
1816 "Build libibtplt-lib.so with -z ibtplt" \
7c9f387a
L
1817 "-shared -z ibtplt \
1818 -z noseparate-code -z max-page-size=0x200000" \
6c0d3bde 1819 "-fPIC -Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1820 { plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \
1821 $pltdump \
1822 "libibtplt-lib.so" \
1823 ] \
1824 [list \
1825 "Build libibtplt--now-lib.so with -z ibtplt -z now" \
7c9f387a
L
1826 "-shared -z ibtplt -z now \
1827 -z noseparate-code -z max-page-size=0x200000" \
6c0d3bde 1828 "-fPIC -Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1829 { plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \
1830 $pltdump \
1831 "libibtplt-now-lib.so" \
1832 ] \
1833 ]
1834
1835 run_ld_link_exec_tests [list \
1836 [list \
1837 "Run plt-main with -z ibtplt" \
1838 "-Wl,--no-as-needed,-z,ibtplt tmpdir/plt-main1.o \
1839 tmpdir/plt-main2.o tmpdir/plt-main3.o \
1840 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
6c0d3bde 1841 "-Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1842 { plt-main5.c } \
1843 "plt-main-ibt" \
1844 "plt-main.out" \
1845 ] \
1846 [list \
1847 "Run plt-main with PIE and -z ibtplt" \
1848 "-Wl,--no-as-needed,-z,ibtplt -pie tmpdir/plt-main1.o \
1849 tmpdir/plt-main2.o tmpdir/plt-main3.o \
1850 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
6c0d3bde 1851 "-Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1852 { plt-main5.c } \
1853 "plt-main-pie-ibt" \
1854 "plt-main.out" \
1855 "-fPIC" \
1856 ] \
1857 [list \
1858 "Run plt-main with -z ibtplt -z now" \
1859 "-Wl,--no-as-needed,-z,ibtplt,-z,now tmpdir/plt-main1.o \
1860 tmpdir/plt-main2.o tmpdir/plt-main3.o \
1861 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
6c0d3bde 1862 "-Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1863 { plt-main5.c } \
1864 "plt-main-ibt-now" \
1865 "plt-main.out" \
1866 ] \
1867 [list \
1868 "Run plt-main with PIE and -z ibtplt -z now" \
1869 "-Wl,--no-as-needed,-z,ibtplt,-z,now -pie tmpdir/plt-main1.o \
1870 tmpdir/plt-main2.o tmpdir/plt-main3.o \
1871 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
6c0d3bde 1872 "-Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1873 { plt-main5.c } \
1874 "plt-main-pie-ibt-now" \
1875 "plt-main.out" \
1876 "-fPIC" \
1877 ] \
1878 [list \
1879 "Run plt-main with libibtplt-lib.so -z ibtplt" \
1880 "-Wl,--no-as-needed,-z,ibtplt tmpdir/libibtplt-lib.so \
1881 tmpdir/libplt-lib.so" \
6c0d3bde 1882 "-Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1883 { plt-main5.c } \
1884 "plt-main-ibt-lib" \
1885 "plt-main.out" \
1886 ] \
1887 [list \
1888 "Run plt-main with libibtplt-lib.so -z ibtplt -z now" \
1889 "-Wl,--no-as-needed,-z,ibtplt,-z,now \
1890 tmpdir/libibtplt-now-lib.so tmpdir/libplt-lib.so" \
6c0d3bde 1891 "-Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1892 { plt-main5.c } \
1893 "plt-main-ibt-now-lib" \
1894 "plt-main.out" \
1895 ] \
1896 ]
1897
1898 if { [check_ifunc_attribute_available] } {
1899 run_ld_link_exec_tests [list \
1900 [list \
1901 "Run pr21481a" \
1902 "$NOPIE_LDFLAGS -Wl,-z,ibtplt" \
6c0d3bde 1903 "-Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1904 { pr21481a.c pr21481b.S } \
1905 "pr21481a" \
1906 "pass.out" \
1907 "$NOPIE_CFLAGS" \
1908 ] \
1909 [list \
1910 "Run pr21481b" \
1911 "$NOPIE_LDFLAGS -Wl,-z,ibtplt,-z,now" \
6c0d3bde 1912 "-Wa,-mx86-used-note=yes" \
ee2fdd6f
L
1913 { pr21481a.c pr21481b.S } \
1914 "pr21481b" \
1915 "pass.out" \
1916 "$NOPIE_CFLAGS" \
1917 ] \
1918 ]
1919 }
1920 }
1921
a7eaf017 1922 undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
aec6b87e
L
1923 undefined_weak "-fPIE" ""
1924 undefined_weak "-fPIE" "-pie"
d9816402
AM
1925 undefined_weak "-fPIE" "-Wl,-z,nodynamic-undefined-weak"
1926 undefined_weak "-fPIE" "-pie -Wl,-z,nodynamic-undefined-weak"
adc7571d 1927}
ab7fede8
L
1928
1929if { ![istarget "x86_64-*-linux*"]} {
6c0d3bde 1930 set ASFLAGS "$saved_ASFLAGS"
ab7fede8
L
1931 return
1932}
1933
38b12349
L
1934run_ld_link_tests [list \
1935 [list \
1936 "basic PLT generation (-z now)" \
7c9f387a
L
1937 "-z now -melf_x86_64 --hash-style=sysv tmpdir/libpltlib.so \
1938 -z noseparate-code -z max-page-size=0x200000" \
38b12349
L
1939 "" \
1940 "--64" \
1941 {plt2.s} \
1942 {{readelf -SW plt2.rd} {objdump -dwr plt2.dd}} \
1943 "plt2" \
1944 ] \
abfa390d
L
1945 [list \
1946 "Build pr21626.so" \
1947 "-shared -melf_x86_64" \
1948 "" \
6c0d3bde 1949 "--64 -defsym __64_bit__=1 -mx86-used-note=yes" \
abfa390d
L
1950 {property-x86-3.s} \
1951 "" \
1952 "pr21626.so" \
1953 ] \
1954 [list \
1955 "Build pr21626" \
1956 "-melf_x86_64 tmpdir/pr21626.so" \
1957 "" \
6c0d3bde 1958 "--64 -mx86-used-note=yes" \
abfa390d
L
1959 {start.s foo.s} \
1960 "" \
1961 "pr21626" \
1962 ] \
38b12349
L
1963]
1964
ab7fede8 1965# Linux only tests
978c0540
L
1966global LD_CLASS
1967if { "$LD_CLASS" == "64bit" } then {
1968 # This test needs 64-bit linker.
1969 run_dump_test "pr17618"
1970}
a3747075 1971run_dump_test "pltgot-1"
7c1e8d3e 1972run_dump_test "pltgot-2"
59a1e29d
L
1973run_dump_test "pr20830a"
1974run_dump_test "pr20830b"
9e659176
L
1975run_dump_test "pr21038a"
1976run_dump_test "pr21038b"
8361ed4d 1977run_dump_test "pr21038c"
38b12349
L
1978run_dump_test "pr20830a-now"
1979run_dump_test "pr20830b-now"
1980run_dump_test "pr21038a-now"
1981run_dump_test "pr21038b-now"
1982run_dump_test "pr21038c-now"
ee2fdd6f
L
1983run_dump_test "ibt-plt-1"
1984run_dump_test "ibt-plt-1-x32"
1985run_dump_test "ibt-plt-2a"
1986run_dump_test "ibt-plt-2b"
1987run_dump_test "ibt-plt-2c"
1988run_dump_test "ibt-plt-2d"
1989run_dump_test "ibt-plt-2a-x32"
1990run_dump_test "ibt-plt-2b-x32"
1991run_dump_test "ibt-plt-2c-x32"
1992run_dump_test "ibt-plt-2d-x32"
1993run_dump_test "ibt-plt-3a"
1994run_dump_test "ibt-plt-3b"
1995run_dump_test "ibt-plt-3c"
1996run_dump_test "ibt-plt-3d"
1997run_dump_test "ibt-plt-3a-x32"
1998run_dump_test "ibt-plt-3b-x32"
1999run_dump_test "ibt-plt-3c-x32"
2000run_dump_test "ibt-plt-3d-x32"
6c0d3bde
L
2001
2002set ASFLAGS "$saved_ASFLAGS"
This page took 0.828611 seconds and 4 git commands to generate.