This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: preparing for binutils 2.10
- To: Philip Blundell <Philip dot Blundell at pobox dot com>
- Subject: Re: preparing for binutils 2.10
- From: Andreas Jaeger <aj at suse dot de>
- Date: 09 Mar 2000 11:54:58 +0100
- Cc: binutils at sourceware dot cygnus dot com
- References: <E12T0BK-0000XT-00@kings-cross.london.uk.eu.org>
HI Philip,
>>>>> Philip Blundell writes:
P> Hi Andreas
>> Should we send the results directly to you?
P> I think that's best. There is no binutils-testresults mailing list and the
P> readers of the main binutils list probably don't want to be flooded with
P> results.
>> Here they're for i686-linux-gnu.
P> Thanks.
>> Running target unix
>> FAIL: ar with versioned solib
P> Can you see what the failure is here?
This is the output from the log file:
/usr/src/build-binutils/ld/../binutils/ar -cr tmpdir/vers13.a tmpdir/vers1.so
/usr/src/build-binutils/ld/../binutils/nm-new --print-armap tmpdir/vers13.a | grep " in " | egrep "VERS\|bar\|foo" | sort > tmpdir/nm.out
Files tmpdir/nm.out and /cvs/binutils-gdb-ln/ld/testsuite/ld-elfvers/vers13.asym
differ
child process exited abnormally
FAIL: ar with versioned solib
If I run instead:
/usr/src/build-binutils/ld/../binutils/ar -cr tmpdir/vers13.a tmpdir/vers1.so
/usr/src/build-binutils/ld/../binutils/nm-new --print-armap tmpdir/vers13.a| grep " in " |sort
bar in vers1.so
__bss_start in vers1.so
_DYNAMIC in vers1.so
_edata in vers1.so
_end in vers1.so
_etext in vers1.so
_GLOBAL_OFFSET_TABLE_ in vers1.so
show_bar1 in vers1.so
show_bar2 in vers1.so
show_foo@ in vers1.so
show_foo@VERS_1.1 in vers1.so
show_foo@VERS_1.2 in vers1.so
show_foo@@VERS_2.0 in vers1.so
VERS_1.1 in vers1.so
VERS_1.2 in vers1.so
VERS_2.0 in vers1.so
The egrep is wrong - it uses one backslash too many! A patch is appended.
Another problem is that I've got LANG set to german and therefore
LC_COLLATE is different than expected. Can we set LC_COLLATE to "C"
for the tests (what's the best place to do so)?
Andreas
P.S. I've CC'ed binutils again since I'm including a patch.
2000-03-09 Andreas Jaeger <aj@suse.de>
* ld-elfvers/vers.exp (test_ar): Fix quoting of egrep.
Index: ld/testsuite/ld-elfvers/vers.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elfvers/vers.exp,v
retrieving revision 1.4
diff -u -u -r1.4 vers.exp
--- vers.exp 1999/08/09 14:49:32 1.4
+++ vers.exp 2000/03/09 10:51:51
@@ -78,7 +78,7 @@
verbose -log "$nm --print-armap $tmpdir/$lib | grep \" in \" | egrep \"VERS\\|bar\\|foo\" | sort > $tmpdir/nm.out"
- catch "exec $nm --print-armap $tmpdir/$lib | grep \\\ in\\\ | egrep VERS\\\|bar\\\|foo | sort > $tmpdir/nm.out" exec_output
+ catch "exec $nm --print-armap $tmpdir/$lib | grep \\\ in\\\ | egrep VERS\\|bar\\|foo | sort > $tmpdir/nm.out" exec_output
if [string match "" $exec_output] then {
catch "exec $diff -q $tmpdir/nm.out $srcdir/$subdir/$expect" exec_output
set exec_output [prune_warnings $exec_output]
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de