mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
* ld-elf/shared.exp: Update regexp on --no-add-needed and
--no-copy-dt-needed-entries tests.
This commit is contained in:
parent
8ff4c1f3c9
commit
e65cb106a6
@ -1,3 +1,8 @@
|
||||
2013-04-04 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* ld-elf/shared.exp: Update regexp on --no-add-needed and
|
||||
--no-copy-dt-needed-entries tests.
|
||||
|
||||
2013-04-03 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR ld/15227
|
||||
|
@ -361,14 +361,14 @@ run_ld_link_exec_tests [list "*-*-netbsdelf*"] $run_tests
|
||||
# Check --no-add-needed and --no-copy-dt-needed-entries
|
||||
set testname "--no-add-needed"
|
||||
set exec_output [run_host_cmd "$CC" "$gcc_gas_flag $gcc_ld_flag tmpdir/libneeded1c.o -Wl,--no-add-needed,-rpath-link=tmpdir -Ltmpdir -lneeded1a"]
|
||||
if { [ regexp "'bar' is defined in DSO tmpdir/libneeded1b.so" $exec_output ] } {
|
||||
if { [ regexp "tmpdir/libneeded1b.so: .*: DSO missing" $exec_output ] } {
|
||||
pass $testname
|
||||
} {
|
||||
fail $testname
|
||||
}
|
||||
set testname "--no-copy-dt-needed-entries"
|
||||
set exec_output [run_host_cmd "$CC" "$gcc_gas_flag $gcc_ld_flag tmpdir/libneeded1c.o -Wl,--no-copy-dt-needed-entries,-rpath-link=tmpdir -Ltmpdir -lneeded1a"]
|
||||
if { [ regexp "'bar' is defined in DSO tmpdir/libneeded1b.so" $exec_output ] } {
|
||||
if { [ regexp "tmpdir/libneeded1b.so: .*: DSO missing" $exec_output ] } {
|
||||
pass $testname
|
||||
} {
|
||||
fail $testname
|
||||
|
Loading…
Reference in New Issue
Block a user