This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]