This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Sorting in nm and testsuite
- From: "H. J. Lu" <hjl at lucon dot org>
- To: chinen at jp dot ibm dot com, amodra at bigpond dot net dot au
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 25 Jun 2002 09:34:22 -0700
- Subject: Sorting in nm and testsuite
There is a problem with
http://sources.redhat.com/ml/binutils/2002-06/msg00594.html
Now the output from nm may be locale dependent. It causes the problem
with "make check" in gas:
../as-new -o dump.o
/home/hjl/work/linux/import/binutils/gas/testsuite/gas/symver/symver1.s
/export/build/gnu/binutils/build-full-i686-linux/gas/testsuite/../../binutils/nm-new
-n dump.o > dump.out
regexp_diff match failure
regexp "^0+00000.. d L_foo1$"
line "00000004 D foo2"
regexp_diff match failure
regexp "^0+00000.. D foo2$"
line "00000004 D foo2@@version1"
regexp_diff match failure
regexp "^0+00000.. D foo2@@version1$"
line "00000004 d L_foo1"
FAIL: symver symver1
It may also cause problems for other scripts. I don't know what is the
best way to deal with it. Shouldn't we introduce a new option,
-L|--sort-locale?
H.J.