This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: branch failing readelf -s test for mips-elf
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- To: cgd at broadcom dot com
- Cc: binutils at sources dot redhat dot com
- Date: 12 Feb 2002 09:57:09 +0000
- Subject: Re: branch failing readelf -s test for mips-elf
- References: <yov5y9hzme0x.fsf@broadcom.com>
Hi Chris,
> target mips-elf, host x86-linux, fails "readelf -s" test.
>
> Anybody else seeing this?
>
> regexp_diff match failure
> regexp "^ 2: 00000000 0 SECTION LOCAL DEFAULT 4 $"
> line " 2: 00000000 0 SECTION LOCAL DEFAULT 3 "
Yup I get this too. The patch below removes the failure by not
expecting an explicit ordering for the sections.
Anyone object to applying this ?
Cheers
Nick
2002-02-12 Nick Clifton <nickc@cambridge.redhat.com>
* binutils-all/readelf.ss-mips: Do not expect an explicit
ordering of the sections.
Index: binutils/testsuite/binutils-all/readelf.ss-mips
===================================================================
RCS file: /cvs/src/src/binutils/testsuite/binutils-all/readelf.ss-mips,v
retrieving revision 1.2
diff -c -3 -p -w -r1.2 readelf.ss-mips
*** readelf.ss-mips 2001/06/07 16:46:38 1.2
--- readelf.ss-mips 2002/02/12 09:55:13
***************
*** 2,15 ****
Symbol table '.symtab' contains 12 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
! 1: 00000000 0 SECTION LOCAL DEFAULT 1
! 2: 00000000 0 SECTION LOCAL DEFAULT 4
! 3: 00000000 0 SECTION LOCAL DEFAULT 5
! 4: 00000000 0 SECTION LOCAL DEFAULT 6
! 5: 00000000 0 SECTION LOCAL DEFAULT 7
! 6: 00000000 0 OBJECT GLOBAL DEFAULT 1 text_symbol
! 7: 00000000 0 NOTYPE LOCAL DEFAULT 1 static_text_symbol
8: 00000000 0 NOTYPE GLOBAL DEFAULT UND external_symbol
! 9: 00000000 0 OBJECT GLOBAL DEFAULT 4 data_symbol
! 10: 00000000 0 NOTYPE LOCAL DEFAULT 4 static_data_symbol
11: 00000004 4 OBJECT GLOBAL DEFAULT (PRC|COM) common_symbol
--- 2,15 ----
Symbol table '.symtab' contains 12 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
! 1: 00000000 0 SECTION LOCAL DEFAULT .
! 2: 00000000 0 SECTION LOCAL DEFAULT .
! 3: 00000000 0 SECTION LOCAL DEFAULT .
! 4: 00000000 0 SECTION LOCAL DEFAULT .
! 5: 00000000 0 SECTION LOCAL DEFAULT .
! 6: 00000000 0 OBJECT GLOBAL DEFAULT . text_symbol
! 7: 00000000 0 NOTYPE LOCAL DEFAULT . static_text_symbol
8: 00000000 0 NOTYPE GLOBAL DEFAULT UND external_symbol
! 9: 00000000 0 OBJECT GLOBAL DEFAULT . data_symbol
! 10: 00000000 0 NOTYPE LOCAL DEFAULT . static_data_symbol
11: 00000004 4 OBJECT GLOBAL DEFAULT (PRC|COM) common_symbol