This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: cris-elf testsuite fails (was: Re: Removing empty sections)
On Fri, Jun 10, 2005 at 11:27:13AM +0930, Alan Modra wrote:
> On Thu, Jun 09, 2005 at 09:36:20PM -0400, Hans-Peter Nilsson wrote:
> > FAIL: ld-cris/libdso-10
> > FAIL: ld-cris/libdso-2
>
> Huh, I guess so. I'd better run the testsuite on other ELF targets too.
> There are probably other testcases where .bss now is trimmed.
I found only one other failure, ld-mmix/loc6. Hopefully there are no
native-only tests that need tweaking. If so, the respective maintainers
will need to do that for me.
* ld-cris/libdso-10.d: Adjust for elf.sc .bss change.
* ld-cris/libdso-2.d: Likewise.
* ld-mmix/loc6.d: Likewise.
Index: ld/testsuite/ld-cris/libdso-10.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-cris/libdso-10.d,v
retrieving revision 1.6
diff -u -p -r1.6 libdso-10.d
--- ld/testsuite/ld-cris/libdso-10.d 5 Jun 2005 15:28:36 -0000 1.6
+++ ld/testsuite/ld-cris/libdso-10.d 10 Jun 2005 07:12:18 -0000
@@ -11,7 +11,7 @@ Program Header:
LOAD off 0x0+ vaddr 0x0+ paddr 0x0+ align 2\*\*13
filesz 0x0+188 memsz 0x0+188 flags r-x
LOAD off 0x0+188 vaddr 0x0+2188 paddr 0x0+2188 align 2\*\*13
- filesz 0x0+64 memsz 0x0+78 flags rw-
+ filesz 0x0+64 memsz 0x0+64 flags rw-
DYNAMIC off 0x0+188 vaddr 0x0+2188 paddr 0x0+2188 align 2\*\*2
filesz 0x0+58 memsz 0x0+58 flags rw-
Dynamic Section:
@@ -35,5 +35,3 @@ Idx Name Size VMA LM
CONTENTS, ALLOC, LOAD, DATA
5 \.got 0+c 0+21e0 0+21e0 0+1e0 2\*\*2
CONTENTS, ALLOC, LOAD, DATA
- 6 \.bss 0+14 0+21ec 0+21ec 0+1ec 2\*\*0
- ALLOC
Index: ld/testsuite/ld-cris/libdso-2.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-cris/libdso-2.d,v
retrieving revision 1.9
diff -u -p -r1.9 libdso-2.d
--- ld/testsuite/ld-cris/libdso-2.d 5 Jun 2005 15:28:36 -0000 1.9
+++ ld/testsuite/ld-cris/libdso-2.d 10 Jun 2005 07:12:18 -0000
@@ -10,7 +10,7 @@
# entries. This formerly SEGV:ed because .rela.got was created
# too late to have it mapped to an output section.
-There are 14 section headers.*
+There are 13 section headers.*
#...
\[ 1\] \.hash HASH .*
\[ 2\] \.dynsym DYNSYM .*
@@ -21,10 +21,9 @@ There are 14 section headers.*
\[ 7\] \.text PROGBITS .*
\[ 8\] \.dynamic DYNAMIC .*
\[ 9\] \.got PROGBITS .*
- \[10\] \.bss NOBITS .*
- \[11\] \.shstrtab STRTAB .*
- \[12\] \.symtab SYMTAB .*
- \[13\] \.strtab STRTAB .*
+ \[10\] \.shstrtab STRTAB .*
+ \[11\] \.symtab SYMTAB .*
+ \[12\] \.strtab STRTAB .*
#...
Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
#...
@@ -35,11 +34,11 @@ Symbol table '\.dynsym' contains 6 entri
0: 0+ 0 NOTYPE LOCAL DEFAULT UND
1: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 7
2: [0-9a-f]+ 0 NOTYPE LOCAL DEFAULT UND
- 3: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 10
+ 3: [0-9a-f]+ 0 NOTYPE LOCAL DEFAULT UND
4: 0+ 0 OBJECT GLOBAL DEFAULT ABS TST1
5: 0+188 0 FUNC GLOBAL DEFAULT 7 export_1@@TST1
-Symbol table '\.symtab' contains 22 entries:
+Symbol table '\.symtab' contains 21 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0+ 0 NOTYPE LOCAL DEFAULT UND
1: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 1
@@ -54,12 +53,11 @@ Symbol table '\.symtab' contains 22 entr
10: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 10
11: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 11
12: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 12
- 13: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 13
- 14: 0+2198 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC
- 15: 0+2230 0 NOTYPE LOCAL DEFAULT ABS __bss_start
- 16: 0+2230 0 NOTYPE LOCAL DEFAULT ABS _edata
- 17: 0+2220 0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_
- 18: 0+2240 0 NOTYPE LOCAL DEFAULT ABS _end
- 19: 0+184 0 FUNC LOCAL DEFAULT 7 dsofn
- 20: 0+ 0 OBJECT GLOBAL DEFAULT ABS TST1
- 21: 0+188 0 FUNC GLOBAL DEFAULT 7 export_1
+ 13: 0+2198 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC
+ 14: 0+2230 0 NOTYPE LOCAL DEFAULT ABS __bss_start
+ 15: 0+2230 0 NOTYPE LOCAL DEFAULT ABS _edata
+ 16: 0+2220 0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_
+ 17: 0+2240 0 NOTYPE LOCAL DEFAULT ABS _end
+ 18: 0+184 0 FUNC LOCAL DEFAULT 7 dsofn
+ 19: 0+ 0 OBJECT GLOBAL DEFAULT ABS TST1
+ 20: 0+188 0 FUNC GLOBAL DEFAULT 7 export_1
Index: ld/testsuite/ld-mmix/loc6.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/loc6.d,v
retrieving revision 1.6
diff -u -p -r1.6 loc6.d
--- ld/testsuite/ld-mmix/loc6.d 20 Mar 2005 17:00:14 -0000 1.6
+++ ld/testsuite/ld-mmix/loc6.d 10 Jun 2005 07:12:18 -0000
@@ -10,7 +10,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
2000000000000200 l d \.data 0+ (|\.data)
-200000000000020c l d \.bss 0+ (|\.bss)
0+ l d \*ABS\* 0+ (|\.shstrtab)
0+ l d \*ABS\* 0+ (|\.symtab)
0+ l d \*ABS\* 0+ (|\.strtab)
--
Alan Modra
IBM OzLabs - Linux Technology Centre