Tidy gas/configure.tgt
[deliverable/binutils-gdb.git] / ld / testsuite / ld-ifunc / ifunc.exp
CommitLineData
d8045f23
NC
1# Expect script for linker support of IFUNC symbols and relocations.
2#
219d1afa 3# Copyright (C) 2009-2018 Free Software Foundation, Inc.
d8045f23
NC
4# Contributed by Red Hat.
5#
6# This file is part of the GNU Binutils.
7#
8# This program is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21# MA 02110-1301, USA.
22#
23# Written by Nick Clifton <nickc@redhat.com>
24
25
d0c9aeb3 26# IFUNC support has only been implemented for the ix86, x86_64, powerpc,
e44c481a 27# aarch64, sparc, and S/390 so far.
e054468f
AM
28if {!(([istarget "i?86-*-*"]
29 || [istarget "x86_64-*-*"]
d0c9aeb3 30 || [istarget "powerpc*-*-*"]
1419bbe5 31 || [istarget "aarch64*-*-*"]
e44c481a
AK
32 || [istarget "sparc*-*-*"]
33 || [istarget "s390*-*-*"])
e054468f 34 && ([istarget "*-*-elf*"]
5a68afcf 35 || [istarget "*-*-nacl*"]
99753d9d
AM
36 || (([istarget "*-*-linux*"]
37 || [istarget "*-*-gnu*"])
e054468f 38 && ![istarget "*-*-*aout*"]
99753d9d 39 && ![istarget "*-*-*oldld*"]))) } {
d8045f23
NC
40 verbose "IFUNC tests not run - target does not support IFUNC"
41 return
42}
43
47523653
AM
44# Skip targets where -shared is not supported
45
46if ![check_shared_lib_support] {
47 return
48}
49
f657f8c4
NC
50# This test does not need a compiler...
51run_dump_test "ifuncmod5"
52
d8045f23
NC
53# We need a working compiler. (Strictly speaking this is
54# not true, we could use target specific assembler files).
55if { [which $CC] == 0 } {
56 verbose "IFUNC tests not run - no compiler available"
57 return
58}
59
60# A procedure to check the OS/ABI field in the ELF header of a binary file.
61proc check_osabi { binary_file expected_osabi } {
62 global READELF
63 global READELFFLAGS
64
65 catch "exec $READELF $READELFFLAGS --file-header $binary_file > readelf.out" got
66
67 if ![string match "" $got] then {
68 verbose "proc check_osabi: Readelf produced unexpected out processing $binary_file: $got"
69 return 0
70 }
71
72 if { ![regexp "\n\[ \]*OS/ABI:\[ \]*(.+)\n\[ \]*ABI" \
73 [file_contents readelf.out] nil osabi] } {
74 verbose "proc check_osabi: Readelf failed to extract an ELF header from $binary_file"
75 return 0
76 }
77
78 if { $osabi == $expected_osabi } {
79 return 1
80 }
81
82 verbose "Expected OSABI: $expected_osabi, Obtained osabi: $osabi"
5a68afcf 83
d8045f23
NC
84 return 0
85}
86
87# A procedure to confirm that a file contains the IFUNC symbol.
88# Returns -1 upon error, 0 if the symbol was not found and 1 if it was found.
89proc contains_ifunc_symbol { binary_file } {
90 global READELF
91 global READELFFLAGS
92
93 catch "exec $READELF $READELFFLAGS --symbols $binary_file > readelf.out" got
94
95 if ![string match "" $got] then {
96 verbose "proc contains_ifunc_symbol: Readelf produced unexpected out processing $binary_file: $got"
97 return -1
98 }
99
100 # Look for a line like this:
101 # 58: 0000000000400600 30 IFUNC GLOBAL DEFAULT 12 library_func2
4115bfc6 102 # with perhaps some other info between the visibility and section
d8045f23 103
4115bfc6 104 if { ![regexp ".*\[ \]*IFUNC\[ \]+GLOBAL\[ \]+DEFAULT .* \[UND0-9\]+\[ \]+library_func2\n" [file_contents readelf.out]] } {
d8045f23
NC
105 return 0
106 }
107
108 return 1
109}
110
cbe950e9
L
111# A procedure to confirm that a file contains the R_*_IRELATIVE
112# relocation.
113# Returns -1 upon error, 0 if the relocation was not found and 1 if
114# it was found.
115proc contains_irelative_reloc { binary_file } {
116 global READELF
117 global READELFFLAGS
118
119 catch "exec $READELF $READELFFLAGS --relocs --wide $binary_file > readelf.out" got
120
121 if ![string match "" $got] then {
122 verbose "proc contains_irelative_reloc: Readelf produced unexpected out processing $binary_file: $got"
123 return -1
124 }
125
126 # Look for a line like this:
127 # 0000000000600ab0 0000000000000025 R_X86_64_IRELATIVE 000000000040061c
128 # 080496f4 0000002a R_386_IRELATIVE
129
130
425621e7 131 if { ![regexp "\[0-9a-f\]+\[ \]+\[0-9a-f\]+\[ \]+R_\[_0-9A-Z\]+_IREL(|ATIVE)\[ \]*\[0-9a-f\]*\n" [file_contents readelf.out]] } {
cbe950e9
L
132 return 0
133 }
134
135 return 1
136}
137
d8045f23
NC
138# A procedure to confirm that a file contains a relocation that references an IFUNC symbol.
139# Returns -1 upon error, 0 if the reloc was not found and 1 if it was found.
140proc contains_ifunc_reloc { binary_file } {
141 global READELF
142 global READELFFLAGS
143
144 catch "exec $READELF $READELFFLAGS --relocs $binary_file > readelf.out" got
145
146 if ![string match "" $got] then {
147 verbose "proc contains_ifunc_reloc: Readelf produced unexpected out processing $binary_file: $got"
148 return -1
149 }
150
151 if [string match "" [file_contents readelf.out]] then {
152 verbose "No relocs found in $binary_file"
153 return 0
154 }
155
156 if { ![regexp "\\(\\)" [file_contents readelf.out]] } {
157 return 0
158 }
159
160 return 1
161}
162
163set fails 0
164
165# Create the object files, libraries and executables.
be19bd51
L
166if ![ld_compile "$CC -c -fPIC" "$srcdir/$subdir/prog.c" "tmpdir/shared_prog.o"] {
167 fail "Could not create a PIC object file"
d8045f23
NC
168 set fails [expr $fails + 1]
169}
640d0ed8 170if ![ld_compile "$CC -c $NOPIE_CFLAGS" "$srcdir/$subdir/prog.c" "tmpdir/static_prog.o"] {
be19bd51 171 fail "Could not create a non-PIC object file"
d8045f23
NC
172 set fails [expr $fails + 1]
173}
be19bd51
L
174if ![ld_compile "$CC -c -fPIC -DWITH_IFUNC" "$srcdir/$subdir/lib.c" "tmpdir/shared_ifunc.o"] {
175 fail "Could not create a PIC object file containing an IFUNC symbol"
d8045f23
NC
176 set fails [expr $fails + 1]
177}
640d0ed8 178if ![ld_compile "$CC -c $NOPIE_CFLAGS -DWITH_IFUNC" "$srcdir/$subdir/lib.c" "tmpdir/static_ifunc.o"] {
be19bd51 179 fail "Could not create a non-PIC object file containing an IFUNC symbol"
d8045f23
NC
180 set fails [expr $fails + 1]
181}
be19bd51
L
182if ![ld_compile "$CC -c -DWITHOUT_IFUNC" "$srcdir/$subdir/lib.c" "tmpdir/static_noifunc.o"] {
183 fail "Could not create an ordinary non-PIC object file"
184 set fails [expr $fails + 1]
185}
186if ![ld_assemble $as "$srcdir/ld-elf/empty.s" "tmpdir/empty.o"] {
187 fail "Could not create an empty object file"
d8045f23
NC
188 set fails [expr $fails + 1]
189}
2955ec4c
L
190if ![ld_compile "$CC -c" "$srcdir/$subdir/test-1.c" "tmpdir/test-1.o"] {
191 fail "Could not create test-1.o"
192 set fails [expr $fails + 1]
193}
194if ![ld_compile "$CC -fPIC -c" "$srcdir/$subdir/test-2.c" "tmpdir/test-2.o"] {
195 fail "Could not create test-2.o"
196 set fails [expr $fails + 1]
197}
d8045f23
NC
198
199if { $fails != 0 } {
200 return
201}
202
d9816402 203if ![ld_link $ld "tmpdir/libshared_ifunc.so" "-shared tmpdir/shared_ifunc.o"] {
d8045f23
NC
204 fail "Could not create a shared library containing an IFUNC symbol"
205 set fails [expr $fails + 1]
206}
207if ![ar_simple_create $ar "" "tmpdir/libifunc.a" "tmpdir/static_ifunc.o"] {
208 fail "Could not create a static library containing an IFUNC symbol"
209 set fails [expr $fails + 1]
210}
211
212if { $fails != 0 } {
213 return
214}
215
d9816402 216if ![ld_link $CC "tmpdir/dynamic_prog" "-Wl,--no-as-needed,-rpath=./tmpdir,-Bdynamic -Ltmpdir tmpdir/shared_prog.o -lshared_ifunc"] {
d8045f23
NC
217 fail "Could not link a dynamic executable"
218 set fails [expr $fails + 1]
219}
640d0ed8 220if ![ld_link $CC "tmpdir/local_prog" "$NOPIE_LDFLAGS -Wl,--no-as-needed,-rpath=./tmpdir -Ltmpdir tmpdir/static_prog.o -lifunc"] {
e054468f
AM
221 fail "Could not link a dynamic executable using local ifunc"
222 set fails [expr $fails + 1]
223}
98d72909
L
224if ![string match "" $STATIC_LDFLAGS] {
225 if ![ld_link $CC "tmpdir/static_prog" "-static -Ltmpdir tmpdir/static_prog.o -lifunc"] {
226 fail "Could not link a static executable"
227 set fails [expr $fails + 1]
228 }
229 if ![ld_link $ld "tmpdir/static_nonifunc_prog" "-static tmpdir/empty.o"] {
230 fail "Could not link a non-ifunc using static executable"
231 set fails [expr $fails + 1]
232 }
d8045f23 233}
d9816402 234if ![ld_link $CC "tmpdir/test-1" "-Wl,--no-as-needed,-rpath=./tmpdir tmpdir/test-1.o tmpdir/libshared_ifunc.so"] {
2955ec4c
L
235 fail "Could not link test-1"
236 set fails [expr $fails + 1]
237}
d9816402 238if ![ld_link $ld "tmpdir/libtest-2.so" "-shared tmpdir/test-2.o"] {
2955ec4c
L
239 fail "Could not link libtest-2.so"
240 set fails [expr $fails + 1]
241}
e492d2f8
L
242if ![ld_link $ld "tmpdir/libtest-2-now.so" "-shared -z now tmpdir/test-2.o"] {
243 fail "Could not link libtest-2-now.so"
244 set fails [expr $fails + 1]
245}
d8045f23
NC
246
247if { $fails == 0 } {
248 pass "Building ifunc binaries"
249 set fails 0
250} else {
251 return
252}
253
cbe950e9 254# Check the executables and shared libraries
d8045f23 255#
cbe950e9 256# The linked ifunc using executables and the shared library containing
9c55345c 257# ifunc should have an OSABI field of GNU. The linked non-ifunc using
cbe950e9 258# executable should have an OSABI field of NONE (aka System V).
d8045f23 259
d9816402
AM
260case $target_triplet in {
261 { hppa*-*-linux* } { set expected_none {UNIX - GNU} }
262 default { set expected_none {UNIX - System V} }
263}
264
9c55345c
TS
265if {! [check_osabi tmpdir/libshared_ifunc.so {UNIX - GNU}]} {
266 fail "Shared libraries containing ifunc does not have an OS/ABI field of GNU"
cbe950e9
L
267 set fails [expr $fails + 1]
268}
9c55345c
TS
269if {! [check_osabi tmpdir/local_prog {UNIX - GNU}]} {
270 fail "Local ifunc-using executable does not have an OS/ABI field of GNU"
e054468f
AM
271 set fails [expr $fails + 1]
272}
98d72909
L
273if { ![string match "" $STATIC_LDFLAGS] \
274 && ![check_osabi tmpdir/static_prog {UNIX - GNU}]} {
9c55345c 275 fail "Static ifunc-using executable does not have an OS/ABI field of GNU"
d8045f23
NC
276 set fails [expr $fails + 1]
277}
d9816402
AM
278if {! [check_osabi tmpdir/dynamic_prog $expected_none]} {
279 fail "Dynamic ifunc-using executable does not have an OS/ABI field of $expected_none"
d8045f23
NC
280 set fails [expr $fails + 1]
281}
d9816402
AM
282if {! [check_osabi tmpdir/static_nonifunc_prog $expected_none]} {
283 fail "Static non-ifunc-using executable does not have an OS/ABI field of $expected_none"
be19bd51
L
284 set fails [expr $fails + 1]
285}
d8045f23 286
cbe950e9
L
287# The linked ifunc using executables and the shared library containing
288# ifunc should contain an IFUNC symbol. The non-ifunc using executable
289# should not.
d8045f23 290
cbe950e9
L
291if {[contains_ifunc_symbol tmpdir/libshared_ifunc.so] != 1} {
292 fail "Shared libraries containing ifunc does not contain an IFUNC symbol"
293 set fails [expr $fails + 1]
294}
e054468f
AM
295if {[contains_ifunc_symbol tmpdir/local_prog] != 1} {
296 fail "Local ifunc-using executable does not contain an IFUNC symbol"
297 set fails [expr $fails + 1]
298}
98d72909
L
299if { ![string match "" $STATIC_LDFLAGS] \
300 && [contains_ifunc_symbol tmpdir/static_prog] != 1} {
d8045f23
NC
301 fail "Static ifunc-using executable does not contain an IFUNC symbol"
302 set fails [expr $fails + 1]
303}
2955ec4c
L
304if {[contains_ifunc_symbol tmpdir/dynamic_prog] != 0} {
305 fail "Dynamic ifunc-using executable contains an IFUNC symbol"
d8045f23
NC
306 set fails [expr $fails + 1]
307}
308if {[contains_ifunc_symbol tmpdir/static_nonifunc_prog] != 0} {
309 fail "Static non-ifunc-using executable contains an IFUNC symbol"
310 set fails [expr $fails + 1]
311}
2955ec4c
L
312if {[contains_ifunc_symbol tmpdir/test-1] != 0} {
313 fail "test-1 contains IFUNC symbols"
314 set fails [expr $fails + 1]
315}
316if {[contains_ifunc_symbol tmpdir/libtest-2.so] != 0} {
317 fail "libtest-2.so contains IFUNC symbols"
318 set fails [expr $fails + 1]
319}
e492d2f8
L
320if {[contains_ifunc_symbol tmpdir/libtest-2-now.so] != 0} {
321 fail "libtest-2-now.so contains IFUNC symbols"
322 set fails [expr $fails + 1]
323}
d8045f23 324
cbe950e9
L
325# The linked ifunc using executables and shared libraries should contain
326# a dynamic reloc referencing the IFUNC symbol. (Even the static
327# executable which should have a dynamic section created for it). The
328# non-ifunc using executable should not.
d8045f23 329
cbe950e9
L
330if {[contains_irelative_reloc tmpdir/libshared_ifunc.so] != 1} {
331 fail "ifunc-using shared library does not contain R_*_IRELATIVE relocation"
332 set fails [expr $fails + 1]
333}
e054468f
AM
334if {[contains_irelative_reloc tmpdir/local_prog] != 1} {
335 fail "Local ifunc-using executable does not contain R_*_IRELATIVE relocation"
336 set fails [expr $fails + 1]
337}
98d72909
L
338if { ![string match "" $STATIC_LDFLAGS] \
339 && [contains_irelative_reloc tmpdir/static_prog] != 1} {
cbe950e9 340 fail "Static ifunc-using executable does not contain R_*_IRELATIVE relocation"
d8045f23
NC
341 set fails [expr $fails + 1]
342}
2955ec4c
L
343if {[contains_ifunc_reloc tmpdir/dynamic_prog] != 0} {
344 fail "Dynamic ifunc-using executable contains a reloc against an IFUNC symbol"
d8045f23
NC
345 set fails [expr $fails + 1]
346}
347if {[contains_ifunc_reloc tmpdir/static_nonifunc_prog] == 1} {
348 fail "Static non-ifunc-using executable contains a reloc against an IFUNC symbol!"
349 set fails [expr $fails + 1]
350}
351
352if { $fails == 0 } {
353 pass "Checking ifunc binaries"
354}
355
4584ec12
L
356run_cc_link_tests [list \
357 [list \
358 "Build libpr16467a.so" \
359 "-shared -Wl,--version-script=pr16467a.map" \
360 "-fPIC" \
361 { pr16467a.c } \
362 {} \
363 "libpr16467a.so" \
364 ] \
365 [list \
366 "Build libpr16467b.a" \
367 "" \
368 "-fPIC" \
369 { pr16467b.c } \
370 {} \
371 "libpr16467b.a" \
372 ] \
373 [list \
374 "Build libpr16467b.so" \
375 "-shared tmpdir/pr16467b.o tmpdir/libpr16467a.so \
376 -Wl,--version-script=pr16467b.map" \
377 "-fPIC" \
378 { dummy.c } \
379 {} \
380 "libpr16467b.so" \
381 ] \
382 [list \
383 "Build libpr16467c.a" \
384 "" \
385 "" \
386 { pr16467c.c } \
387 {} \
388 "libpr16467c.a" \
389 ] \
d6f48aed
L
390 [list \
391 "Build libpr16467an.so" \
392 "-shared -Wl,-z,now -Wl,--version-script=pr16467a.map" \
393 "-fPIC" \
394 { pr16467a.c } \
395 {} \
396 "libpr16467an.so" \
397 ] \
398 [list \
399 "Build libpr16467bn.so" \
400 "-shared tmpdir/pr16467b.o tmpdir/libpr16467an.so \
401 -Wl,--version-script=pr16467b.map" \
402 "-fPIC" \
403 { dummy.c } \
404 {} \
405 "libpr16467bn.so" \
406 ] \
4584ec12
L
407]
408
982c6f26 409run_ld_link_exec_tests [list \
37a9e49a
L
410 [list \
411 "Common symbol override ifunc test 1a" \
412 "-static" \
413 "" \
414 { ifunc-common-1a.c ifunc-common-1b.c } \
415 "ifunc-common-1a" \
416 "ifunc-common-1.out" \
417 "-g" \
418 ] \
419 [list \
420 "Common symbol override ifunc test 1b" \
421 "-static" \
422 "" \
423 { ifunc-common-1b.c ifunc-common-1a.c } \
424 "ifunc-common-1b" \
425 "ifunc-common-1.out" \
426 "-g" \
427 ] \
c22ee0ad
L
428]
429
430set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
431foreach t $test_list {
432 # We need to strip the ".d", but can leave the dirname.
433 verbose [file rootname $t]
434 run_dump_test [file rootname $t]
435}
436
437# Run-time tests which require working IFUNC support.
438if { ![check_ifunc_available] } {
439 return
440}
441
5f7cbeec
L
442run_cc_link_tests [list \
443 [list \
444 "Build ifunc-lib.so" \
445 "-shared" \
446 "-fPIC" \
447 { ifunc-lib.c } \
448 {} \
449 "libifunc-lib.so" \
450 ] \
d6f48aed
L
451 [list \
452 "Build ifunc-libn.so" \
453 "-shared -Wl,-z,now" \
454 "-fPIC" \
455 { ifunc-lib.c } \
456 {} \
457 "libifunc-libn.so" \
458 ] \
5f7cbeec
L
459]
460
982c6f26 461run_ld_link_exec_tests [list \
4584ec12
L
462 [list \
463 "Run pr16467" \
d9816402 464 "-Wl,--no-as-needed tmpdir/pr16467c.o tmpdir/libpr16467b.so tmpdir/libpr16467a.so" \
4584ec12
L
465 "" \
466 { dummy.c } \
467 "pr16467" \
468 "pr16467.out" \
469 "" \
470 ] \
d6f48aed
L
471 [list \
472 "Run pr16467 (-z now)" \
473 "-Wl,-z,now -Wl,--no-as-needed tmpdir/pr16467c.o tmpdir/libpr16467bn.so tmpdir/libpr16467an.so" \
474 "" \
475 { dummy.c } \
476 "pr16467n" \
477 "pr16467.out" \
478 "" \
479 ] \
5f7cbeec
L
480 [list \
481 "Run ifunc-main" \
d9816402 482 "-Wl,--no-as-needed tmpdir/libifunc-lib.so" \
5f7cbeec
L
483 "" \
484 { ifunc-main.c } \
485 "ifunc-main" \
486 "ifunc-main.out" \
487 ] \
488 [list \
489 "Run ifunc-main with -fpic" \
d9816402 490 "-Wl,--no-as-needed tmpdir/libifunc-lib.so" \
5f7cbeec
L
491 "" \
492 { ifunc-main.c } \
493 "ifunc-main" \
494 "ifunc-main.out" \
495 "-fpic" \
496 ] \
d6f48aed
L
497 [list \
498 "Run ifunc-main (-z now)" \
499 "-Wl,-z,now -Wl,--no-as-needed tmpdir/libifunc-libn.so" \
500 "" \
501 { ifunc-main.c } \
502 "ifunc-mainn" \
503 "ifunc-main.out" \
504 ] \
505 [list \
506 "Run ifunc-main with PIE (-z now)" \
507 "-pie -Wl,-z,now -Wl,--no-as-needed tmpdir/libifunc-libn.so" \
508 "" \
509 { ifunc-main.c } \
510 "ifunc-mainpn" \
511 "ifunc-main.out" \
512 "-fpie" \
513 ] \
37a9e49a 514]
97dc35c8
L
515
516# Run-time tests which require working ifunc attribute support.
517if { ![check_ifunc_attribute_available] } {
518 return
519}
520
521run_cc_link_tests [list \
205ac185
L
522 [list \
523 "Build pr18808a.o" \
524 "" \
525 "" \
526 { pr18808a.c } \
527 "" \
528 "" \
529 ] \
97dc35c8
L
530 [list \
531 "Build libpr18808.so" \
532 "-shared" \
533 "-fPIC -O2 -g" \
534 { pr18808b.c } \
535 {} \
536 "libpr18808.so" \
537 ] \
d6f48aed
L
538 [list \
539 "Build libpr18808n.so" \
540 "-shared -Wl,-z,now" \
541 "-fPIC -O2 -g" \
542 { pr18808b.c } \
543 {} \
544 "libpr18808n.so" \
545 ] \
205ac185
L
546 [list \
547 "Build pr18841a.o" \
548 "" \
549 "" \
550 { pr18841a.c } \
551 "" \
552 "" \
553 ] \
cae1fbbb 554 [list \
4e1626f5 555 "Build libpr18841b.so" \
cae1fbbb
L
556 "-shared" \
557 "-fPIC -O0 -g" \
558 { pr18841b.c } \
559 {} \
4e1626f5
L
560 "libpr18841b.so" \
561 ] \
562 [list \
563 "Build libpr18841c.so" \
564 "-shared" \
565 "-fPIC -O0 -g" \
566 { pr18841c.c } \
567 {} \
568 "libpr18841c.so" \
cae1fbbb 569 ] \
d6f48aed
L
570 [list \
571 "Build libpr18841bn.so" \
572 "-Wl,-z,now -shared" \
573 "-fPIC -O0 -g" \
574 { pr18841b.c } \
575 {} \
576 "libpr18841bn.so" \
577 ] \
578 [list \
579 "Build libpr18841cn.so" \
580 "-shared" \
581 "-Wl,-z,now -fPIC -O0 -g" \
582 { pr18841c.c } \
583 {} \
584 "libpr18841cn.so" \
585 ] \
97dc35c8
L
586]
587
982c6f26 588run_ld_link_exec_tests [list \
97dc35c8
L
589 [list \
590 "Run pr18808" \
d9816402 591 "-Wl,--no-as-needed tmpdir/pr18808a.o tmpdir/libpr18808.so" \
97dc35c8 592 "" \
205ac185 593 { dummy.c } \
97dc35c8
L
594 "pr18808" \
595 "pr18808.out" \
596 ] \
d6f48aed
L
597 [list \
598 "Run pr18808 (-z now)" \
599 "-Wl,-z,now -Wl,--no-as-needed tmpdir/pr18808a.o tmpdir/libpr18808n.so" \
600 "" \
601 { dummy.c } \
602 "pr18808n" \
603 "pr18808.out" \
604 ] \
cae1fbbb 605 [list \
4e1626f5 606 "Run pr18841 with libpr18841b.so" \
d9816402 607 "-Wl,--no-as-needed tmpdir/pr18841a.o tmpdir/libpr18841b.so" \
4e1626f5 608 "" \
205ac185 609 { dummy.c } \
4e1626f5
L
610 "pr18841b" \
611 "pr18841.out" \
612 ] \
613 [list \
614 "Run pr18841 with libpr18841c.so" \
d9816402 615 "-Wl,--as-needed tmpdir/pr18841a.o tmpdir/libpr18841c.so" \
cae1fbbb 616 "" \
205ac185 617 { dummy.c } \
4e1626f5 618 "pr18841c" \
cae1fbbb
L
619 "pr18841.out" \
620 ] \
d6f48aed
L
621 [list \
622 "Run pr18841 with libpr18841bn.so (-z now)" \
623 "-Wl,-z,now -Wl,--no-as-needed tmpdir/pr18841a.o tmpdir/libpr18841bn.so" \
624 "" \
625 { dummy.c } \
626 "pr18841bn" \
627 "pr18841.out" \
628 ] \
629 [list \
630 "Run pr18841 with libpr18841cn.so (-z now)" \
631 "-Wl,-z,now -Wl,--as-needed tmpdir/pr18841a.o tmpdir/libpr18841cn.so" \
632 "" \
633 { dummy.c } \
634 "pr18841cn" \
635 "pr18841.out" \
636 ] \
97dc35c8 637]
This page took 0.876744 seconds and 4 git commands to generate.