* Do we need section symbols for .shstrtab, .symtab, .strtab?
@ 2006-06-01 0:41 H. J. Lu
2006-06-01 2:52 ` Alan Modra
0 siblings, 1 reply; 7+ messages in thread
From: H. J. Lu @ 2006-06-01 0:41 UTC (permalink / raw)
To: binutils
I got
hjl@gnu-10 tmp]$ cat x.c
_start ()
{
}
[hjl@gnu-10 tmp]$ gcc -c x.c
[hjl@gnu-10 tmp]$ readelf -sS x.o
There are 9 section headers, starting at offset 0xb0:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .text PROGBITS 00000000 000034 000005 00 AX 0 0 4
[ 2] .data PROGBITS 00000000 00003c 000000 00 WA 0 0 4
[ 3] .bss NOBITS 00000000 00003c 000000 00 WA 0 0 4
[ 4] .comment PROGBITS 00000000 00003c 00002d 00 0 0 1
[ 5] .note.GNU-stack PROGBITS 00000000 000069 000000 00 0 0 1
[ 6] .shstrtab STRTAB 00000000 000069 000045 00 0 0 1
[ 7] .symtab SYMTAB 00000000 000218 000080 10 8 7 4
[ 8] .strtab STRTAB 00000000 000298 00000c 00 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
Symbol table '.symtab' contains 8 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000 0 FILE LOCAL DEFAULT ABS x.c
2: 00000000 0 SECTION LOCAL DEFAULT 1
3: 00000000 0 SECTION LOCAL DEFAULT 2
4: 00000000 0 SECTION LOCAL DEFAULT 3
5: 00000000 0 SECTION LOCAL DEFAULT 5
6: 00000000 0 SECTION LOCAL DEFAULT 4
7: 00000000 5 FUNC GLOBAL DEFAULT 1 _start
[hjl@gnu-10 tmp]$ ld x.o
[hjl@gnu-10 tmp]$ readelf -sS a.out
There are 6 section headers, starting at offset 0xf0:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .text PROGBITS 08048094 000094 000005 00 AX 0 0 4
[ 2] .comment PROGBITS 00000000 000099 00002d 00 0 0 1
[ 3] .shstrtab STRTAB 00000000 0000c6 00002a 00 0 0 1
[ 4] .symtab SYMTAB 00000000 0001e0 0000b0 10 5 7 4
[ 5] .strtab STRTAB 00000000 000290 000024 00 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
Symbol table '.symtab' contains 11 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 08048094 0 SECTION LOCAL DEFAULT 1
2: 00000000 0 SECTION LOCAL DEFAULT 2
3: 00000000 0 SECTION LOCAL DEFAULT 3
4: 00000000 0 SECTION LOCAL DEFAULT 4
5: 00000000 0 SECTION LOCAL DEFAULT 5
6: 00000000 0 FILE LOCAL DEFAULT ABS x.c
7: 08048094 5 FUNC GLOBAL DEFAULT 1 _start
8: 08049099 0 NOTYPE GLOBAL DEFAULT ABS __bss_start
9: 08049099 0 NOTYPE GLOBAL DEFAULT ABS _edata
10: 0804909c 0 NOTYPE GLOBAL DEFAULT ABS _end
Do we need section symbols for .shstrtab, .symtab, .strtab in
executable and shared library?
H.J.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Do we need section symbols for .shstrtab, .symtab, .strtab?
2006-06-01 0:41 Do we need section symbols for .shstrtab, .symtab, .strtab? H. J. Lu
@ 2006-06-01 2:52 ` Alan Modra
2006-06-01 5:37 ` H. J. Lu
2006-06-02 0:35 ` PATCH: PR ld/2723: ld puts unused section symbols in symbol table H. J. Lu
0 siblings, 2 replies; 7+ messages in thread
From: Alan Modra @ 2006-06-01 2:52 UTC (permalink / raw)
To: H. J. Lu; +Cc: binutils
On Wed, May 31, 2006 at 05:40:53PM -0700, H. J. Lu wrote:
> Do we need section symbols for .shstrtab, .symtab, .strtab in
> executable and shared library?
I don't think so. In fact, we probably don't need any section syms in
the normal symtab if not emitting relocs. Hmm, unless gdb (or other
tools like oprofile) use them for something.. Getting rid of the syms
in special elf sections is easy, but unfortunately means fixing rather a
lot of ld tests that match the symbol table.
Index: bfd/elflink.c
===================================================================
RCS file: /cvs/src/src/bfd/elflink.c,v
retrieving revision 1.216
diff -u -p -r1.216 elflink.c
--- bfd/elflink.c 24 May 2006 17:10:01 -0000 1.216
+++ bfd/elflink.c 1 Jun 2006 02:31:20 -0000
@@ -8128,10 +8128,11 @@ bfd_elf_final_link (bfd *abfd, struct bf
for (i = 1; i < elf_numsections (abfd); i++)
{
o = bfd_section_from_elf_index (abfd, i);
- if (o != NULL)
- o->target_index = bfd_get_symcount (abfd);
+ if (o == NULL)
+ continue;
+ o->target_index = bfd_get_symcount (abfd);
elfsym.st_shndx = i;
- if (info->relocatable || o == NULL)
+ if (info->relocatable)
elfsym.st_value = 0;
else
elfsym.st_value = o->vma;
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Do we need section symbols for .shstrtab, .symtab, .strtab?
2006-06-01 2:52 ` Alan Modra
@ 2006-06-01 5:37 ` H. J. Lu
2006-06-01 6:08 ` Alan Modra
2006-06-02 0:35 ` PATCH: PR ld/2723: ld puts unused section symbols in symbol table H. J. Lu
1 sibling, 1 reply; 7+ messages in thread
From: H. J. Lu @ 2006-06-01 5:37 UTC (permalink / raw)
To: binutils
On Thu, Jun 01, 2006 at 12:22:11PM +0930, Alan Modra wrote:
> On Wed, May 31, 2006 at 05:40:53PM -0700, H. J. Lu wrote:
> > Do we need section symbols for .shstrtab, .symtab, .strtab in
> > executable and shared library?
>
> I don't think so. In fact, we probably don't need any section syms in
> the normal symtab if not emitting relocs. Hmm, unless gdb (or other
> tools like oprofile) use them for something.. Getting rid of the syms
objcopy/strip already remove them since
http://sourceware.org/ml/binutils/2006-05/msg00458.html
> in special elf sections is easy, but unfortunately means fixing rather a
> lot of ld tests that match the symbol table.
I don't think it should block removing unused entries in symbol table.
>
> Index: bfd/elflink.c
> ===================================================================
> RCS file: /cvs/src/src/bfd/elflink.c,v
> retrieving revision 1.216
> diff -u -p -r1.216 elflink.c
> --- bfd/elflink.c 24 May 2006 17:10:01 -0000 1.216
> +++ bfd/elflink.c 1 Jun 2006 02:31:20 -0000
> @@ -8128,10 +8128,11 @@ bfd_elf_final_link (bfd *abfd, struct bf
> for (i = 1; i < elf_numsections (abfd); i++)
> {
> o = bfd_section_from_elf_index (abfd, i);
> - if (o != NULL)
> - o->target_index = bfd_get_symcount (abfd);
> + if (o == NULL)
> + continue;
I don't think it is correct. It will skip SHN_LORESERVE/SHN_HIRESERVE
adjustment.
> + o->target_index = bfd_get_symcount (abfd);
> elfsym.st_shndx = i;
> - if (info->relocatable || o == NULL)
> + if (info->relocatable)
> elfsym.st_value = 0;
> else
> elfsym.st_value = o->vma;
>
H.J.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Do we need section symbols for .shstrtab, .symtab, .strtab?
2006-06-01 5:37 ` H. J. Lu
@ 2006-06-01 6:08 ` Alan Modra
0 siblings, 0 replies; 7+ messages in thread
From: Alan Modra @ 2006-06-01 6:08 UTC (permalink / raw)
To: H. J. Lu; +Cc: binutils
On Wed, May 31, 2006 at 10:36:59PM -0700, H. J. Lu wrote:
> I don't think it is correct. It will skip SHN_LORESERVE/SHN_HIRESERVE
> adjustment.
Oops, yes. I didn't intend to commit without testsuite changes
anyway.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 7+ messages in thread
* PATCH: PR ld/2723: ld puts unused section symbols in symbol table
2006-06-01 2:52 ` Alan Modra
2006-06-01 5:37 ` H. J. Lu
@ 2006-06-02 0:35 ` H. J. Lu
2006-06-02 2:30 ` Alan Modra
1 sibling, 1 reply; 7+ messages in thread
From: H. J. Lu @ 2006-06-02 0:35 UTC (permalink / raw)
To: binutils
On Thu, Jun 01, 2006 at 12:22:11PM +0930, Alan Modra wrote:
> On Wed, May 31, 2006 at 05:40:53PM -0700, H. J. Lu wrote:
> > Do we need section symbols for .shstrtab, .symtab, .strtab in
> > executable and shared library?
>
> I don't think so. In fact, we probably don't need any section syms in
> the normal symtab if not emitting relocs. Hmm, unless gdb (or other
> tools like oprofile) use them for something.. Getting rid of the syms
> in special elf sections is easy, but unfortunately means fixing rather a
> lot of ld tests that match the symbol table.
>
Here is the patch. It just makes ld close to objcopy when handling
section symbols.
H.J.
----
bfd/
2006-06-01 Alan Modra <amodra@bigpond.net.au>
PR ld/2723
* elflink.c (bfd_elf_final_link): Don't output section symbols
if there is no BFD section.
ld/testsuite/
2006-06-01 H.J. Lu <hongjiu.lu@intel.com>
PR ld/2723
* ld-alpha/tlsbin.rd: Updated.
* ld-alpha/tlsbinr.rd: Likewise.
* ld-alpha/tlspic.rd: Likewise.
* ld-cris/hiddef1.d: Likewise.
* ld-cris/libdso-2.d: Likewise.
* ld-elf/sec64k.exp: Likewise.
* ld-i386/tlsbin.rd: Likewise.
* ld-i386/tlsbindesc.rd: Likewise.
* ld-i386/tlsdesc.rd: Likewise.
* ld-i386/tlsgdesc.rd: Likewise.
* ld-i386/tlsnopic.rd: Likewise.
* ld-i386/tlspic.rd: Likewise.
* ld-ia64/tlsbin.rd: Likewise.
* ld-ia64/tlspic.rd: Likewise.
* ld-mmix/bpo-1.d: Likewise.
* ld-mmix/bpo-10.d: Likewise.
* ld-mmix/bpo-11.d: Likewise.
* ld-mmix/bpo-14.d: Likewise.
* ld-mmix/bpo-16.d: Likewise.
* ld-mmix/bpo-17.d: Likewise.
* ld-mmix/bpo-18.d: Likewise.
* ld-mmix/bpo-19.d: Likewise.
* ld-mmix/bpo-2.d: Likewise.
* ld-mmix/bpo-22.d: Likewise.
* ld-mmix/bpo-3.d: Likewise.
* ld-mmix/bpo-4.d: Likewise.
* ld-mmix/bpo-5.d: Likewise.
* ld-mmix/bpo-6.d: Likewise.
* ld-mmix/bpo-9.d: Likewise.
* ld-mmix/bspec1.d: Likewise.
* ld-mmix/bspec2.d: Likewise.
* ld-mmix/greg-1.d: Likewise.
* ld-mmix/greg-19.d: Likewise.
* ld-mmix/greg-2.d: Likewise.
* ld-mmix/greg-3.d: Likewise.
* ld-mmix/greg-4.d: Likewise.
* ld-mmix/greg-5.d: Likewise.
* ld-mmix/greg-5s.d: Likewise.
* ld-mmix/greg-6.d: Likewise.
* ld-mmix/greg-7.d: Likewise.
* ld-mmix/loc1.d: Likewise.
* ld-mmix/loc2.d: Likewise.
* ld-mmix/loc3.d: Likewise.
* ld-mmix/loc4.d: Likewise.
* ld-mmix/loc6.d: Likewise.
* ld-mmix/local1.d: Likewise.
* ld-mmix/local3.d: Likewise.
* ld-mmix/local5.d: Likewise.
* ld-mmix/local7.d: Likewise.
* ld-mmix/locdo-1.d: Likewise.
* ld-mmix/loct-1.d: Likewise.
* ld-mmix/locto-1.d: Likewise.
* ld-mmix/start-1.d: Likewise.
* ld-mmix/undef-3.d: Likewise.
* ld-powerpc/tlsexe32.r: Likewise.
* ld-powerpc/tlsso32.r: Likewise.
* ld-s390/tlsbin.rd: Likewise.
* ld-s390/tlspic.rd: Likewise.
* ld-sparc/tlssunbin32.rd: Likewise.
* ld-sparc/tlssunbin64.rd: Likewise.
* ld-sparc/tlssunnopic32.rd: Likewise.
* ld-sparc/tlssunnopic64.rd: Likewise.
* ld-sparc/tlssunpic32.rd: Likewise.
* ld-sparc/tlssunpic64.rd: Likewise.
* ld-x86-64/tlsbin.rd: Likewise.
* ld-x86-64/tlsbindesc.rd: Likewise.
* ld-x86-64/tlsdesc.rd: Likewise.
* ld-x86-64/tlsgdesc.rd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.
--- binutils/bfd/elflink.c.section 2006-06-01 09:17:22.000000000 -0700
+++ binutils/bfd/elflink.c 2006-06-01 09:53:30.000000000 -0700
@@ -8142,14 +8142,16 @@ bfd_elf_final_link (bfd *abfd, struct bf
{
o = bfd_section_from_elf_index (abfd, i);
if (o != NULL)
- o->target_index = bfd_get_symcount (abfd);
- elfsym.st_shndx = i;
- if (info->relocatable || o == NULL)
- elfsym.st_value = 0;
- else
- elfsym.st_value = o->vma;
- if (! elf_link_output_sym (&finfo, NULL, &elfsym, o, NULL))
- goto error_return;
+ {
+ o->target_index = bfd_get_symcount (abfd);
+ elfsym.st_shndx = i;
+ if (info->relocatable)
+ elfsym.st_value = 0;
+ else
+ elfsym.st_value = o->vma;
+ if (! elf_link_output_sym (&finfo, NULL, &elfsym, o, NULL))
+ goto error_return;
+ }
if (i == SHN_LORESERVE - 1)
i += SHN_HIRESERVE + 1 - SHN_LORESERVE;
}
--- binutils/ld/testsuite/ld-alpha/tlsbin.rd.section 2006-04-25 18:22:03.000000000 -0700
+++ binutils/ld/testsuite/ld-alpha/tlsbin.rd 2006-06-01 12:06:41.000000000 -0700
@@ -80,9 +80,6 @@ Symbol table '.symtab' contains [0-9]+ e
[0-9 ]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +11
[0-9 ]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +12
[0-9 ]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +13
-[0-9 ]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +14
-[0-9 ]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +15
-[0-9 ]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +16
[0-9 ]+: [0-9a-f]+ +0 TLS +LOCAL +DEFAULT +9 sl1
[0-9 ]+: [0-9a-f]+ +0 TLS +LOCAL +DEFAULT +9 sl2
[0-9 ]+: [0-9a-f]+ +0 TLS +LOCAL +DEFAULT +9 sl3
--- binutils/ld/testsuite/ld-alpha/tlsbinr.rd.section 2006-04-25 18:22:03.000000000 -0700
+++ binutils/ld/testsuite/ld-alpha/tlsbinr.rd 2006-06-01 12:07:02.000000000 -0700
@@ -75,9 +75,6 @@ Symbol table '.symtab' contains [0-9]+ e
[0-9 ]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +11
[0-9 ]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +12
[0-9 ]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +13
-[0-9 ]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +14
-[0-9 ]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +15
-[0-9 ]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +16
[0-9 ]+: [0-9a-f]+ +0 TLS +LOCAL +DEFAULT +9 sl1
[0-9 ]+: [0-9a-f]+ +0 TLS +LOCAL +DEFAULT +9 sl2
[0-9 ]+: [0-9a-f]+ +0 TLS +LOCAL +DEFAULT +9 sl3
--- binutils/ld/testsuite/ld-alpha/tlspic.rd.section 2006-04-25 18:22:03.000000000 -0700
+++ binutils/ld/testsuite/ld-alpha/tlspic.rd 2006-06-01 12:06:26.000000000 -0700
@@ -90,9 +90,6 @@ Symbol table '.symtab' contains [0-9]+ e
.* [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +10
.* [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +11
.* [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +12
-.* [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +13
-.* [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +14
-.* [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +15
.* [0-9a-f]+ +0 TLS +LOCAL +DEFAULT +8 sl1
.* [0-9a-f]+ +0 TLS +LOCAL +DEFAULT +8 sl2
.* [0-9a-f]+ +0 TLS +LOCAL +DEFAULT +8 sl3
--- binutils/ld/testsuite/ld-cris/hiddef1.d.section 2005-08-24 08:27:13.000000000 -0700
+++ binutils/ld/testsuite/ld-cris/hiddef1.d 2006-06-01 12:05:23.000000000 -0700
@@ -24,5 +24,5 @@ Relocation section '\.rela\.dyn' at offs
#...
Symbol table '\.dynsym' contains 6 entries:
#...
-Symbol table '\.symtab' contains 19 entries:
+Symbol table '\.symtab' contains 16 entries:
#pass
--- binutils/ld/testsuite/ld-cris/libdso-2.d.section 2005-08-24 08:27:13.000000000 -0700
+++ binutils/ld/testsuite/ld-cris/libdso-2.d 2006-06-01 12:04:59.000000000 -0700
@@ -36,7 +36,7 @@ Symbol table '\.dynsym' contains 4 entri
2: 0+ 0 OBJECT GLOBAL DEFAULT ABS TST1
3: 0+15c 0 FUNC GLOBAL DEFAULT 7 export_1@@TST1
-Symbol table '\.symtab' contains 21 entries:
+Symbol table '\.symtab' contains 18 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
@@ -48,14 +48,11 @@ Symbol table '\.symtab' contains 21 entr
7: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 7
8: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 8
9: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 9
- 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+216c 0 OBJECT LOCAL HIDDEN ABS _DYNAMIC
- 14: 0+2204 0 NOTYPE LOCAL DEFAULT ABS __bss_start
- 15: 0+2204 0 NOTYPE LOCAL DEFAULT ABS _edata
- 16: 0+21f4 0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_
- 17: 0+2220 0 NOTYPE LOCAL DEFAULT ABS _end
- 18: 0+158 0 FUNC LOCAL DEFAULT 7 dsofn
- 19: 0+ 0 OBJECT GLOBAL DEFAULT ABS TST1
- 20: 0+15c 0 FUNC GLOBAL DEFAULT 7 export_1
+ 10: 0+216c 0 OBJECT LOCAL HIDDEN ABS _DYNAMIC
+ 11: 0+2204 0 NOTYPE LOCAL DEFAULT ABS __bss_start
+ 12: 0+2204 0 NOTYPE LOCAL DEFAULT ABS _edata
+ 13: 0+21f4 0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_
+ 14: 0+2220 0 NOTYPE LOCAL DEFAULT ABS _end
+ 15: 0+158 0 FUNC LOCAL DEFAULT 7 dsofn
+ 16: 0+ 0 OBJECT GLOBAL DEFAULT ABS TST1
+ 17: 0+15c 0 FUNC GLOBAL DEFAULT 7 export_1
--- binutils/ld/testsuite/ld-elf/sec64k.exp.section 2006-06-01 09:17:22.000000000 -0700
+++ binutils/ld/testsuite/ld-elf/sec64k.exp 2006-06-01 10:55:39.000000000 -0700
@@ -106,9 +106,9 @@ puts $ofd "#..."
puts $ofd " \\\[65279\\\] (.rel\[a\]?)?\\.foo\\.\[0-9\]+ .*"
puts $ofd " \\\[65536\\\] (.rel\[a\]?)?\\.foo\\.\[0-9\]+ .*"
puts $ofd "#..."
-puts $ofd " 680..: 0+\[ \]+0\[ \]+SECTION\[ \]+LOCAL\[ \]+DEFAULT\[ \]+68... "
+puts $ofd " 340..: 0+\[ \]+0\[ \]+SECTION\[ \]+LOCAL\[ \]+DEFAULT\[ \]+68... "
puts $ofd "#..."
-puts $ofd " 680..: 0+4\[ \]+0\[ \]+NOTYPE\[ \]+LOCAL\[ \]+DEFAULT\[ \]+\[23\] bar_1"
+puts $ofd " 340..: 0+4\[ \]+0\[ \]+NOTYPE\[ \]+LOCAL\[ \]+DEFAULT\[ \]+\[23\] bar_1"
puts $ofd "#..."
puts $ofd ".* bar_34000"
puts $ofd "#..."
@@ -137,7 +137,7 @@ puts $ofd "#..."
puts $ofd " \\\[65279\\\] \\.foo\\.\[0-9\]+ .*"
puts $ofd " \\\[65536\\\] \\.foo\\.\[0-9\]+ .*"
puts $ofd "#..."
-puts $ofd " 660..: 0+\[ \]+0\[ \]+SECTION\[ \]+LOCAL\[ \]+DEFAULT\[ \]+662.. "
+puts $ofd " 660..: \[0-9a-f\]+\[ \]+0\[ \]+SECTION\[ \]+LOCAL\[ \]+DEFAULT\[ \]+662.. "
puts $ofd "#..."
puts $ofd " 660..: \[0-9a-f\]+\[ \]+0\[ \]+NOTYPE\[ \]+LOCAL\[ \]+DEFAULT\[ \]+\[0-9\] bar_1"
puts $ofd "#..."
--- binutils/ld/testsuite/ld-i386/tlsbin.rd.section 2006-02-02 14:57:50.000000000 -0800
+++ binutils/ld/testsuite/ld-i386/tlsbin.rd 2006-06-01 11:19:47.000000000 -0700
@@ -86,7 +86,7 @@ Symbol table '.dynsym' contains 13 entri
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG8
+[0-9]+: [0-9a-f]+ +0 FUNC +GLOBAL DEFAULT UND ___tls_get_addr
-Symbol table '.symtab' contains 73 entries:
+Symbol table '.symtab' contains 70 entries:
+Num: +Value Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +1 *
@@ -102,9 +102,6 @@ Symbol table '.symtab' contains 73 entri
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +11 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +12 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +13 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +14 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +15 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +16 *
+[0-9]+: 00000020 +0 TLS +LOCAL DEFAULT +9 sl1
+[0-9]+: 00000024 +0 TLS +LOCAL DEFAULT +9 sl2
+[0-9]+: 00000028 +0 TLS +LOCAL DEFAULT +9 sl3
--- binutils/ld/testsuite/ld-i386/tlsbindesc.rd.section 2006-02-02 14:57:50.000000000 -0800
+++ binutils/ld/testsuite/ld-i386/tlsbindesc.rd 2006-06-01 11:27:36.000000000 -0700
@@ -79,7 +79,7 @@ Symbol table '.dynsym' contains 12 entri
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG8
-Symbol table '.symtab' contains 71 entries:
+Symbol table '.symtab' contains 68 entries:
+Num: +Value Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +1 *
@@ -93,9 +93,6 @@ Symbol table '.symtab' contains 71 entri
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +9 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +10 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +11 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +12 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +13 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +14 *
+[0-9]+: 00000020 +0 TLS +LOCAL DEFAULT +7 sl1
+[0-9]+: 00000024 +0 TLS +LOCAL DEFAULT +7 sl2
+[0-9]+: 00000028 +0 TLS +LOCAL DEFAULT +7 sl3
--- binutils/ld/testsuite/ld-i386/tlsdesc.rd.section 2006-02-02 14:57:50.000000000 -0800
+++ binutils/ld/testsuite/ld-i386/tlsdesc.rd 2006-06-01 11:19:27.000000000 -0700
@@ -97,7 +97,7 @@ Symbol table '.dynsym' contains 16 entri
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
-Symbol table '.symtab' contains 54 entries:
+Symbol table '.symtab' contains 51 entries:
+Num: +Value Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +1 *
@@ -111,9 +111,6 @@ Symbol table '.symtab' contains 54 entri
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +9 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +10 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +11 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +12 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +13 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +14 *
+[0-9]+: 0+20 +0 TLS +LOCAL DEFAULT +7 sl1
+[0-9]+: 0+24 +0 TLS +LOCAL DEFAULT +7 sl2
+[0-9]+: 0+28 +0 TLS +LOCAL DEFAULT +7 sl3
--- binutils/ld/testsuite/ld-i386/tlsgdesc.rd.section 2006-01-18 13:07:49.000000000 -0800
+++ binutils/ld/testsuite/ld-i386/tlsgdesc.rd 2006-06-01 11:28:20.000000000 -0700
@@ -76,7 +76,7 @@ Symbol table '.dynsym' contains 13 entri
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
+[0-9]+: 0+ +0 NOTYPE GLOBAL DEFAULT UND ___tls_get_addr
-Symbol table '.symtab' contains 27 entries:
+Symbol table '.symtab' contains 24 entries:
+Num: +Value Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +1 *
@@ -89,9 +89,6 @@ Symbol table '.symtab' contains 27 entri
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +8 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +9 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +10 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +11 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +12 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +13 *
+[0-9]+: [0-9a-f]+ +0 OBJECT LOCAL HIDDEN ABS _DYNAMIC
+[0-9]+: [0-9a-f]+ +0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG3
--- binutils/ld/testsuite/ld-i386/tlsnopic.rd.section 2006-02-02 14:57:50.000000000 -0800
+++ binutils/ld/testsuite/ld-i386/tlsnopic.rd 2006-06-01 11:27:53.000000000 -0700
@@ -84,7 +84,7 @@ Symbol table '.dynsym' contains 12 entri
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
-Symbol table '.symtab' contains 33 entries:
+Symbol table '.symtab' contains 30 entries:
+Num: +Value Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +1 *
@@ -96,9 +96,6 @@ Symbol table '.symtab' contains 33 entri
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +7 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +8 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +9 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +10 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +11 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +12 *
+[0-9]+: 0+00 +0 TLS +LOCAL DEFAULT +6 bl1
+[0-9]+: 0+04 +0 TLS +LOCAL DEFAULT +6 bl2
+[0-9]+: 0+08 +0 TLS +LOCAL DEFAULT +6 bl3
--- binutils/ld/testsuite/ld-i386/tlspic.rd.section 2006-02-02 14:57:50.000000000 -0800
+++ binutils/ld/testsuite/ld-i386/tlspic.rd 2006-06-01 11:19:10.000000000 -0700
@@ -101,7 +101,7 @@ Symbol table '.dynsym' contains 17 entri
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
+[0-9]+: 0+ +0 NOTYPE GLOBAL DEFAULT UND ___tls_get_addr
-Symbol table '.symtab' contains 55 entries:
+Symbol table '.symtab' contains 52 entries:
+Num: +Value Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +1 *
@@ -116,9 +116,6 @@ Symbol table '.symtab' contains 55 entri
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +10 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +11 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +12 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +13 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +14 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +15 *
+[0-9]+: 0+20 +0 TLS +LOCAL DEFAULT +8 sl1
+[0-9]+: 0+24 +0 TLS +LOCAL DEFAULT +8 sl2
+[0-9]+: 0+28 +0 TLS +LOCAL DEFAULT +8 sl3
--- binutils/ld/testsuite/ld-ia64/tlsbin.rd.section 2005-08-24 08:27:16.000000000 -0700
+++ binutils/ld/testsuite/ld-ia64/tlsbin.rd 2006-06-01 11:30:57.000000000 -0700
@@ -66,7 +66,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
.* NOTYPE +GLOBAL DEFAULT +ABS _end
-Symbol table '.symtab' contains 69 entries:
+Symbol table '.symtab' contains 66 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND *
.* SECTION LOCAL +DEFAULT +1 *
@@ -84,9 +84,6 @@ Symbol table '.symtab' contains 69 entri
.* SECTION LOCAL +DEFAULT +13 *
.* SECTION LOCAL +DEFAULT +14 *
.* SECTION LOCAL +DEFAULT +15 *
-.* SECTION LOCAL +DEFAULT +16 *
-.* SECTION LOCAL +DEFAULT +17 *
-.* SECTION LOCAL +DEFAULT +18 *
.* TLS +LOCAL +DEFAULT +11 sl1
.* TLS +LOCAL +DEFAULT +11 sl2
.* TLS +LOCAL +DEFAULT +11 sl3
--- binutils/ld/testsuite/ld-ia64/tlspic.rd.section 2005-10-23 19:38:15.000000000 -0700
+++ binutils/ld/testsuite/ld-ia64/tlspic.rd 2006-06-01 11:30:39.000000000 -0700
@@ -78,7 +78,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
.* NOTYPE +GLOBAL DEFAULT +ABS _end
-Symbol table '.symtab' contains 57 entries:
+Symbol table '.symtab' contains 54 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND *
.* SECTION LOCAL +DEFAULT +1 *
@@ -95,9 +95,6 @@ Symbol table '.symtab' contains 57 entri
.* SECTION LOCAL +DEFAULT +12 *
.* SECTION LOCAL +DEFAULT +13 *
.* SECTION LOCAL +DEFAULT +14 *
-.* SECTION LOCAL +DEFAULT +15 *
-.* SECTION LOCAL +DEFAULT +16 *
-.* SECTION LOCAL +DEFAULT +17 *
.* TLS +LOCAL +DEFAULT +10 sl1
.* TLS +LOCAL +DEFAULT +10 sl2
.* TLS +LOCAL +DEFAULT +10 sl3
--- binutils/ld/testsuite/ld-mmix/bpo-1.d.section 2005-03-21 13:13:41.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bpo-1.d 2006-06-01 12:40:02.000000000 -0700
@@ -11,9 +11,6 @@
SYMBOL TABLE:
0000000000000000 l d \.text 0+ (|\.text)
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+4 l \.text 0+ x
0+ g \.text 0+ _start
#...
--- binutils/ld/testsuite/ld-mmix/bpo-10.d.section 2005-11-01 21:20:38.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bpo-10.d 2006-06-01 12:40:35.000000000 -0700
@@ -12,9 +12,6 @@
SYMBOL TABLE:
0+ l d \.init 0+ (|\.init)
0+7f8 l +d \.MMIX.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+ l \.init 0+ _start
2000000000000000 g \*ABS\* 0+ __bss_start
2000000000000000 g \*ABS\* 0+ _edata
--- binutils/ld/testsuite/ld-mmix/bpo-11.d.section 2005-03-21 13:13:41.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bpo-11.d 2006-06-01 12:40:43.000000000 -0700
@@ -14,9 +14,6 @@ SYMBOL TABLE:
0+ l d \.init 0+ (|\.init)
0+10 l d \.text 0+ (|\.text)
0+7e8 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+ l \.init 0+ _start
0+14 g \.text 0+ x
0+10 g \.text 0+ x2
--- binutils/ld/testsuite/ld-mmix/bpo-14.d.section 2005-03-21 13:13:41.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bpo-14.d 2006-06-01 12:40:46.000000000 -0700
@@ -12,9 +12,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+ g \.text 0+ _start
0+8 g \.text 0+ areg
#...
--- binutils/ld/testsuite/ld-mmix/bpo-16.d.section 2005-03-21 13:13:41.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bpo-16.d 2006-06-01 12:40:50.000000000 -0700
@@ -13,9 +13,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+ g \.text 0+ _start
0+c g \.text 0+ areg
#...
--- binutils/ld/testsuite/ld-mmix/bpo-17.d.section 2005-03-21 13:13:41.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bpo-17.d 2006-06-01 12:40:53.000000000 -0700
@@ -12,9 +12,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+ g \.text 0+ _start
0+10 g \.text 0+ areg
#...
--- binutils/ld/testsuite/ld-mmix/bpo-18.d.section 2005-03-21 13:13:41.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bpo-18.d 2006-06-01 12:40:57.000000000 -0700
@@ -13,9 +13,6 @@ SYMBOL TABLE:
0+100 l d \.text 0+ (|\.text)
4000000000001060 l d \.text\.away 0+ (|\.text\.away)
0+7e0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
4000000000001064 l \.text\.away 0+ x
0+100 g \.text 0+ x
4000000000001060 g \.text\.away 0+ Main
--- binutils/ld/testsuite/ld-mmix/bpo-19.d.section 2005-10-26 15:03:35.000000000 -0700
+++ binutils/ld/testsuite/ld-mmix/bpo-19.d 2006-06-01 12:41:00.000000000 -0700
@@ -12,9 +12,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+100 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
#...
0+ g \.text 0+ _start
#...
--- binutils/ld/testsuite/ld-mmix/bpo-2.d.section 2005-03-21 13:13:41.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bpo-2.d 2006-06-01 12:41:07.000000000 -0700
@@ -12,9 +12,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7e8 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+4 l \.text 0+ x
0+ g \.text 0+ _start
0+fe g \*REG\* 0+ areg
--- binutils/ld/testsuite/ld-mmix/bpo-22.d.section 2005-07-08 08:42:54.000000000 -0700
+++ binutils/ld/testsuite/ld-mmix/bpo-22.d 2006-06-01 12:41:03.000000000 -0700
@@ -12,9 +12,6 @@
SYMBOL TABLE:
0000000000000000 l d \.text 0+ (|\.text)
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+4 l \.text 0+ x
0+ g \.text 0+ Main
0+ g \.text 0+ _start
--- binutils/ld/testsuite/ld-mmix/bpo-3.d.section 2005-03-21 13:13:41.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bpo-3.d 2006-06-01 12:41:11.000000000 -0700
@@ -12,9 +12,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+4 l \.text 0+ x
0+ g \.text 0+ _start
#...
--- binutils/ld/testsuite/ld-mmix/bpo-4.d.section 2005-03-21 13:13:41.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bpo-4.d 2006-06-01 12:41:14.000000000 -0700
@@ -13,9 +13,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7e0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+8 l \.text 0+ x
0+ g \.text 0+ _start
0+fe g \*REG\* 0+ areg
--- binutils/ld/testsuite/ld-mmix/bpo-5.d.section 2005-03-21 13:13:41.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bpo-5.d 2006-06-01 12:41:17.000000000 -0700
@@ -13,9 +13,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7e8 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+4 l \.text 0+ x
0+ g \.text 0+ _start
#...
--- binutils/ld/testsuite/ld-mmix/bpo-6.d.section 2005-10-26 15:03:35.000000000 -0700
+++ binutils/ld/testsuite/ld-mmix/bpo-6.d 2006-06-01 12:41:20.000000000 -0700
@@ -11,9 +11,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+100 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
#...
0+ g \.text 0+ _start
#...
--- binutils/ld/testsuite/ld-mmix/bpo-9.d.section 2005-03-21 13:13:41.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bpo-9.d 2006-06-01 12:41:24.000000000 -0700
@@ -13,9 +13,6 @@ SYMBOL TABLE:
0+ l d \.init 0+ (|\.init)
0+10 l d \.text 0+ (|\.text)
0+7e8 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+ l \.init 0+ _start
0+14 g \.text 0+ x
0+10 g \.text 0+ x2
--- binutils/ld/testsuite/ld-mmix/bspec1.d.section 2005-03-21 13:13:41.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bspec1.d 2006-06-01 12:51:38.000000000 -0700
@@ -17,8 +17,8 @@ Section Headers:
\[ 3\] \.shstrtab STRTAB 0+ 0+80
0+33 0+ 0 0 1
\[ 4\] \.symtab SYMTAB 0+ 0+238
- 0+120 0+18 5 6 8
- \[ 5\] \.strtab STRTAB 0+ 0+358
+ 0+d8 0+18 5 3 8
+ \[ 5\] \.strtab STRTAB 0+ 0+310
0+2d 0+ 0 0 1
Key to Flags:
W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\)
@@ -27,16 +27,13 @@ Key to Flags:
There are no relocations in this file\.
-Symbol table '\.symtab' contains 12 entries:
+Symbol table '\.symtab' contains 9 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0+ 0 NOTYPE LOCAL DEFAULT UND
1: 0+ 0 SECTION LOCAL DEFAULT 1
2: 0+ 0 SECTION LOCAL DEFAULT 2
- 3: 0+ 0 SECTION LOCAL DEFAULT 3
- 4: 0+ 0 SECTION LOCAL DEFAULT 4
- 5: 0+ 0 SECTION LOCAL DEFAULT 5
- 6: 0+ 0 FUNC GLOBAL DEFAULT 1 Main
- 7: 0+ 0 NOTYPE GLOBAL DEFAULT 1 _start
+ 3: 0+ 0 FUNC GLOBAL DEFAULT 1 Main
+ 4: 0+ 0 NOTYPE GLOBAL DEFAULT 1 _start
#...
Hex dump of section '\.text':
--- binutils/ld/testsuite/ld-mmix/bspec2.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/bspec2.d 2006-06-01 12:51:19.000000000 -0700
@@ -22,8 +22,8 @@ Section Headers:
\[ 4\] \.shstrtab STRTAB 0+ 0+88
0+45 0+ 0 0 1
\[ 5\] \.symtab SYMTAB 0+ 0+290
- 0+150 0+18 6 7 8
- \[ 6\] \.strtab STRTAB 0+ 0+3e0
+ 0+108 0+18 6 4 8
+ \[ 6\] \.strtab STRTAB 0+ 0+398
0+32 0+ 0 0 1
Key to Flags:
W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\)
@@ -32,18 +32,15 @@ Key to Flags:
There are no relocations in this file\.
-Symbol table '\.symtab' contains 14 entries:
+Symbol table '\.symtab' contains 11 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0+ 0 NOTYPE LOCAL DEFAULT UND
1: 0+ 0 SECTION LOCAL DEFAULT 1
2: 0+ 0 SECTION LOCAL DEFAULT 2
3: 0+ 0 SECTION LOCAL DEFAULT 3
- 4: 0+ 0 SECTION LOCAL DEFAULT 4
- 5: 0+ 0 SECTION LOCAL DEFAULT 5
- 6: 0+ 0 SECTION LOCAL DEFAULT 6
- 7: 0+ 0 FUNC GLOBAL DEFAULT 1 Main
- 8: 0+fc 0 NOTYPE GLOBAL DEFAULT ABS ext1
- 9: 0+ 0 NOTYPE GLOBAL DEFAULT 1 _start
+ 4: 0+ 0 FUNC GLOBAL DEFAULT 1 Main
+ 5: 0+fc 0 NOTYPE GLOBAL DEFAULT ABS ext1
+ 6: 0+ 0 NOTYPE GLOBAL DEFAULT 1 _start
#...
Hex dump of section '\.text':
--- binutils/ld/testsuite/ld-mmix/greg-1.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/greg-1.d 2006-06-01 12:41:45.000000000 -0700
@@ -12,9 +12,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+c g \.text 0+ _start
0+fe g \*REG\* 0+ areg
#...
--- binutils/ld/testsuite/ld-mmix/greg-19.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/greg-19.d 2006-06-01 12:41:42.000000000 -0700
@@ -9,9 +9,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+ g F \.text 0+ Main
0+ g \.text 0+ _start
0+fe g \*REG\* 0+ areg
--- binutils/ld/testsuite/ld-mmix/greg-2.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/greg-2.d 2006-06-01 12:41:49.000000000 -0700
@@ -16,9 +16,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7e0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+fe g \*REG\* 0+ b
0+20 g \.text 0+ _start
0+fc g \*REG\* 0+ areg
--- binutils/ld/testsuite/ld-mmix/greg-3.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/greg-3.d 2006-06-01 12:41:52.000000000 -0700
@@ -16,9 +16,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+10 g \.text 0+ _start
0+fe g \*REG\* 0+ areg
#...
--- binutils/ld/testsuite/ld-mmix/greg-4.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/greg-4.d 2006-06-01 12:41:55.000000000 -0700
@@ -13,9 +13,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+18 g \.text 0+ _start
0+fe g \*REG\* 0+ areg
#...
--- binutils/ld/testsuite/ld-mmix/greg-5.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/greg-5.d 2006-06-01 12:42:00.000000000 -0700
@@ -13,9 +13,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+14 g \.text 0+ _start
0+fe g \*REG\* 0+ areg
#...
--- binutils/ld/testsuite/ld-mmix/greg-5s.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/greg-5s.d 2006-06-01 12:42:02.000000000 -0700
@@ -12,9 +12,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+4 g \.text 0+ _start
0+fe g \*REG\* 0+ areg
#...
--- binutils/ld/testsuite/ld-mmix/greg-6.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/greg-6.d 2006-06-01 12:42:06.000000000 -0700
@@ -41,9 +41,6 @@
SYMBOL TABLE:
0+0 l d \.text 0+ (|\.text)
0+100 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+20 l \*REG\* 0+ P
0+21 l \*REG\* 0+ O
0+22 l \*REG\* 0+ N
--- binutils/ld/testsuite/ld-mmix/greg-7.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/greg-7.d 2006-06-01 12:42:11.000000000 -0700
@@ -41,9 +41,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
0+100 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+21 l \*REG\* 0+ P
0+22 l \*REG\* 0+ O
0+23 l \*REG\* 0+ N
--- binutils/ld/testsuite/ld-mmix/loc1.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/loc1.d 2006-06-01 12:42:15.000000000 -0700
@@ -8,9 +8,6 @@
SYMBOL TABLE:
0+1000 l d \.text 0+ (|\.text)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+1000 g \.text 0+ loc1
0+1000 g \*ABS\* 0+ __\.MMIX\.start\.\.text
2000000000000000 g \*ABS\* 0+ __bss_start
--- binutils/ld/testsuite/ld-mmix/loc2.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/loc2.d 2006-06-01 12:42:18.000000000 -0700
@@ -9,9 +9,6 @@
SYMBOL TABLE:
0+1000 l d \.text 0+ (|\.text)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+1004 g \.text 0+ _start
0+1000 g \.text 0+ loc1
0+1000 g \*ABS\* 0+ __\.MMIX\.start\.\.text
--- binutils/ld/testsuite/ld-mmix/loc3.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/loc3.d 2006-06-01 12:42:21.000000000 -0700
@@ -9,9 +9,6 @@
SYMBOL TABLE:
0+1000 l d \.text 0+ (|\.text)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+1000 g \.text 0+ _start
0+1004 g \.text 0+ loc1
0+1000 g \*ABS\* 0+ __\.MMIX\.start\.\.text
--- binutils/ld/testsuite/ld-mmix/loc4.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/loc4.d 2006-06-01 12:42:25.000000000 -0700
@@ -11,9 +11,6 @@
SYMBOL TABLE:
0+1000 l d \.text 0+ (|\.text)
2000000000000000 l d \.data 0+ (|\.data)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
2000000000000000 l \.data 0+ xx
0+1004 g F \.text 0+ Main
2000000000000000 g \*ABS\* 0+ __\.MMIX\.start\.\.data
--- binutils/ld/testsuite/ld-mmix/loc6.d.section 2005-06-10 09:00:33.000000000 -0700
+++ binutils/ld/testsuite/ld-mmix/loc6.d 2006-06-01 12:42:27.000000000 -0700
@@ -10,9 +10,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
2000000000000200 l d \.data 0+ (|\.data)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
2000000000000200 g \.data 0+ dloc1
2000000000000200 g \*ABS\* 0+ __\.MMIX\.start\.\.data
0+ g \.text 0+ _start
--- binutils/ld/testsuite/ld-mmix/local1.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/local1.d 2006-06-01 12:53:42.000000000 -0700
@@ -24,26 +24,23 @@ Section Headers:
\[ 3\] \.shstrtab STRTAB 0+ 0+90
0+34 0+ 0 0 1
\[ 4\] \.symtab SYMTAB 0+ 0+248
- 0+150 0+18 5 8 8
- \[ 5\] \.strtab STRTAB 0+ 0+398
+ 0+108 0+18 5 5 8
+ \[ 5\] \.strtab STRTAB 0+ 0+350
0+32 0+ 0 0 1
Key to Flags:
W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\)
I \(info\), L \(link order\), G \(group\), x \(unknown\)
O \(extra OS processing required\) o \(OS specific\), p \(processor specific\)
-Symbol table '\.symtab' contains 14 entries:
+Symbol table '\.symtab' contains 11 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0+ 0 NOTYPE LOCAL DEFAULT UND
1: 0+ 0 SECTION LOCAL DEFAULT 1
2: 0+7e8 0 SECTION LOCAL DEFAULT 2
- 3: 0+ 0 SECTION LOCAL DEFAULT 3
- 4: 0+ 0 SECTION LOCAL DEFAULT 4
- 5: 0+ 0 SECTION LOCAL DEFAULT 5
- 6: 0+fd 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
- 7: 0+fe 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
- 8: 0+fc 0 NOTYPE GLOBAL DEFAULT PRC\[0xff00\] ext1
- 9: 0+4 0 NOTYPE GLOBAL DEFAULT 1 _start
+ 3: 0+fd 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
+ 4: 0+fe 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
+ 5: 0+fc 0 NOTYPE GLOBAL DEFAULT PRC\[0xff00\] ext1
+ 6: 0+4 0 NOTYPE GLOBAL DEFAULT 1 _start
#...
Hex dump of section '\.text':
--- binutils/ld/testsuite/ld-mmix/local3.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/local3.d 2006-06-01 12:54:09.000000000 -0700
@@ -22,26 +22,23 @@ Section Headers:
\[ 3\] \.shstrtab STRTAB 0+ 0+90
0+34 0+ 0 0 1
\[ 4\] \.symtab SYMTAB 0+ 0+248
- 0+150 0+18 5 8 8
- \[ 5\] \.strtab STRTAB 0+ 0+398
+ 0+108 0+18 5 5 8
+ \[ 5\] \.strtab STRTAB 0+ 0+350
0+32 0+ 0 0 1
Key to Flags:
W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\)
I \(info\), L \(link order\), G \(group\), x \(unknown\)
O \(extra OS processing required\) o \(OS specific\), p \(processor specific\)
-Symbol table '\.symtab' contains 14 entries:
+Symbol table '\.symtab' contains 11 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0+ 0 NOTYPE LOCAL DEFAULT UND
1: 0+ 0 SECTION LOCAL DEFAULT 1
2: 0+7e8 0 SECTION LOCAL DEFAULT 2
- 3: 0+ 0 SECTION LOCAL DEFAULT 3
- 4: 0+ 0 SECTION LOCAL DEFAULT 4
- 5: 0+ 0 SECTION LOCAL DEFAULT 5
- 6: 0+fd 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
- 7: 0+fe 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
- 8: 0+fc 0 NOTYPE GLOBAL DEFAULT ABS ext1
- 9: 0+4 0 NOTYPE GLOBAL DEFAULT 1 _start
+ 3: 0+fd 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
+ 4: 0+fe 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
+ 5: 0+fc 0 NOTYPE GLOBAL DEFAULT ABS ext1
+ 6: 0+4 0 NOTYPE GLOBAL DEFAULT 1 _start
#...
Hex dump of section '\.text':
--- binutils/ld/testsuite/ld-mmix/local5.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/local5.d 2006-06-01 12:54:38.000000000 -0700
@@ -23,26 +23,23 @@ Section Headers:
\[ 3\] \.shstrtab STRTAB 0+ 0+94
0+34 0+ 0 0 1
\[ 4\] \.symtab SYMTAB 0+ 0+248
- 0+150 0+18 5 8 8
- \[ 5\] \.strtab STRTAB 0+ 0+398
+ 0+108 0+18 5 5 8
+ \[ 5\] \.strtab STRTAB 0+ 0+350
0+32 0+ 0 0 1
Key to Flags:
W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\)
I \(info\), L \(link order\), G \(group\), x \(unknown\)
O \(extra OS processing required\) o \(OS specific\), p \(processor specific\)
-Symbol table '\.symtab' contains 14 entries:
+Symbol table '\.symtab' contains 11 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0+ 0 NOTYPE LOCAL DEFAULT UND
1: 0+ 0 SECTION LOCAL DEFAULT 1
2: 0+7e8 0 SECTION LOCAL DEFAULT 2
- 3: 0+ 0 SECTION LOCAL DEFAULT 3
- 4: 0+ 0 SECTION LOCAL DEFAULT 4
- 5: 0+ 0 SECTION LOCAL DEFAULT 5
- 6: 0+fd 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
- 7: 0+fe 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
- 8: 0+fc 0 NOTYPE GLOBAL DEFAULT PRC\[0xff00\] ext1
- 9: 0+8 0 NOTYPE GLOBAL DEFAULT 1 _start
+ 3: 0+fd 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
+ 4: 0+fe 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
+ 5: 0+fc 0 NOTYPE GLOBAL DEFAULT PRC\[0xff00\] ext1
+ 6: 0+8 0 NOTYPE GLOBAL DEFAULT 1 _start
#...
Hex dump of section '\.text':
--- binutils/ld/testsuite/ld-mmix/local7.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/local7.d 2006-06-01 12:55:03.000000000 -0700
@@ -24,26 +24,23 @@ Section Headers:
\[ 3\] \.shstrtab STRTAB 0+ 0+94
0+34 0+ 0 0 1
\[ 4\] \.symtab SYMTAB 0+ 0+248
- 0+150 0+18 5 8 8
- \[ 5\] \.strtab STRTAB 0+ 0+398
+ 0+108 0+18 5 5 8
+ \[ 5\] \.strtab STRTAB 0+ 0+350
0+32 0+ 0 0 1
Key to Flags:
W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\)
I \(info\), L \(link order\), G \(group\), x \(unknown\)
O \(extra OS processing required\) o \(OS specific\), p \(processor specific\)
-Symbol table '\.symtab' contains 14 entries:
+Symbol table '\.symtab' contains 11 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0+ 0 NOTYPE LOCAL DEFAULT UND
1: 0+ 0 SECTION LOCAL DEFAULT 1
2: 0+7e8 0 SECTION LOCAL DEFAULT 2
- 3: 0+ 0 SECTION LOCAL DEFAULT 3
- 4: 0+ 0 SECTION LOCAL DEFAULT 4
- 5: 0+ 0 SECTION LOCAL DEFAULT 5
- 6: 0+fd 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
- 7: 0+fe 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
- 8: 0+fc 0 NOTYPE GLOBAL DEFAULT ABS ext1
- 9: 0+8 0 NOTYPE GLOBAL DEFAULT 1 _start
+ 3: 0+fd 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
+ 4: 0+fe 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym
+ 5: 0+fc 0 NOTYPE GLOBAL DEFAULT ABS ext1
+ 6: 0+8 0 NOTYPE GLOBAL DEFAULT 1 _start
#...
Hex dump of section '\.text':
--- binutils/ld/testsuite/ld-mmix/locdo-1.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/locdo-1.d 2006-06-01 12:42:41.000000000 -0700
@@ -8,9 +8,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
2000000000000008 l d \.data 0+ (|\.data)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
2000000000000008 g \*ABS\* 0+ __\.MMIX\.start\.\.data
2000000000000008 g \.data 0+ od
0+ g \.text 0+ _start
--- binutils/ld/testsuite/ld-mmix/loct-1.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/loct-1.d 2006-06-01 12:42:44.000000000 -0700
@@ -7,9 +7,6 @@
SYMBOL TABLE:
0+1004 l d \.text 0+ (|\.text)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+1004 l \.text 0+ t
0+100c g \.text 0+ _start
0+1004 g \*ABS\* 0+ __\.MMIX\.start\.\.text
--- binutils/ld/testsuite/ld-mmix/locto-1.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/locto-1.d 2006-06-01 12:42:47.000000000 -0700
@@ -7,9 +7,6 @@
SYMBOL TABLE:
0+1008 l d \.text 0+ (|\.text)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+1008 g \.text 0+ od
0+1010 g \.text 0+ _start
0+1008 g \*ABS\* 0+ __\.MMIX\.start\.\.text
--- binutils/ld/testsuite/ld-mmix/start-1.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/start-1.d 2006-06-01 12:42:50.000000000 -0700
@@ -6,9 +6,6 @@
SYMBOL TABLE:
0+ l d \.text 0+ (|\.text)
-0+ l d \*ABS\* 0+ (|\.shstrtab)
-0+ l d \*ABS\* 0+ (|\.symtab)
-0+ l d \*ABS\* 0+ (|\.strtab)
0+4 g \.text 0+ _start
2000000000000000 g \*ABS\* 0+ __bss_start
2000000000000000 g \*ABS\* 0+ _edata
--- binutils/ld/testsuite/ld-mmix/undef-3.d.section 2005-03-21 13:13:42.000000000 -0800
+++ binutils/ld/testsuite/ld-mmix/undef-3.d 2006-06-01 12:58:02.000000000 -0700
@@ -14,24 +14,21 @@ Section Headers:
\[ 2\] \.shstrtab STRTAB 0+ 0+7c
0+21 0+ 0 0 1
\[ 3\] \.symtab SYMTAB 0+ 0+1e0
- 0+108 0+18 4 5 8
- \[ 4\] \.strtab STRTAB 0+ 0+2e8
+ 0+c0 0+18 4 2 8
+ \[ 4\] \.strtab STRTAB 0+ 0+2a0
0+2f 0+ 0 0 1
Key to Flags:
W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\)
I \(info\), L \(link order\), G \(group\), x \(unknown\)
O \(extra OS processing required\) o \(OS specific\), p \(processor specific\)
-Symbol table '\.symtab' contains 11 entries:
+Symbol table '\.symtab' contains 8 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0+ 0 NOTYPE LOCAL DEFAULT UND
1: 0+ 0 SECTION LOCAL DEFAULT 1
- 2: 0+ 0 SECTION LOCAL DEFAULT 2
- 3: 0+ 0 SECTION LOCAL DEFAULT 3
- 4: 0+ 0 SECTION LOCAL DEFAULT 4
- 5: 0+ 0 NOTYPE GLOBAL DEFAULT UND undefd
- 6: 0+ 0 NOTYPE GLOBAL DEFAULT 1 _start
- 7: 2000000000000000 0 NOTYPE GLOBAL DEFAULT ABS __bss_start
- 8: 2000000000000000 0 NOTYPE GLOBAL DEFAULT ABS _edata
- 9: 2000000000000000 0 NOTYPE GLOBAL DEFAULT ABS _end
- 10: 0+ 0 NOTYPE GLOBAL DEFAULT 1 _start\.
+ 2: 0+ 0 NOTYPE GLOBAL DEFAULT UND undefd
+ 3: 0+ 0 NOTYPE GLOBAL DEFAULT 1 _start
+ 4: 2000000000000000 0 NOTYPE GLOBAL DEFAULT ABS __bss_start
+ 5: 2000000000000000 0 NOTYPE GLOBAL DEFAULT ABS _edata
+ 6: 2000000000000000 0 NOTYPE GLOBAL DEFAULT ABS _end
+ 7: 0+ 0 NOTYPE GLOBAL DEFAULT 1 _start\.
--- binutils/ld/testsuite/ld-powerpc/tlsexe32.r.section 2006-02-02 14:57:50.000000000 -0800
+++ binutils/ld/testsuite/ld-powerpc/tlsexe32.r 2006-06-01 12:15:42.000000000 -0700
@@ -70,7 +70,7 @@ Symbol table '\.dynsym' contains [0-9]+
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
.* NOTYPE +GLOBAL DEFAULT +ABS _end
-Symbol table '\.symtab' contains 40 entries:
+Symbol table '\.symtab' contains 37 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND
.* SECTION LOCAL +DEFAULT +1
@@ -85,9 +85,6 @@ Symbol table '\.symtab' contains 40 entr
.* SECTION LOCAL +DEFAULT +10
.* SECTION LOCAL +DEFAULT +11
.* SECTION LOCAL +DEFAULT +12
-.* SECTION LOCAL +DEFAULT +13
-.* SECTION LOCAL +DEFAULT +14
-.* SECTION LOCAL +DEFAULT +15
.* TLS +LOCAL +DEFAULT +8 gd4
.* TLS +LOCAL +DEFAULT +8 ld4
.* TLS +LOCAL +DEFAULT +8 ld5
--- binutils/ld/testsuite/ld-powerpc/tlsso32.r.section 2006-02-02 14:57:50.000000000 -0800
+++ binutils/ld/testsuite/ld-powerpc/tlsso32.r 2006-06-01 12:15:58.000000000 -0700
@@ -90,7 +90,7 @@ Symbol table '\.dynsym' contains [0-9]+
.* TLS +GLOBAL DEFAULT +8 gd0
.* TLS +GLOBAL DEFAULT +8 ie0
-Symbol table '\.symtab' contains 39 entries:
+Symbol table '\.symtab' contains 36 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND
.* SECTION LOCAL +DEFAULT +1
@@ -104,9 +104,6 @@ Symbol table '\.symtab' contains 39 entr
.* SECTION LOCAL +DEFAULT +9
.* SECTION LOCAL +DEFAULT +10
.* SECTION LOCAL +DEFAULT +11
-.* SECTION LOCAL +DEFAULT +12
-.* SECTION LOCAL +DEFAULT +13
-.* SECTION LOCAL +DEFAULT +14
.* TLS +LOCAL +DEFAULT +7 gd4
.* TLS +LOCAL +DEFAULT +7 ld4
.* TLS +LOCAL +DEFAULT +7 ld5
--- binutils/ld/testsuite/ld-s390/tlsbin.rd.section 2006-02-02 14:57:50.000000000 -0800
+++ binutils/ld/testsuite/ld-s390/tlsbin.rd 2006-06-01 12:14:45.000000000 -0700
@@ -76,7 +76,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE GLOBAL DEFAULT ABS _edata
.* NOTYPE GLOBAL DEFAULT ABS _end
-Symbol table '.symtab' contains 68 entries:
+Symbol table '.symtab' contains 65 entries:
+Num: +Value Size Type +Bind +Vis +Ndx Name
.* NOTYPE LOCAL DEFAULT UND
.* SECTION LOCAL DEFAULT +1
@@ -91,9 +91,6 @@ Symbol table '.symtab' contains 68 entri
.* SECTION LOCAL DEFAULT +10
.* SECTION LOCAL DEFAULT +11
.* SECTION LOCAL DEFAULT +12
-.* SECTION LOCAL DEFAULT +13
-.* SECTION LOCAL DEFAULT +14
-.* SECTION LOCAL DEFAULT +15
.* TLS +LOCAL DEFAULT +9 sl1
.* TLS +LOCAL DEFAULT +9 sl2
.* TLS +LOCAL DEFAULT +9 sl3
--- binutils/ld/testsuite/ld-s390/tlspic.rd.section 2006-02-02 14:57:50.000000000 -0800
+++ binutils/ld/testsuite/ld-s390/tlspic.rd 2006-06-01 12:14:31.000000000 -0700
@@ -88,7 +88,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE GLOBAL DEFAULT ABS _edata
.* NOTYPE GLOBAL DEFAULT ABS _end
-Symbol table '.symtab' contains 54 entries:
+Symbol table '.symtab' contains 51 entries:
+Num: +Value Size Type +Bind +Vis +Ndx Name
.* NOTYPE LOCAL DEFAULT UND
.* SECTION LOCAL DEFAULT +1
@@ -102,9 +102,6 @@ Symbol table '.symtab' contains 54 entri
.* SECTION LOCAL DEFAULT +9
.* SECTION LOCAL DEFAULT +10
.* SECTION LOCAL DEFAULT +11
-.* SECTION LOCAL DEFAULT +12
-.* SECTION LOCAL DEFAULT +13
-.* SECTION LOCAL DEFAULT +14
.* TLS +LOCAL DEFAULT +8 sl1
.* TLS +LOCAL DEFAULT +8 sl2
.* TLS +LOCAL DEFAULT +8 sl3
--- binutils/ld/testsuite/ld-sparc/tlssunbin32.rd.section 2005-08-24 08:27:20.000000000 -0700
+++ binutils/ld/testsuite/ld-sparc/tlssunbin32.rd 2006-06-01 11:59:52.000000000 -0700
@@ -58,7 +58,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
.* NOTYPE +GLOBAL DEFAULT +ABS _end
-Symbol table '.symtab' contains 67 entries:
+Symbol table '.symtab' contains 64 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND *
.* SECTION LOCAL +DEFAULT +1 *
@@ -71,9 +71,6 @@ Symbol table '.symtab' contains 67 entri
.* SECTION LOCAL +DEFAULT +8 *
.* SECTION LOCAL +DEFAULT +9 *
.* SECTION LOCAL +DEFAULT +10 *
-.* SECTION LOCAL +DEFAULT +11 *
-.* SECTION LOCAL +DEFAULT +12 *
-.* SECTION LOCAL +DEFAULT +13 *
.* TLS +LOCAL +DEFAULT +7 sl1
.* TLS +LOCAL +DEFAULT +7 sl2
.* TLS +LOCAL +DEFAULT +7 sl3
--- binutils/ld/testsuite/ld-sparc/tlssunbin64.rd.section 2005-08-24 08:27:20.000000000 -0700
+++ binutils/ld/testsuite/ld-sparc/tlssunbin64.rd 2006-06-01 12:00:54.000000000 -0700
@@ -58,7 +58,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
.* NOTYPE +GLOBAL DEFAULT +ABS _end
-Symbol table '.symtab' contains 67 entries:
+Symbol table '.symtab' contains 64 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND *
.* SECTION LOCAL +DEFAULT +1 *
@@ -71,9 +71,6 @@ Symbol table '.symtab' contains 67 entri
.* SECTION LOCAL +DEFAULT +8 *
.* SECTION LOCAL +DEFAULT +9 *
.* SECTION LOCAL +DEFAULT +10 *
-.* SECTION LOCAL +DEFAULT +11 *
-.* SECTION LOCAL +DEFAULT +12 *
-.* SECTION LOCAL +DEFAULT +13 *
.* TLS +LOCAL +DEFAULT +7 sl1
.* TLS +LOCAL +DEFAULT +7 sl2
.* TLS +LOCAL +DEFAULT +7 sl3
--- binutils/ld/testsuite/ld-sparc/tlssunnopic32.rd.section 2005-08-24 08:27:20.000000000 -0700
+++ binutils/ld/testsuite/ld-sparc/tlssunnopic32.rd 2006-06-01 12:00:17.000000000 -0700
@@ -62,7 +62,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
.* NOTYPE +GLOBAL DEFAULT +ABS _end
-Symbol table '.symtab' contains 30 entries:
+Symbol table '.symtab' contains 27 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND *
.* SECTION LOCAL +DEFAULT +1 *
@@ -73,9 +73,6 @@ Symbol table '.symtab' contains 30 entri
.* SECTION LOCAL +DEFAULT +6 *
.* SECTION LOCAL +DEFAULT +7 *
.* SECTION LOCAL +DEFAULT +8 *
-.* SECTION LOCAL +DEFAULT +9 *
-.* SECTION LOCAL +DEFAULT +10 *
-.* SECTION LOCAL +DEFAULT +11 *
.* TLS +LOCAL +DEFAULT +6 bl1
.* TLS +LOCAL +DEFAULT +6 bl2
.* TLS +LOCAL +DEFAULT +6 bl3
--- binutils/ld/testsuite/ld-sparc/tlssunnopic64.rd.section 2005-08-24 08:27:20.000000000 -0700
+++ binutils/ld/testsuite/ld-sparc/tlssunnopic64.rd 2006-06-01 12:01:13.000000000 -0700
@@ -64,7 +64,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
.* NOTYPE +GLOBAL DEFAULT +ABS _end
-Symbol table '.symtab' contains 30 entries:
+Symbol table '.symtab' contains 27 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND *
.* SECTION LOCAL +DEFAULT +1 *
@@ -75,9 +75,6 @@ Symbol table '.symtab' contains 30 entri
.* SECTION LOCAL +DEFAULT +6 *
.* SECTION LOCAL +DEFAULT +7 *
.* SECTION LOCAL +DEFAULT +8 *
-.* SECTION LOCAL +DEFAULT +9 *
-.* SECTION LOCAL +DEFAULT +10 *
-.* SECTION LOCAL +DEFAULT +11 *
.* TLS +LOCAL +DEFAULT +6 bl1
.* TLS +LOCAL +DEFAULT +6 bl2
.* TLS +LOCAL +DEFAULT +6 bl3
--- binutils/ld/testsuite/ld-sparc/tlssunpic32.rd.section 2005-08-24 08:27:20.000000000 -0700
+++ binutils/ld/testsuite/ld-sparc/tlssunpic32.rd 2006-06-01 11:59:35.000000000 -0700
@@ -80,7 +80,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
.* NOTYPE +GLOBAL DEFAULT +ABS _end
-Symbol table '.symtab' contains 55 entries:
+Symbol table '.symtab' contains 52 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND *
.* SECTION LOCAL +DEFAULT +1 *
@@ -94,9 +94,6 @@ Symbol table '.symtab' contains 55 entri
.* SECTION LOCAL +DEFAULT +9 *
.* SECTION LOCAL +DEFAULT +10 *
.* SECTION LOCAL +DEFAULT +11 *
-.* SECTION LOCAL +DEFAULT +12 *
-.* SECTION LOCAL +DEFAULT +13 *
-.* SECTION LOCAL +DEFAULT +14 *
.* TLS +LOCAL +DEFAULT +7 sl1
.* TLS +LOCAL +DEFAULT +7 sl2
.* TLS +LOCAL +DEFAULT +7 sl3
--- binutils/ld/testsuite/ld-sparc/tlssunpic64.rd.section 2005-08-24 08:27:20.000000000 -0700
+++ binutils/ld/testsuite/ld-sparc/tlssunpic64.rd 2006-06-01 12:00:35.000000000 -0700
@@ -80,7 +80,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
.* NOTYPE +GLOBAL DEFAULT +ABS _end
-Symbol table '.symtab' contains 55 entries:
+Symbol table '.symtab' contains 52 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND *
.* SECTION LOCAL +DEFAULT +1 *
@@ -94,9 +94,6 @@ Symbol table '.symtab' contains 55 entri
.* SECTION LOCAL +DEFAULT +9 *
.* SECTION LOCAL +DEFAULT +10 *
.* SECTION LOCAL +DEFAULT +11 *
-.* SECTION LOCAL +DEFAULT +12 *
-.* SECTION LOCAL +DEFAULT +13 *
-.* SECTION LOCAL +DEFAULT +14 *
.* TLS +LOCAL +DEFAULT +7 sl1
.* TLS +LOCAL +DEFAULT +7 sl2
.* TLS +LOCAL +DEFAULT +7 sl3
--- binutils/ld/testsuite/ld-x86-64/tlsbin.rd.section 2006-05-25 21:08:20.000000000 -0700
+++ binutils/ld/testsuite/ld-x86-64/tlsbin.rd 2006-06-01 10:59:43.000000000 -0700
@@ -77,7 +77,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE GLOBAL DEFAULT ABS _edata
.* NOTYPE GLOBAL DEFAULT ABS _end
-Symbol table '.symtab' contains 69 entries:
+Symbol table '.symtab' contains 66 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE LOCAL DEFAULT UND *
.* SECTION LOCAL DEFAULT +1 *
@@ -93,9 +93,6 @@ Symbol table '.symtab' contains 69 entri
.* SECTION LOCAL DEFAULT +11 *
.* SECTION LOCAL DEFAULT +12 *
.* SECTION LOCAL DEFAULT +13 *
-.* SECTION LOCAL DEFAULT +14 *
-.* SECTION LOCAL DEFAULT +15 *
-.* SECTION LOCAL DEFAULT +16 *
.* TLS +LOCAL DEFAULT +9 sl1
.* TLS +LOCAL DEFAULT +9 sl2
.* TLS +LOCAL DEFAULT +9 sl3
--- binutils/ld/testsuite/ld-x86-64/tlsbindesc.rd.section 2006-05-25 21:08:20.000000000 -0700
+++ binutils/ld/testsuite/ld-x86-64/tlsbindesc.rd 2006-06-01 11:00:07.000000000 -0700
@@ -70,7 +70,7 @@ Symbol table '.dynsym' contains 8 entrie
+[0-9]+: 0+[0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
+[0-9]+: 0+[0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
-Symbol table '.symtab' contains 67 entries:
+Symbol table '.symtab' contains 64 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +1 *
@@ -84,9 +84,6 @@ Symbol table '.symtab' contains 67 entri
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +9 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +10 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +11 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +12 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +13 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +14 *
+[0-9]+: 0+20 +0 TLS +LOCAL DEFAULT +7 sl1
+[0-9]+: 0+24 +0 TLS +LOCAL DEFAULT +7 sl2
+[0-9]+: 0+28 +0 TLS +LOCAL DEFAULT +7 sl3
--- binutils/ld/testsuite/ld-x86-64/tlsdesc.rd.section 2006-05-25 21:08:20.000000000 -0700
+++ binutils/ld/testsuite/ld-x86-64/tlsdesc.rd 2006-06-01 10:59:04.000000000 -0700
@@ -105,7 +105,7 @@ Symbol table '.dynsym' contains 16 entri
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
-Symbol table '.symtab' contains 55 entries:
+Symbol table '.symtab' contains 52 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +1 *
@@ -120,9 +120,6 @@ Symbol table '.symtab' contains 55 entri
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +10 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +11 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +12 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +13 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +14 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +15 *
+[0-9]+: 0+20 +0 TLS +LOCAL DEFAULT +8 sl1
+[0-9]+: 0+24 +0 TLS +LOCAL DEFAULT +8 sl2
+[0-9]+: 0+28 +0 TLS +LOCAL DEFAULT +8 sl3
--- binutils/ld/testsuite/ld-x86-64/tlsgdesc.rd.section 2006-01-18 13:07:51.000000000 -0800
+++ binutils/ld/testsuite/ld-x86-64/tlsgdesc.rd 2006-06-01 11:00:29.000000000 -0700
@@ -76,7 +76,7 @@ Symbol table '.dynsym' contains 13 entri
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
-Symbol table '.symtab' contains 27 entries:
+Symbol table '.symtab' contains 24 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +1 *
@@ -89,9 +89,6 @@ Symbol table '.symtab' contains 27 entri
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +8 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +9 *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +10 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +11 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +12 *
- +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +13 *
+[0-9]+: [0-9a-f]+ +0 OBJECT LOCAL HIDDEN ABS _DYNAMIC
+[0-9]+: [0-9a-f]+ +0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG3
--- binutils/ld/testsuite/ld-x86-64/tlspic.rd.section 2006-05-25 21:08:20.000000000 -0700
+++ binutils/ld/testsuite/ld-x86-64/tlspic.rd 2006-06-01 10:59:12.000000000 -0700
@@ -89,7 +89,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE GLOBAL DEFAULT ABS _edata
.* NOTYPE GLOBAL DEFAULT ABS _end
-Symbol table '.symtab' contains 55 entries:
+Symbol table '.symtab' contains 52 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE LOCAL DEFAULT UND *
.* SECTION LOCAL DEFAULT +1 *
@@ -104,9 +104,6 @@ Symbol table '.symtab' contains 55 entri
.* SECTION LOCAL DEFAULT +10 *
.* SECTION LOCAL DEFAULT +11 *
.* SECTION LOCAL DEFAULT +12 *
-.* SECTION LOCAL DEFAULT +13 *
-.* SECTION LOCAL DEFAULT +14 *
-.* SECTION LOCAL DEFAULT +15 *
.* TLS +LOCAL DEFAULT +8 sl1
.* TLS +LOCAL DEFAULT +8 sl2
.* TLS +LOCAL DEFAULT +8 sl3
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PATCH: PR ld/2723: ld puts unused section symbols in symbol table
2006-06-02 0:35 ` PATCH: PR ld/2723: ld puts unused section symbols in symbol table H. J. Lu
@ 2006-06-02 2:30 ` Alan Modra
2006-06-02 8:49 ` Alan Modra
0 siblings, 1 reply; 7+ messages in thread
From: Alan Modra @ 2006-06-02 2:30 UTC (permalink / raw)
To: H. J. Lu; +Cc: binutils
On Thu, Jun 01, 2006 at 01:16:27PM -0700, H. J. Lu wrote:
> Here is the patch. It just makes ld close to objcopy when handling
> section symbols.
Thanks very much for doing this. I committed a slightly different
elflink.c change.
Index: bfd/elflink.c
===================================================================
RCS file: /cvs/src/src/bfd/elflink.c,v
retrieving revision 1.216
diff -u -p -r1.216 elflink.c
--- bfd/elflink.c 24 May 2006 17:10:01 -0000 1.216
+++ bfd/elflink.c 2 Jun 2006 00:29:31 -0000
@@ -8125,18 +8125,19 @@ bfd_elf_final_link (bfd *abfd, struct bf
elfsym.st_size = 0;
elfsym.st_info = ELF_ST_INFO (STB_LOCAL, STT_SECTION);
elfsym.st_other = 0;
+ elfsym.st_value = 0;
for (i = 1; i < elf_numsections (abfd); i++)
{
o = bfd_section_from_elf_index (abfd, i);
if (o != NULL)
- o->target_index = bfd_get_symcount (abfd);
- elfsym.st_shndx = i;
- if (info->relocatable || o == NULL)
- elfsym.st_value = 0;
- else
- elfsym.st_value = o->vma;
- if (! elf_link_output_sym (&finfo, NULL, &elfsym, o, NULL))
- goto error_return;
+ {
+ o->target_index = bfd_get_symcount (abfd);
+ elfsym.st_shndx = i;
+ if (!info->relocatable)
+ elfsym.st_value = o->vma;
+ if (!elf_link_output_sym (&finfo, NULL, &elfsym, o, NULL))
+ goto error_return;
+ }
if (i == SHN_LORESERVE - 1)
i += SHN_HIRESERVE + 1 - SHN_LORESERVE;
}
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PATCH: PR ld/2723: ld puts unused section symbols in symbol table
2006-06-02 2:30 ` Alan Modra
@ 2006-06-02 8:49 ` Alan Modra
0 siblings, 0 replies; 7+ messages in thread
From: Alan Modra @ 2006-06-02 8:49 UTC (permalink / raw)
To: H. J. Lu, binutils
On Fri, Jun 02, 2006 at 10:05:15AM +0930, Alan Modra wrote:
> On Thu, Jun 01, 2006 at 01:16:27PM -0700, H. J. Lu wrote:
> > Here is the patch. It just makes ld close to objcopy when handling
> > section symbols.
>
> Thanks very much for doing this. I committed a slightly different
> elflink.c change.
Some more testsuite updates.
* ld-powerpc/tlsexe.r: Update for removal of some section syms.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlstocso.r: Likewise.
* ld-s390/tlsbin_64.rd: Likewise.
* ld-s390/tlspic_64.rd: Likewise.
Index: ld/testsuite/ld-powerpc/tlsexe.r
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-powerpc/tlsexe.r,v
retrieving revision 1.16
diff -u -p -r1.16 tlsexe.r
--- ld/testsuite/ld-powerpc/tlsexe.r 2 Feb 2006 22:53:46 -0000 1.16
+++ ld/testsuite/ld-powerpc/tlsexe.r 2 Jun 2006 07:46:15 -0000
@@ -72,7 +72,7 @@ Symbol table '\.dynsym' contains [0-9]+
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
.* NOTYPE +GLOBAL DEFAULT +ABS _end
-Symbol table '\.symtab' contains 40 entries:
+Symbol table '\.symtab' contains .* entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* 0+ +0 NOTYPE +LOCAL +DEFAULT +UND
.* SECTION LOCAL +DEFAULT +1
@@ -88,9 +88,6 @@ Symbol table '\.symtab' contains 40 entr
.* SECTION LOCAL +DEFAULT +11
.* SECTION LOCAL +DEFAULT +12
.* SECTION LOCAL +DEFAULT +13
-.* SECTION LOCAL +DEFAULT +14
-.* SECTION LOCAL +DEFAULT +15
-.* SECTION LOCAL +DEFAULT +16
.* TLS +LOCAL +DEFAULT +9 gd4
.* TLS +LOCAL +DEFAULT +9 ld4
.* TLS +LOCAL +DEFAULT +9 ld5
Index: ld/testsuite/ld-powerpc/tlsexetoc.r
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-powerpc/tlsexetoc.r,v
retrieving revision 1.17
diff -u -p -r1.17 tlsexetoc.r
--- ld/testsuite/ld-powerpc/tlsexetoc.r 5 May 2006 13:08:49 -0000 1.17
+++ ld/testsuite/ld-powerpc/tlsexetoc.r 2 Jun 2006 07:46:15 -0000
@@ -71,7 +71,7 @@ Symbol table '\.dynsym' contains [0-9]+
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
.* NOTYPE +GLOBAL DEFAULT +ABS _end
-Symbol table '\.symtab' contains 41 entries:
+Symbol table '\.symtab' contains .* entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND
.* SECTION LOCAL +DEFAULT +1
@@ -87,9 +87,6 @@ Symbol table '\.symtab' contains 41 entr
.* SECTION LOCAL +DEFAULT +11
.* SECTION LOCAL +DEFAULT +12
.* SECTION LOCAL +DEFAULT +13
-.* SECTION LOCAL +DEFAULT +14
-.* SECTION LOCAL +DEFAULT +15
-.* SECTION LOCAL +DEFAULT +16
.* TLS +LOCAL +DEFAULT +9 gd4
.* TLS +LOCAL +DEFAULT +9 ld4
.* TLS +LOCAL +DEFAULT +9 ld5
Index: ld/testsuite/ld-powerpc/tlsso.r
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-powerpc/tlsso.r,v
retrieving revision 1.15
diff -u -p -r1.15 tlsso.r
--- ld/testsuite/ld-powerpc/tlsso.r 2 Feb 2006 22:53:46 -0000 1.15
+++ ld/testsuite/ld-powerpc/tlsso.r 2 Jun 2006 07:46:15 -0000
@@ -89,7 +89,7 @@ Symbol table '\.dynsym' contains .* entr
.* TLS +GLOBAL DEFAULT +8 gd0
.* TLS +GLOBAL DEFAULT +8 ie0
-Symbol table '\.symtab' contains 39 entries:
+Symbol table '\.symtab' contains .* entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND
.* SECTION LOCAL +DEFAULT +1
@@ -104,9 +104,6 @@ Symbol table '\.symtab' contains 39 entr
.* SECTION LOCAL +DEFAULT +10
.* SECTION LOCAL +DEFAULT +11
.* SECTION LOCAL +DEFAULT +12
-.* SECTION LOCAL +DEFAULT +13
-.* SECTION LOCAL +DEFAULT +14
-.* SECTION LOCAL +DEFAULT +15
.* TLS +LOCAL +DEFAULT +7 gd4
.* TLS +LOCAL +DEFAULT +7 ld4
.* TLS +LOCAL +DEFAULT +7 ld5
Index: ld/testsuite/ld-powerpc/tlstocso.r
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-powerpc/tlstocso.r,v
retrieving revision 1.16
diff -u -p -r1.16 tlstocso.r
--- ld/testsuite/ld-powerpc/tlstocso.r 2 Feb 2006 22:53:46 -0000 1.16
+++ ld/testsuite/ld-powerpc/tlstocso.r 2 Jun 2006 07:46:15 -0000
@@ -84,7 +84,7 @@ Symbol table '\.dynsym' contains [0-9]+
.* TLS +GLOBAL DEFAULT +8 gd0
.* TLS +GLOBAL DEFAULT +8 ie0
-Symbol table '\.symtab' contains 40 entries:
+Symbol table '\.symtab' contains .* entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND
.* SECTION LOCAL +DEFAULT +1
@@ -99,9 +99,6 @@ Symbol table '\.symtab' contains 40 entr
.* SECTION LOCAL +DEFAULT +10
.* SECTION LOCAL +DEFAULT +11
.* SECTION LOCAL +DEFAULT +12
-.* SECTION LOCAL +DEFAULT +13
-.* SECTION LOCAL +DEFAULT +14
-.* SECTION LOCAL +DEFAULT +15
.* TLS +LOCAL +DEFAULT +7 gd4
.* TLS +LOCAL +DEFAULT +7 ld4
.* TLS +LOCAL +DEFAULT +7 ld5
Index: ld/testsuite/ld-s390/tlsbin_64.rd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-s390/tlsbin_64.rd,v
retrieving revision 1.8
diff -u -p -r1.8 tlsbin_64.rd
--- ld/testsuite/ld-s390/tlsbin_64.rd 2 Feb 2006 22:53:46 -0000 1.8
+++ ld/testsuite/ld-s390/tlsbin_64.rd 2 Jun 2006 07:46:15 -0000
@@ -76,7 +76,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
.* NOTYPE +GLOBAL DEFAULT +ABS _end
-Symbol table '.symtab' contains 68 entries:
+Symbol table '.symtab' contains .* entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE +LOCAL +DEFAULT +UND
.* SECTION LOCAL +DEFAULT +1
@@ -91,9 +91,6 @@ Symbol table '.symtab' contains 68 entri
.* SECTION LOCAL +DEFAULT +10
.* SECTION LOCAL +DEFAULT +11
.* SECTION LOCAL +DEFAULT +12
-.* SECTION LOCAL +DEFAULT +13
-.* SECTION LOCAL +DEFAULT +14
-.* SECTION LOCAL +DEFAULT +15
.* TLS +LOCAL +DEFAULT +9 sl1
.* TLS +LOCAL +DEFAULT +9 sl2
.* TLS +LOCAL +DEFAULT +9 sl3
Index: ld/testsuite/ld-s390/tlspic_64.rd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-s390/tlspic_64.rd,v
retrieving revision 1.7
diff -u -p -r1.7 tlspic_64.rd
--- ld/testsuite/ld-s390/tlspic_64.rd 2 Feb 2006 22:53:46 -0000 1.7
+++ ld/testsuite/ld-s390/tlspic_64.rd 2 Jun 2006 07:46:16 -0000
@@ -88,7 +88,7 @@ Symbol table '.dynsym' contains [0-9]+ e
.* NOTYPE GLOBAL DEFAULT ABS _edata
.* NOTYPE GLOBAL DEFAULT ABS _end
-Symbol table '.symtab' contains 54 entries:
+Symbol table '.symtab' contains .* entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
.* NOTYPE LOCAL DEFAULT UND
.* SECTION LOCAL DEFAULT +1
@@ -102,9 +102,6 @@ Symbol table '.symtab' contains 54 entri
.* SECTION LOCAL DEFAULT +9
.* SECTION LOCAL DEFAULT +10
.* SECTION LOCAL DEFAULT +11
-.* SECTION LOCAL DEFAULT +12
-.* SECTION LOCAL DEFAULT +13
-.* SECTION LOCAL DEFAULT +14
.* TLS +LOCAL DEFAULT +8 sl1
.* TLS +LOCAL DEFAULT +8 sl2
.* TLS +LOCAL DEFAULT +8 sl3
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-06-02 7:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-01 0:41 Do we need section symbols for .shstrtab, .symtab, .strtab? H. J. Lu
2006-06-01 2:52 ` Alan Modra
2006-06-01 5:37 ` H. J. Lu
2006-06-01 6:08 ` Alan Modra
2006-06-02 0:35 ` PATCH: PR ld/2723: ld puts unused section symbols in symbol table H. J. Lu
2006-06-02 2:30 ` Alan Modra
2006-06-02 8:49 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).