This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: try adding it to the command line
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 5 Apr 2013 01:23:14 +1030
- Subject: Re: try adding it to the command line
- References: <20130404143930 dot GF27605 at bubble dot grove dot modra dot org>
On Fri, Apr 05, 2013 at 01:09:30AM +1030, Alan Modra wrote:
> This is a fix for the complaint in
> http://sourceware.org/bugzilla/show_bug.cgi?id=15126#c14
> about the current ld error issued for dependent libs found to satisfy
> references.
And this too.
ld/testsuite/
* ld-elf/shared.exp: Update regexp on --no-add-needed and
--no-copy-dt-needed-entries tests.
Index: ld/testsuite/ld-elf/shared.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/shared.exp,v
retrieving revision 1.27
diff -u -p -r1.27 shared.exp
--- ld/testsuite/ld-elf/shared.exp 20 Mar 2013 03:44:56 -0000 1.27
+++ ld/testsuite/ld-elf/shared.exp 4 Apr 2013 14:48:13 -0000
@@ -361,14 +361,14 @@ run_ld_link_exec_tests [list "*-*-netbsd
# 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
--
Alan Modra
Australia Development Lab, IBM