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