public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* RFA: Don't canonicalize STT_SECTION syms
@ 2004-12-08 21:50 Daniel Jacobowitz
  2004-12-08 23:57 ` Alan Modra
  2004-12-10  3:15 ` Hans-Peter Nilsson
  0 siblings, 2 replies; 18+ messages in thread
From: Daniel Jacobowitz @ 2004-12-08 21:50 UTC (permalink / raw)
  To: binutils

I received a bug report about processing the output of a commercial linker
(Diab) using objcopy / strip.  This linker merges sections in ld -r, but
does not merge the section symbols.  Instead, the output contains an
STT_SECTION symbol with a non-zero value for the second input section.  Some
relocations point to the first section symbol, others to the second.  After
objcopy, they all point to the first.

My options were to fix the coalescing, by updating relocation addends, or
stop the coalescing.  Which turned out to be much easier.  Tested on
i686-pc-linux-gnu, and on the troublesome input files.

Thanks to Ian for advice about this problem.  Patch OK?

-- 
Daniel Jacobowitz

2004-12-08  Daniel Jacobowitz  <dan@codesourcery.com>

	* elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize
	ELF section symbols.

Index: elfcode.h
===================================================================
RCS file: /big/fsf/rsync/src-cvs/src/bfd/elfcode.h,v
retrieving revision 1.59
diff -u -p -r1.59 elfcode.h
--- elfcode.h	25 Nov 2004 02:14:10 -0000	1.59
+++ elfcode.h	8 Dec 2004 21:37:19 -0000
@@ -1293,11 +1293,7 @@ elf_slurp_reloc_table_from_section (bfd 
 	  ps = symbols + ELF_R_SYM (rela.r_info) - 1;
 	  s = *ps;
 
-	  /* Canonicalize ELF section symbols.  FIXME: Why?  */
-	  if ((s->flags & BSF_SECTION_SYM) == 0)
-	    relent->sym_ptr_ptr = ps;
-	  else
-	    relent->sym_ptr_ptr = s->section->symbol_ptr_ptr;
+	  relent->sym_ptr_ptr = ps;
 	}
 
       relent->addend = rela.r_addend;

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-08 21:50 RFA: Don't canonicalize STT_SECTION syms Daniel Jacobowitz
@ 2004-12-08 23:57 ` Alan Modra
  2004-12-10  3:15 ` Hans-Peter Nilsson
  1 sibling, 0 replies; 18+ messages in thread
From: Alan Modra @ 2004-12-08 23:57 UTC (permalink / raw)
  To: binutils

On Wed, Dec 08, 2004 at 04:50:11PM -0500, Daniel Jacobowitz wrote:
> Index: elfcode.h
> ===================================================================
> RCS file: /big/fsf/rsync/src-cvs/src/bfd/elfcode.h,v
> retrieving revision 1.59
> diff -u -p -r1.59 elfcode.h
> --- elfcode.h	25 Nov 2004 02:14:10 -0000	1.59
> +++ elfcode.h	8 Dec 2004 21:37:19 -0000
> @@ -1293,11 +1293,7 @@ elf_slurp_reloc_table_from_section (bfd 
>  	  ps = symbols + ELF_R_SYM (rela.r_info) - 1;
>  	  s = *ps;
>  
> -	  /* Canonicalize ELF section symbols.  FIXME: Why?  */
> -	  if ((s->flags & BSF_SECTION_SYM) == 0)
> -	    relent->sym_ptr_ptr = ps;
> -	  else
> -	    relent->sym_ptr_ptr = s->section->symbol_ptr_ptr;
> +	  relent->sym_ptr_ptr = ps;
>  	}
>  
>        relent->addend = rela.r_addend;

I've been tempted to remove this code myself, but never had a pressing
need.  I also didn't find any reason for it when I went looking.  So,
OK, let's see what breaks.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-08 21:50 RFA: Don't canonicalize STT_SECTION syms Daniel Jacobowitz
  2004-12-08 23:57 ` Alan Modra
@ 2004-12-10  3:15 ` Hans-Peter Nilsson
  2004-12-10  3:21   ` Daniel Jacobowitz
  1 sibling, 1 reply; 18+ messages in thread
From: Hans-Peter Nilsson @ 2004-12-10  3:15 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: binutils

On Wed, 8 Dec 2004, Daniel Jacobowitz wrote:
> 2004-12-08  Daniel Jacobowitz  <dan@codesourcery.com>
>
> 	* elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize
> 	ELF section symbols.

This patch caused the following errors in the gas testsuite for
mmix-knuth-mmixware:
...
Running /home/hp/combined/combined/gas/testsuite/gas/mmix/mmix.exp ...
FAIL: gas/mmix/basep-10
FAIL: gas/mmix/basep-11
FAIL: gas/mmix/basep-9
FAIL: gas/mmix/comment-3
FAIL: gas/mmix/fb-1
FAIL: gas/mmix/fb-2
FAIL: gas/mmix/greg1
FAIL: gas/mmix/greg1a
FAIL: gas/mmix/greg2
FAIL: gas/mmix/greg2a
FAIL: gas/mmix/greg3
FAIL: gas/mmix/greg4
FAIL: gas/mmix/greg5
FAIL: gas/mmix/greg6
FAIL: gas/mmix/greg7
FAIL: gas/mmix/greg8
FAIL: gas/mmix/odd-1
FAIL: gas/mmix/prefix1
FAIL: gas/mmix/prefix3
FAIL: gas/mmix/relax2

The error seems in all cases to be that the section name in
relocs isn't printed but instead, nothing.  For example, the
first error from gas.log:

...
../as-new  -linker-allocated-gregs -o dump.o
/home/hp/combined/combined/gas/testsuite/gas/mmix/basep-10.s
/home/hp/combined/mmixware-sim/gas/testsuite/../../binutils/objdump  -srt dump.o > dump.out
regexp_diff match failure
regexp "^0+a R_MMIX_REG        \.MMIX\.reg_contents$"
line   "000000000000000a R_MMIX_REG        "
regexp_diff match failure
regexp "^0+e R_MMIX_REG        \.MMIX\.reg_contents\+0x0+8$"
line   "000000000000000e R_MMIX_REG        +0x0000000000000008"
regexp_diff match failure
regexp "^0+12 R_MMIX_REG        \.MMIX\.reg_contents\+0x0+8$"
line   "0000000000000012 R_MMIX_REG        +0x0000000000000008"
regexp_diff match failure
regexp "^0+8 R_MMIX_64         \.text\+0x0+4$"
line   "0000000000000008 R_MMIX_64         +0x0000000000000004"
FAIL: gas/mmix/basep-10

I'm a bit surprised that noone else has reported a problem; this
doesn't seem to be specfific for the MMIX port or some
unconventional corner of it.

Either the patch is in error, or I guess some tweak is needed to
objdump for section symbols.  I haven't ran gdb on this yet, but
my bets are on the latter guess, since apparently nothing else
broke (gcc testsuite including c++,objc,libstdc++-v3 included).

brgds, H-P

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-10  3:15 ` Hans-Peter Nilsson
@ 2004-12-10  3:21   ` Daniel Jacobowitz
  2004-12-10 12:14     ` Alan Modra
  0 siblings, 1 reply; 18+ messages in thread
From: Daniel Jacobowitz @ 2004-12-10  3:21 UTC (permalink / raw)
  To: Hans-Peter Nilsson; +Cc: binutils

On Thu, Dec 09, 2004 at 10:14:47PM -0500, Hans-Peter Nilsson wrote:
> The error seems in all cases to be that the section name in
> relocs isn't printed but instead, nothing.  For example, the
> first error from gas.log:

> I'm a bit surprised that noone else has reported a problem; this
> doesn't seem to be specfific for the MMIX port or some
> unconventional corner of it.

The MMIX port must be doing something different with section symbols
than other targets; I tested a couple of other platforms.  Could you
show me readelf -Ss output for an affected object?

-- 
Daniel Jacobowitz

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-10  3:21   ` Daniel Jacobowitz
@ 2004-12-10 12:14     ` Alan Modra
  2004-12-10 12:56       ` Alan Modra
  0 siblings, 1 reply; 18+ messages in thread
From: Alan Modra @ 2004-12-10 12:14 UTC (permalink / raw)
  To: Hans-Peter Nilsson, binutils

On Thu, Dec 09, 2004 at 10:21:32PM -0500, Daniel Jacobowitz wrote:
> On Thu, Dec 09, 2004 at 10:14:47PM -0500, Hans-Peter Nilsson wrote:
> > The error seems in all cases to be that the section name in
> > relocs isn't printed but instead, nothing.  For example, the
> > first error from gas.log:
> 
> > I'm a bit surprised that noone else has reported a problem; this
> > doesn't seem to be specfific for the MMIX port or some
> > unconventional corner of it.
> 
> The MMIX port must be doing something different with section symbols
> than other targets; I tested a couple of other platforms.

No, it's just that the MMIX port has one of the best testsuites.
Try "objdump -r" on any other platform.

>  Could you
> show me readelf -Ss output for an affected object?

readelf won't show anything wrong.  The problem is that objdump uses
the canonicalized symbol name, and the real ELF section symbols have
a name of "".  So you get an empty string displayed instead of the
section name.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-10 12:14     ` Alan Modra
@ 2004-12-10 12:56       ` Alan Modra
  2004-12-10 14:04         ` Alan Modra
  0 siblings, 1 reply; 18+ messages in thread
From: Alan Modra @ 2004-12-10 12:56 UTC (permalink / raw)
  To: Hans-Peter Nilsson, binutils

On Fri, Dec 10, 2004 at 10:44:23PM +1030, Alan Modra wrote:
> readelf won't show anything wrong.  The problem is that objdump uses
> the canonicalized symbol name, and the real ELF section symbols have
> a name of "".  So you get an empty string displayed instead of the
> section name.

I think the right thing to do is to give canonicalized section symbols a
name.  This of course will change "objdump -x", breaking other parts
of the testsuite.  Oh well.

I'm also renaming bfd_elf_local_sym_name because it works perfectly well
on global syms.  This part I'll check in immediately, but the functional
change I'll leave for a while, at least until I see how much damage this
does to the testsuite.

bfd/ChangeLog
	* elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name.
	(group_signature): Update.
	* elf-bfd.h (bfd_elf_sym_name): Update.
	* elf32-ppc.c (ppc_elf_relocate_section): Update.
	* elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc) 
	(ppc64_elf_relocate_section): Update
	* elflink.c (elf_link_input_bfd): Update.
	* elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name.

Index: bfd/elfcode.h
===================================================================
RCS file: /cvs/src/src/bfd/elfcode.h,v
retrieving revision 1.60
diff -u -p -r1.60 elfcode.h
--- bfd/elfcode.h	9 Dec 2004 16:17:42 -0000	1.60
+++ bfd/elfcode.h	10 Dec 2004 12:46:55 -0000
@@ -1086,9 +1086,7 @@ elf_slurp_symbol_table (bfd *abfd, asymb
 	  memcpy (&sym->internal_elf_sym, isym, sizeof (Elf_Internal_Sym));
 	  sym->symbol.the_bfd = abfd;
 
-	  sym->symbol.name = bfd_elf_string_from_elf_section (abfd,
-							      hdr->sh_link,
-							      isym->st_name);
+	  sym->symbol.name = bfd_elf_sym_name (abfd, isym);
 
 	  sym->symbol.value = isym->st_value;
 
@@ -1217,7 +1215,7 @@ error_return:
   return -1;
 }
 
-/* Read  relocations for ASECT from REL_HDR.  There are RELOC_COUNT of
+/* Read relocations for ASECT from REL_HDR.  There are RELOC_COUNT of
    them.  */
 
 static bfd_boolean
Index: bfd/elf-bfd.h
===================================================================
RCS file: /cvs/src/src/bfd/elf-bfd.h,v
retrieving revision 1.164
diff -u -p -r1.164 elf-bfd.h
--- bfd/elf-bfd.h	16 Nov 2004 10:16:27 -0000	1.164
+++ bfd/elf-bfd.h	10 Dec 2004 12:46:45 -0000
@@ -1357,7 +1357,7 @@ extern char *bfd_elf_get_str_section
 extern Elf_Internal_Sym *bfd_elf_get_elf_syms
   (bfd *, Elf_Internal_Shdr *, size_t, size_t, Elf_Internal_Sym *, void *,
    Elf_External_Sym_Shndx *);
-extern const char *bfd_elf_local_sym_name
+extern const char *bfd_elf_sym_name
   (bfd *, Elf_Internal_Sym *);
 
 extern bfd_boolean _bfd_elf_copy_private_bfd_data
Index: bfd/elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.255
diff -u -p -r1.255 elf.c
--- bfd/elf.c	3 Dec 2004 13:59:36 -0000	1.255
+++ bfd/elf.c	10 Dec 2004 12:46:46 -0000
@@ -405,7 +405,7 @@ bfd_elf_get_elf_syms (bfd *ibfd,
 
 /* Look up a symbol name.  */
 const char *
-bfd_elf_local_sym_name (bfd *abfd, Elf_Internal_Sym *isym)
+bfd_elf_sym_name (bfd *abfd, Elf_Internal_Sym *isym)
 {
   unsigned int iname = isym->st_name;
   unsigned int shindex = elf_tdata (abfd)->symtab_hdr.sh_link;
@@ -448,7 +448,7 @@ group_signature (bfd *abfd, Elf_Internal
 			    &isym, esym, &eshndx) == NULL)
     return NULL;
 
-  return bfd_elf_local_sym_name (abfd, &isym);
+  return bfd_elf_sym_name (abfd, &isym);
 }
 
 /* Set next_in_group list pointer, and group name for NEWSECT.  */
Index: bfd/elf32-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-ppc.c,v
retrieving revision 1.129
diff -u -p -r1.129 elf32-ppc.c
--- bfd/elf32-ppc.c	21 Oct 2004 15:28:23 -0000	1.129
+++ bfd/elf32-ppc.c	10 Dec 2004 12:46:49 -0000
@@ -4694,7 +4694,7 @@ ppc_elf_relocate_section (bfd *output_bf
 	{
 	  sym = local_syms + r_symndx;
 	  sec = local_sections[r_symndx];
-	  sym_name = bfd_elf_local_sym_name (input_bfd, sym);
+	  sym_name = bfd_elf_sym_name (input_bfd, sym);
 
 	  relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
 	}
Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.178
diff -u -p -r1.178 elf64-ppc.c
--- bfd/elf64-ppc.c	4 Nov 2004 11:55:12 -0000	1.178
+++ bfd/elf64-ppc.c	10 Dec 2004 12:46:54 -0000
@@ -6006,7 +6006,7 @@ ppc64_elf_edit_opd (bfd *obfd, struct bf
 	      if (h != NULL)
 		sym_name = h->root.root.string;
 	      else
-		sym_name = bfd_elf_local_sym_name (ibfd, sym);
+		sym_name = bfd_elf_sym_name (ibfd, sym);
 
 	      (*_bfd_error_handler)
 		(_("%B: undefined sym `%s' in .opd section"),
@@ -7051,7 +7051,7 @@ ppc64_elf_edit_toc (bfd *obfd ATTRIBUTE_
 		      {
 			(*_bfd_error_handler)
 			  (_("%s defined in removed toc entry"),
-			   bfd_elf_local_sym_name (ibfd, sym));
+			   bfd_elf_sym_name (ibfd, sym));
 			sym->st_value = 0;
 			sym->st_shndx = SHN_ABS;
 		      }
@@ -9142,7 +9142,7 @@ ppc64_elf_relocate_section (bfd *output_
 
 	  sym = local_syms + r_symndx;
 	  sec = local_sections[r_symndx];
-	  sym_name = bfd_elf_local_sym_name (input_bfd, sym);
+	  sym_name = bfd_elf_sym_name (input_bfd, sym);
 	  sym_type = ELF64_ST_TYPE (sym->st_info);
 	  relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
 	  opd_adjust = get_opd_info (sec);
Index: bfd/elflink.c
===================================================================
RCS file: /cvs/src/src/bfd/elflink.c,v
retrieving revision 1.119
diff -u -p -r1.119 elflink.c
--- bfd/elflink.c	1 Dec 2004 23:23:11 -0000	1.119
+++ bfd/elflink.c	10 Dec 2004 12:47:00 -0000
@@ -6819,7 +6819,7 @@ elf_link_input_bfd (struct elf_final_lin
 		    {
 		      Elf_Internal_Sym *sym = isymbuf + r_symndx;
 		      ps = &finfo->sections[r_symndx];
-		      sym_name = bfd_elf_local_sym_name (input_bfd, sym);
+		      sym_name = bfd_elf_sym_name (input_bfd, sym);
 		    }
 
 		  /* Complain if the definition comes from a

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-10 12:56       ` Alan Modra
@ 2004-12-10 14:04         ` Alan Modra
  2004-12-10 15:14           ` Hans-Peter Nilsson
  0 siblings, 1 reply; 18+ messages in thread
From: Alan Modra @ 2004-12-10 14:04 UTC (permalink / raw)
  To: Hans-Peter Nilsson, binutils

On Fri, Dec 10, 2004 at 11:26:25PM +1030, Alan Modra wrote:
> I'm also renaming bfd_elf_local_sym_name because it works perfectly well
> on global syms.

While I was at it, I should have committed a change to pass the symbol
table header too.  We're going to need to be able to look up dynamic
syms too.

	* elf.c (bfd_elf_sym_name): Add symtab_hdr param.
	(group_signature): Update call.
	* elf-bfd.h (bfd_elf_sym_name): Update.
	* elf32-ppc.c (ppc_elf_relocate_section): Update.
	* elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc) 
	(ppc64_elf_relocate_section): Update
	* elflink.c (elf_link_input_bfd): Update.

Index: bfd/elf-bfd.h
===================================================================
RCS file: /cvs/src/src/bfd/elf-bfd.h,v
retrieving revision 1.165
diff -u -p -r1.165 elf-bfd.h
--- bfd/elf-bfd.h	10 Dec 2004 13:18:38 -0000	1.165
+++ bfd/elf-bfd.h	10 Dec 2004 14:00:12 -0000
@@ -1358,7 +1358,7 @@ extern Elf_Internal_Sym *bfd_elf_get_elf
   (bfd *, Elf_Internal_Shdr *, size_t, size_t, Elf_Internal_Sym *, void *,
    Elf_External_Sym_Shndx *);
 extern const char *bfd_elf_sym_name
-  (bfd *, Elf_Internal_Sym *);
+  (bfd *, Elf_Internal_Shdr *, Elf_Internal_Sym *);
 
 extern bfd_boolean _bfd_elf_copy_private_bfd_data
   (bfd *, bfd *);
Index: bfd/elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.257
diff -u -p -r1.257 elf.c
--- bfd/elf.c	10 Dec 2004 13:18:37 -0000	1.257
+++ bfd/elf.c	10 Dec 2004 14:00:19 -0000
@@ -405,10 +405,12 @@ bfd_elf_get_elf_syms (bfd *ibfd,
 
 /* Look up a symbol name.  */
 const char *
-bfd_elf_sym_name (bfd *abfd, Elf_Internal_Sym *isym)
+bfd_elf_sym_name (bfd *abfd,
+		  Elf_Internal_Shdr *symtab_hdr,
+		  Elf_Internal_Sym *isym)
 {
   unsigned int iname = isym->st_name;
-  unsigned int shindex = elf_tdata (abfd)->symtab_hdr.sh_link;
+  unsigned int shindex = symtab_hdr->sh_link;
   if (iname == 0 && ELF_ST_TYPE (isym->st_info) == STT_SECTION
       /* Check for a bogus st_shndx to avoid crashing.  */
       && isym->st_shndx < elf_numsections (abfd)
@@ -451,7 +453,7 @@ group_signature (bfd *abfd, Elf_Internal
 			    &isym, esym, &eshndx) == NULL)
     return NULL;
 
-  return bfd_elf_sym_name (abfd, &isym);
+  return bfd_elf_sym_name (abfd, hdr, &isym);
 }
 
 /* Set next_in_group list pointer, and group name for NEWSECT.  */
Index: bfd/elf32-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-ppc.c,v
retrieving revision 1.130
diff -u -p -r1.130 elf32-ppc.c
--- bfd/elf32-ppc.c	10 Dec 2004 13:18:38 -0000	1.130
+++ bfd/elf32-ppc.c	10 Dec 2004 14:00:19 -0000
@@ -4694,7 +4694,7 @@ ppc_elf_relocate_section (bfd *output_bf
 	{
 	  sym = local_syms + r_symndx;
 	  sec = local_sections[r_symndx];
-	  sym_name = bfd_elf_sym_name (input_bfd, sym);
+	  sym_name = bfd_elf_sym_name (input_bfd, symtab_hdr, sym);
 
 	  relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
 	}
Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.179
diff -u -p -r1.179 elf64-ppc.c
--- bfd/elf64-ppc.c	10 Dec 2004 13:18:39 -0000	1.179
+++ bfd/elf64-ppc.c	10 Dec 2004 14:00:24 -0000
@@ -6006,7 +6006,7 @@ ppc64_elf_edit_opd (bfd *obfd, struct bf
 	      if (h != NULL)
 		sym_name = h->root.root.string;
 	      else
-		sym_name = bfd_elf_sym_name (ibfd, sym);
+		sym_name = bfd_elf_sym_name (ibfd, symtab_hdr, sym);
 
 	      (*_bfd_error_handler)
 		(_("%B: undefined sym `%s' in .opd section"),
@@ -7051,7 +7051,7 @@ ppc64_elf_edit_toc (bfd *obfd ATTRIBUTE_
 		      {
 			(*_bfd_error_handler)
 			  (_("%s defined in removed toc entry"),
-			   bfd_elf_sym_name (ibfd, sym));
+			   bfd_elf_sym_name (ibfd, symtab_hdr, sym));
 			sym->st_value = 0;
 			sym->st_shndx = SHN_ABS;
 		      }
@@ -9142,7 +9142,7 @@ ppc64_elf_relocate_section (bfd *output_
 
 	  sym = local_syms + r_symndx;
 	  sec = local_sections[r_symndx];
-	  sym_name = bfd_elf_sym_name (input_bfd, sym);
+	  sym_name = bfd_elf_sym_name (input_bfd, symtab_hdr, sym);
 	  sym_type = ELF64_ST_TYPE (sym->st_info);
 	  relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
 	  opd_adjust = get_opd_info (sec);
Index: bfd/elflink.c
===================================================================
RCS file: /cvs/src/src/bfd/elflink.c,v
retrieving revision 1.120
diff -u -p -r1.120 elflink.c
--- bfd/elflink.c	10 Dec 2004 13:18:40 -0000	1.120
+++ bfd/elflink.c	10 Dec 2004 14:00:31 -0000
@@ -6819,7 +6819,7 @@ elf_link_input_bfd (struct elf_final_lin
 		    {
 		      Elf_Internal_Sym *sym = isymbuf + r_symndx;
 		      ps = &finfo->sections[r_symndx];
-		      sym_name = bfd_elf_sym_name (input_bfd, sym);
+		      sym_name = bfd_elf_sym_name (input_bfd, symtab_hdr, sym);
 		    }
 
 		  /* Complain if the definition comes from a

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-10 14:04         ` Alan Modra
@ 2004-12-10 15:14           ` Hans-Peter Nilsson
  2004-12-10 15:19             ` Daniel Jacobowitz
  0 siblings, 1 reply; 18+ messages in thread
From: Hans-Peter Nilsson @ 2004-12-10 15:14 UTC (permalink / raw)
  To: amodra; +Cc: binutils

> Date: Sat, 11 Dec 2004 00:34:31 +1030
> From: Alan Modra <amodra@bigpond.net.au>

> On Fri, Dec 10, 2004 at 11:26:25PM +1030, Alan Modra wrote:
> > I'm also renaming bfd_elf_local_sym_name because it works perfectly well
> > on global syms.
> 
> While I was at it, I should have committed a change to pass the symbol
> table header too.  We're going to need to be able to look up dynamic
> syms too.

The cris-axis-elf gas testsuite failed too.  It still fails with
the patch above, which looks like it's the latest.  I presume
there are no pending changes, e.g. to objdump?

gas.log:
...
../as-new   -o dump.o /n/asic/slask/hp/autobinutest/gas/move-test.s
/n/asic_slask/hp/autobinutest/gas/testsuite/../../binutils/objdump  -rs dump.o > dump.out
regexp_diff match failure
regexp "^0+28c (R_CRIS_)?32[    ]+\.text$"
line   "0000028c R_CRIS_32         "
FAIL: x-to-word-sreg-dcr1-special

(What?  Just one test-case affected?  Yup, looks like it.  Huh.)

I'll look closer at it in the week-end if it's not fixed by
then.

brgds, H-P

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-10 15:14           ` Hans-Peter Nilsson
@ 2004-12-10 15:19             ` Daniel Jacobowitz
  2004-12-11  4:21               ` Alan Modra
  0 siblings, 1 reply; 18+ messages in thread
From: Daniel Jacobowitz @ 2004-12-10 15:19 UTC (permalink / raw)
  To: Hans-Peter Nilsson; +Cc: amodra, binutils

On Fri, Dec 10, 2004 at 04:14:31PM +0100, Hans-Peter Nilsson wrote:
> > Date: Sat, 11 Dec 2004 00:34:31 +1030
> > From: Alan Modra <amodra@bigpond.net.au>
> 
> > On Fri, Dec 10, 2004 at 11:26:25PM +1030, Alan Modra wrote:
> > > I'm also renaming bfd_elf_local_sym_name because it works perfectly well
> > > on global syms.
> > 
> > While I was at it, I should have committed a change to pass the symbol
> > table header too.  We're going to need to be able to look up dynamic
> > syms too.
> 
> The cris-axis-elf gas testsuite failed too.  It still fails with
> the patch above, which looks like it's the latest.  I presume
> there are no pending changes, e.g. to objdump?

Alan wrote:
 > I'm also renaming bfd_elf_local_sym_name because it works perfectly well 
 > on global syms.  This part I'll check in immediately, but the functional
 > change I'll leave for a while, at least until I see how much damage this
 > does to the testsuite.

so I assume there is more.

-- 
Daniel Jacobowitz

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-10 15:19             ` Daniel Jacobowitz
@ 2004-12-11  4:21               ` Alan Modra
  2004-12-11  4:34                 ` Daniel Jacobowitz
  0 siblings, 1 reply; 18+ messages in thread
From: Alan Modra @ 2004-12-11  4:21 UTC (permalink / raw)
  To: Hans-Peter Nilsson, binutils

On Fri, Dec 10, 2004 at 10:19:29AM -0500, Daniel Jacobowitz wrote:
> so I assume there is more.

Yeah.

bfd/ChangeLog
	* elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
	canonical sections syms have a name.

gas/testsuite/ChangeLog
	* gas/alpha/elf-usepv-1.d: Update for changed section syms.
	* gas/arm/mapping.d: Likewise.
	* gas/mips/tmips16-e.d: Likewise.
	* gas/mips/tmips16-f.d: Likewise.
	* gas/mmix/align-1.d: Likewise.
	* gas/mmix/basep-10.d: Likewise.
	* gas/mmix/basep-11.d: Likewise.
	* gas/mmix/basep-7.d: Likewise.
	* gas/mmix/basep-8.d: Likewise.
	* gas/mmix/basep-9.d: Likewise.
	* gas/mmix/builtin1.d: Likewise.
	* gas/mmix/builtin2.d: Likewise.
	* gas/mmix/builtin3.d: Likewise.
	* gas/mmix/bz-c.d: Likewise.
	* gas/mmix/comment-2.d: Likewise.
	* gas/mmix/comment-3.d: Likewise.
	* gas/mmix/cons-2.d: Likewise.
	* gas/mmix/fb-1.d: Likewise.
	* gas/mmix/fb-2.d: Likewise.
	* gas/mmix/geta-c.d: Likewise.
	* gas/mmix/greg1.d: Likewise.
	* gas/mmix/greg1a.d: Likewise.
	* gas/mmix/greg2.d: Likewise.
	* gas/mmix/greg2a.d: Likewise.
	* gas/mmix/greg3.d: Likewise.
	* gas/mmix/greg4.d: Likewise.
	* gas/mmix/greg5.d: Likewise.
	* gas/mmix/greg6.d: Likewise.
	* gas/mmix/greg7.d: Likewise.
	* gas/mmix/greg8.d: Likewise.
	* gas/mmix/is-1.d: Likewise.
	* gas/mmix/jump-c.d: Likewise.
	* gas/mmix/local-1.d: Likewise.
	* gas/mmix/locall1.d: Likewise.
	* gas/mmix/odd-1.d: Likewise.
	* gas/mmix/op-0-1.d: Likewise.
	* gas/mmix/op-0-1s.d: Likewise.
	* gas/mmix/op-0-2.d: Likewise.
	* gas/mmix/prefix1.d: Likewise.
	* gas/mmix/prefix2.d: Likewise.
	* gas/mmix/prefix3.d: Likewise.
	* gas/mmix/pseudo-1.d: Likewise.
	* gas/mmix/pushj-c.d: Likewise.
	* gas/mmix/pushj-cs.d: Likewise.
	* gas/mmix/sym-1.d: Likewise.
	* gas/mmix/weak1-s.d: Likewise.
	* gas/mmix/weak1.d: Likewise.
	* gas/mmix/zerop-1.d: Likewise.
	* gas/ppc/power4.d: Likewise.
	* gas/ppc/test1elf32.d: Likewise.
	* gas/ppc/test1elf64.d: Likewise.
	* gas/sh/sh64/datal32-3.d: Likewise.
	* gas/sh/sh64/datal64-3.d: Likewise.
	* gas/sh/sh64/localcom-1.d: Likewise.

ld/testsuite/ChangeLog
	* ld-mmix/bpo-1.d: Update for changed section syms.
	* 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/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/locdo-1.d: Likewise.
	* ld-mmix/loct-1.d: Likewise.
	* ld-mmix/locto-1.d: Likewise.
	* ld-mmix/start-1.d: Likewise.
	* ld-sh/sh64/abi32.xd: Likewise.
	* ld-sh/sh64/abi64.xd: Likewise.
	* ld-sh/sh64/cmpct1.xd: Likewise.
	* ld-sh/sh64/mix1.xd: Likewise.
	* ld-sh/sh64/mix2.xd: Likewise.
	* ld-sh/sh64/rel32.xd: Likewise.
	* ld-sh/sh64/rel64.xd: Likewise.
	* ld-sh/sh64/shdl32.xd: Likewise.
	* ld-sh/sh64/shdl64.xd: Likewise.

Index: bfd/elfcode.h
===================================================================
RCS file: /cvs/src/src/bfd/elfcode.h,v
retrieving revision 1.60
diff -u -p -r1.60 elfcode.h
--- bfd/elfcode.h	9 Dec 2004 16:17:42 -0000	1.60
+++ bfd/elfcode.h	11 Dec 2004 01:45:28 -0000
@@ -1086,9 +1086,7 @@ elf_slurp_symbol_table (bfd *abfd, asymb
 	  memcpy (&sym->internal_elf_sym, isym, sizeof (Elf_Internal_Sym));
 	  sym->symbol.the_bfd = abfd;
 
-	  sym->symbol.name = bfd_elf_string_from_elf_section (abfd,
-							      hdr->sh_link,
-							      isym->st_name);
+	  sym->symbol.name = bfd_elf_sym_name (abfd, hdr, isym);
 
 	  sym->symbol.value = isym->st_value;
 
@@ -1217,7 +1215,7 @@ error_return:
   return -1;
 }
 
-/* Read  relocations for ASECT from REL_HDR.  There are RELOC_COUNT of
+/* Read relocations for ASECT from REL_HDR.  There are RELOC_COUNT of
    them.  */
 
 static bfd_boolean
Index: gas/testsuite/gas/alpha/elf-usepv-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/alpha/elf-usepv-1.d,v
retrieving revision 1.2
diff -u -p -r1.2 elf-usepv-1.d
--- gas/testsuite/gas/alpha/elf-usepv-1.d	17 Jun 2003 11:16:16 -0000	1.2
+++ gas/testsuite/gas/alpha/elf-usepv-1.d	11 Dec 2004 01:45:45 -0000
@@ -4,8 +4,8 @@
 .*:     file format elf64-alpha.*
 
 SYMBOL TABLE:
-0*0000000 l    d  .text	0*0000000 
-0*0000000 l    d  .data	0*0000000 
-0*0000000 l    d  .bss	0*0000000 
-0*0000000 l       .text	0*0000000 0x80 foo
-0*0000004 l       .text	0*0000000 0x88 bar
+0*0000000 l    d  \.text	0*0000000 (|\.text)
+0*0000000 l    d  \.data	0*0000000 (|\.data)
+0*0000000 l    d  \.bss	0*0000000 (|\.bss)
+0*0000000 l       \.text	0*0000000 0x80 foo
+0*0000004 l       \.text	0*0000000 0x88 bar
Index: gas/testsuite/gas/arm/mapping.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/arm/mapping.d,v
retrieving revision 1.3
diff -u -p -r1.3 mapping.d
--- gas/testsuite/gas/arm/mapping.d	17 Nov 2004 17:50:24 -0000	1.3
+++ gas/testsuite/gas/arm/mapping.d	11 Dec 2004 01:45:45 -0000
@@ -6,13 +6,13 @@
 .*: +file format.*arm.*
 
 SYMBOL TABLE:
-0+00 l    d  .text	0+0 
-0+00 l    d  .data	0+0 
-0+00 l    d  .bss	0+0 
+0+00 l    d  .text	0+0 (|.text)
+0+00 l    d  .data	0+0 (|.data)
+0+00 l    d  .bss	0+0 (|.bss)
 0+00 l     F .text	0+0 \$a
 0+08 l     F .text	0+0 \$t
 0+00 l     O .data	0+0 \$d
-0+00 l    d  foo	0+0 
+0+00 l    d  foo	0+0 (|foo)
 0+00 l     F foo	0+0 \$t
 0+00 g       .text	0+0 mapping
 0+08 g     F .text	0+0 thumb_mapping
Index: gas/testsuite/gas/mips/tmips16-e.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/tmips16-e.d,v
retrieving revision 1.5
diff -u -p -r1.5 tmips16-e.d
--- gas/testsuite/gas/mips/tmips16-e.d	3 Sep 2003 08:26:51 -0000	1.5
+++ gas/testsuite/gas/mips/tmips16-e.d	11 Dec 2004 01:45:46 -0000
@@ -8,14 +8,14 @@
 .*: +file format elf.*mips.*
 
 SYMBOL TABLE:
-0+0000000 l    d  \.text	0+0000000 
-0+0000000 l    d  \.data	0+0000000 
-0+0000000 l    d  \.bss	0+0000000 
+0+0000000 l    d  \.text	0+0000000 (|\.text)
+0+0000000 l    d  \.data	0+0000000 (|\.data)
+0+0000000 l    d  \.bss	0+0000000 (|\.bss)
 0+0000002 l       \.text	0+0000000 0xf0 l1
 0+0000004 l       \.text	0+0000000 0xf0 L1.1
-0+0000000 l    d  foo	0+0000000 
-0+0000000 l    d  \.reginfo	0+0000000 
-0+0000000 l    d  \.(mdebug|pdr)	0+0000000 
+0+0000000 l    d  foo	0+0000000 (|foo)
+0+0000000 l    d  \.reginfo	0+0000000 (|\.reginfo)
+0+0000000 l    d  \.(mdebug|pdr)	0+0000000 (|\.mdebug|\.pdr)
 0+0000000         \*UND\*	0+0000000 g1
 
 
Index: gas/testsuite/gas/mips/tmips16-f.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/tmips16-f.d,v
retrieving revision 1.3
diff -u -p -r1.3 tmips16-f.d
--- gas/testsuite/gas/mips/tmips16-f.d	3 Sep 2003 08:26:51 -0000	1.3
+++ gas/testsuite/gas/mips/tmips16-f.d	11 Dec 2004 01:45:46 -0000
@@ -8,13 +8,13 @@
 .*: +file format elf.*mips.*
 
 SYMBOL TABLE:
-0+0000000 l    d  \.text	0+0000000 
-0+0000000 l    d  \.data	0+0000000 
-0+0000000 l    d  \.bss	0+0000000 
+0+0000000 l    d  \.text	0+0000000 (|\.text)
+0+0000000 l    d  \.data	0+0000000 (|\.data)
+0+0000000 l    d  \.bss	0+0000000 (|\.bss)
 0+0000002 l       \.text	0+0000000 0xf0 l1
-0+0000000 l    d  foo	0+0000000 
-0+0000000 l    d  \.reginfo	0+0000000 
-0+0000000 l    d  \.(mdebug|pdr)	0+0000000 
+0+0000000 l    d  foo	0+0000000 (|foo)
+0+0000000 l    d  \.reginfo	0+0000000 (|\.reginfo)
+0+0000000 l    d  \.(mdebug|pdr)	0+0000000 (|\.mdebug|\.pdr)
 
 
 RELOCATION RECORDS FOR \[foo\]:
Index: gas/testsuite/gas/mmix/align-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/align-1.d,v
retrieving revision 1.2
diff -u -p -r1.2 align-1.d
--- gas/testsuite/gas/mmix/align-1.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/align-1.d	11 Dec 2004 01:45:46 -0000
@@ -3,9 +3,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0000000000000000 l    d  \.text	0000000000000000 
-0000000000000000 l    d  \.data	0000000000000000 
-0000000000000000 l    d  \.bss	0000000000000000 
+0000000000000000 l    d  \.text	0000000000000000 (|\.text)
+0000000000000000 l    d  \.data	0000000000000000 (|\.data)
+0000000000000000 l    d  \.bss	0000000000000000 (|\.bss)
 0000000000000002 l       \.text	0000000000000000 a
 0000000000000008 l       \.text	0000000000000000 b
 0000000000000010 l       \.text	0000000000000000 c
Index: gas/testsuite/gas/mmix/basep-10.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/basep-10.d,v
retrieving revision 1.2
diff -u -p -r1.2 basep-10.d
--- gas/testsuite/gas/mmix/basep-10.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/basep-10.d	11 Dec 2004 01:45:46 -0000
@@ -4,12 +4,12 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+4 l       \.text	0+ w4
 0+10 l       \.text	0+ w2
-0+ l    d  \.MMIX\.reg_contents	0+ 
+0+ l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+c  w      \.text	0+ w1
 0+8  w      \.text	0+ w3
 
Index: gas/testsuite/gas/mmix/basep-11.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/basep-11.d,v
retrieving revision 1.2
diff -u -p -r1.2 basep-11.d
--- gas/testsuite/gas/mmix/basep-11.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/basep-11.d	11 Dec 2004 01:45:46 -0000
@@ -4,9 +4,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+4 l       \.text	0+ w4
 0+10 l       \.text	0+ w2
 0+c  w      \.text	0+ w1
Index: gas/testsuite/gas/mmix/basep-7.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/basep-7.d,v
retrieving revision 1.1
diff -u -p -r1.1 basep-7.d
--- gas/testsuite/gas/mmix/basep-7.d	1 Feb 2002 08:16:04 -0000	1.1
+++ gas/testsuite/gas/mmix/basep-7.d	11 Dec 2004 01:45:46 -0000
@@ -9,9 +9,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+2a l       \*ABS\*	0+ a
 0+70 l       \*ABS\*	0+ b
 0+48 l       \*ABS\*	0+ c
Index: gas/testsuite/gas/mmix/basep-8.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/basep-8.d,v
retrieving revision 1.2
diff -u -p -r1.2 basep-8.d
--- gas/testsuite/gas/mmix/basep-8.d	13 Dec 2003 23:32:25 -0000	1.2
+++ gas/testsuite/gas/mmix/basep-8.d	11 Dec 2004 01:45:46 -0000
@@ -9,9 +9,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l     O \.bss	0+4 comm_symbol3
 0+4 l     O \.bss	0+4 comm_symbol4
 0+4       O \*COM\*	0+4 comm_symbol1
Index: gas/testsuite/gas/mmix/basep-9.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/basep-9.d,v
retrieving revision 1.3
diff -u -p -r1.3 basep-9.d
--- gas/testsuite/gas/mmix/basep-9.d	13 Dec 2003 23:32:25 -0000	1.3
+++ gas/testsuite/gas/mmix/basep-9.d	11 Dec 2004 01:45:46 -0000
@@ -3,12 +3,12 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l     O \.bss	0+4 comm_symbol3
 0+4 l     O \.bss	0+4 comm_symbol4
-0+ l    d  \.MMIX\.reg_contents	0+ 
+0+ l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+4       O \*COM\*	0+4 comm_symbol1
 
 RELOCATION RECORDS FOR \[\.text\]:
Index: gas/testsuite/gas/mmix/builtin1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/builtin1.d,v
retrieving revision 1.1
diff -u -p -r1.1 builtin1.d
--- gas/testsuite/gas/mmix/builtin1.d	30 Oct 2001 15:20:07 -0000	1.1
+++ gas/testsuite/gas/mmix/builtin1.d	11 Dec 2004 01:45:46 -0000
@@ -7,9 +7,9 @@
 
 SYMBOL TABLE:
 0+14 l       \*ABS\*	0+ rJ
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ g     F \.text	0+ Main
 
 
Index: gas/testsuite/gas/mmix/builtin2.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/builtin2.d,v
retrieving revision 1.1
diff -u -p -r1.1 builtin2.d
--- gas/testsuite/gas/mmix/builtin2.d	30 Oct 2001 15:20:07 -0000	1.1
+++ gas/testsuite/gas/mmix/builtin2.d	11 Dec 2004 01:45:46 -0000
@@ -8,9 +8,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+14 l       \*ABS\*	0+ rJ
 0+ g     F \.text	0+ Main
 
Index: gas/testsuite/gas/mmix/builtin3.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/builtin3.d,v
retrieving revision 1.1
diff -u -p -r1.1 builtin3.d
--- gas/testsuite/gas/mmix/builtin3.d	30 Oct 2001 15:20:07 -0000	1.1
+++ gas/testsuite/gas/mmix/builtin3.d	11 Dec 2004 01:45:46 -0000
@@ -9,9 +9,9 @@
 
 SYMBOL TABLE:
 0+14 l       \*ABS\*	0+ rJ
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ g     F \.text	0+ Main
 
 
Index: gas/testsuite/gas/mmix/bz-c.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/bz-c.d,v
retrieving revision 1.1
diff -u -p -r1.1 bz-c.d
--- gas/testsuite/gas/mmix/bz-c.d	30 Oct 2001 15:20:07 -0000	1.1
+++ gas/testsuite/gas/mmix/bz-c.d	11 Dec 2004 01:45:46 -0000
@@ -4,9 +4,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  .text	0+ 
-0+ l    d  .data	0+ 
-0+ l    d  .bss	0+ 
+0+ l    d  .text	0+ (|\.text)
+0+ l    d  .data	0+ (|\.data)
+0+ l    d  .bss	0+ (|\.bss)
 ffff0000ffff0000 l       \*ABS\*	0+ i1
 ffff0000ffff0000 l       \*ABS\*	0+ i2
 0+ g     F .text	0+ Main
Index: gas/testsuite/gas/mmix/comment-2.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/comment-2.d,v
retrieving revision 1.1
diff -u -p -r1.1 comment-2.d
--- gas/testsuite/gas/mmix/comment-2.d	30 Oct 2001 15:20:07 -0000	1.1
+++ gas/testsuite/gas/mmix/comment-2.d	11 Dec 2004 01:45:46 -0000
@@ -3,9 +3,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ g     F \.text	0+ Main
 
 
Index: gas/testsuite/gas/mmix/comment-3.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/comment-3.d,v
retrieving revision 1.2
diff -u -p -r1.2 comment-3.d
--- gas/testsuite/gas/mmix/comment-3.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/comment-3.d	11 Dec 2004 01:45:46 -0000
@@ -3,11 +3,11 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0000000000000000 l    d  \.text	0000000000000000 
-0000000000000000 l    d  \.data	0000000000000000 
-0000000000000000 l    d  \.bss	0000000000000000 
+0000000000000000 l    d  \.text	0000000000000000 (|\.text)
+0000000000000000 l    d  \.data	0000000000000000 (|\.data)
+0000000000000000 l    d  \.bss	0000000000000000 (|\.bss)
 0000000000000000 l       \.MMIX\.reg_contents	0000000000000000 im
-0000000000000000 l    d  \.MMIX\.reg_contents	0000000000000000 
+0000000000000000 l    d  \.MMIX\.reg_contents	0000000000000000 (|\.MMIX\.reg_contents)
 
 
 RELOCATION RECORDS FOR \[\.MMIX\.reg_contents\]:
Index: gas/testsuite/gas/mmix/cons-2.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/cons-2.d,v
retrieving revision 1.2
diff -u -p -r1.2 cons-2.d
--- gas/testsuite/gas/mmix/cons-2.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/cons-2.d	11 Dec 2004 01:45:46 -0000
@@ -3,9 +3,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ g     F \.text	0+ Main
 
 Contents of section \.text:
Index: gas/testsuite/gas/mmix/fb-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/fb-1.d,v
retrieving revision 1.2
diff -u -p -r1.2 fb-1.d
--- gas/testsuite/gas/mmix/fb-1.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/fb-1.d	11 Dec 2004 01:45:46 -0000
@@ -3,10 +3,10 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
-0+ l    d  \.MMIX\.reg_contents	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
+0+ l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 
 
 RELOCATION RECORDS FOR \[\.text\]:
Index: gas/testsuite/gas/mmix/fb-2.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/fb-2.d,v
retrieving revision 1.3
diff -u -p -r1.3 fb-2.d
--- gas/testsuite/gas/mmix/fb-2.d	3 Sep 2003 08:26:51 -0000	1.3
+++ gas/testsuite/gas/mmix/fb-2.d	11 Dec 2004 01:45:46 -0000
@@ -3,10 +3,10 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
-0+ l    d  \.MMIX\.reg_contents	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
+0+ l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+10 g       \*ABS\*	0+ __\.MMIX\.start\.\.text
 
 
Index: gas/testsuite/gas/mmix/geta-c.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/geta-c.d,v
retrieving revision 1.1
diff -u -p -r1.1 geta-c.d
--- gas/testsuite/gas/mmix/geta-c.d	30 Oct 2001 15:20:07 -0000	1.1
+++ gas/testsuite/gas/mmix/geta-c.d	11 Dec 2004 01:45:46 -0000
@@ -4,9 +4,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  .text	0+ 
-0+ l    d  .data	0+ 
-0+ l    d  .bss	0+ 
+0+ l    d  .text	0+ (|\.text)
+0+ l    d  .data	0+ (|\.data)
+0+ l    d  .bss	0+ (|\.bss)
 ffff0000ffff0000 l       \*ABS\*	0+ i1
 ffff0000ffff0000 l       \*ABS\*	0+ i2
 0+ g     F .text	0+ Main
Index: gas/testsuite/gas/mmix/greg1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/greg1.d,v
retrieving revision 1.2
diff -u -p -r1.2 greg1.d
--- gas/testsuite/gas/mmix/greg1.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/greg1.d	11 Dec 2004 01:45:46 -0000
@@ -3,9 +3,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \.text	0+ D4
 0+4 l       \.text	0+ E6
 0+ l       \.MMIX\.reg_contents	0+ H9
@@ -15,7 +15,7 @@ SYMBOL TABLE:
 0+20 l       \.MMIX\.reg_contents	0+ C3
 0+28 l       \.MMIX\.reg_contents	0+ B1
 0+30 l       \.MMIX\.reg_contents	0+ A0
-0+0 l    d  \.MMIX\.reg_contents	0+ 
+0+0 l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+c g     F \.text	0+ Main
 
 
Index: gas/testsuite/gas/mmix/greg1a.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/greg1a.d,v
retrieving revision 1.2
diff -u -p -r1.2 greg1a.d
--- gas/testsuite/gas/mmix/greg1a.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/greg1a.d	11 Dec 2004 01:45:46 -0000
@@ -5,9 +5,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \.text	0+ D4
 0+4 l       \.text	0+ E6
 0+ l       \.MMIX\.reg_contents	0+ H9
@@ -17,7 +17,7 @@ SYMBOL TABLE:
 0+30 l       \.MMIX\.reg_contents	0+ C3
 0+38 l       \.MMIX\.reg_contents	0+ B1
 0+40 l       \.MMIX\.reg_contents	0+ A0
-0+0 l    d  \.MMIX\.reg_contents	0+ 
+0+0 l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+c g     F \.text	0+ Main
 
 
Index: gas/testsuite/gas/mmix/greg2.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/greg2.d,v
retrieving revision 1.2
diff -u -p -r1.2 greg2.d
--- gas/testsuite/gas/mmix/greg2.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/greg2.d	11 Dec 2004 01:45:46 -0000
@@ -3,9 +3,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \.text	0+ D4
 0+4 l       \.text	0+ E6
 0+ l       \.MMIX\.reg_contents	0+ H9
@@ -15,7 +15,7 @@ SYMBOL TABLE:
 0+20 l       \.MMIX\.reg_contents	0+ C3
 0+28 l       \.MMIX\.reg_contents	0+ B1
 0+30 l       \.MMIX\.reg_contents	0+ A0
-0+0 l    d  \.MMIX\.reg_contents	0+ 
+0+0 l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+c g     F \.text	0+ Main
 
 
Index: gas/testsuite/gas/mmix/greg2a.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/greg2a.d,v
retrieving revision 1.2
diff -u -p -r1.2 greg2a.d
--- gas/testsuite/gas/mmix/greg2a.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/greg2a.d	11 Dec 2004 01:45:46 -0000
@@ -5,9 +5,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \.text	0+ D4
 0+4 l       \.text	0+ E6
 0+ l       \.MMIX\.reg_contents	0+ H9
@@ -17,7 +17,7 @@ SYMBOL TABLE:
 0+30 l       \.MMIX\.reg_contents	0+ C3
 0+38 l       \.MMIX\.reg_contents	0+ B1
 0+40 l       \.MMIX\.reg_contents	0+ A0
-0+0 l    d  \.MMIX\.reg_contents	0+ 
+0+0 l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+c g     F \.text	0+ Main
 
 
Index: gas/testsuite/gas/mmix/greg3.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/greg3.d,v
retrieving revision 1.2
diff -u -p -r1.2 greg3.d
--- gas/testsuite/gas/mmix/greg3.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/greg3.d	11 Dec 2004 01:45:46 -0000
@@ -5,10 +5,10 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
-0+ l    d  \.MMIX\.reg_contents	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
+0+ l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+ g       \.MMIX\.reg_contents	0+ areg
 0+c g     F \.text	0+ Main
 
Index: gas/testsuite/gas/mmix/greg4.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/greg4.d,v
retrieving revision 1.2
diff -u -p -r1.2 greg4.d
--- gas/testsuite/gas/mmix/greg4.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/greg4.d	11 Dec 2004 01:45:46 -0000
@@ -5,11 +5,11 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+4 l       \.text	0+ x
-0+ l    d  \.MMIX\.reg_contents	0+ 
+0+ l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 
 
 RELOCATION RECORDS FOR \[\.text\]:
Index: gas/testsuite/gas/mmix/greg5.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/greg5.d,v
retrieving revision 1.1
diff -u -p -r1.1 greg5.d
--- gas/testsuite/gas/mmix/greg5.d	30 Oct 2001 15:20:07 -0000	1.1
+++ gas/testsuite/gas/mmix/greg5.d	11 Dec 2004 01:45:46 -0000
@@ -6,14 +6,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \.text	0+ t
 2000000000000004 l       \*ABS\*	0+ x
 2000000000000000 l       \*ABS\*	0+ Data_Segment
 0+ l       \.data	0+ y
-0+ l    d  \.MMIX\.reg_contents	0+ 
+0+ l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+ g     F \.text	0+ Main
 2000000000000008 g       \*ABS\*	0+ __\.MMIX\.start\.\.data
 
Index: gas/testsuite/gas/mmix/greg6.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/greg6.d,v
retrieving revision 1.1
diff -u -p -r1.1 greg6.d
--- gas/testsuite/gas/mmix/greg6.d	30 Oct 2001 15:20:07 -0000	1.1
+++ gas/testsuite/gas/mmix/greg6.d	11 Dec 2004 01:45:46 -0000
@@ -6,14 +6,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \.text	0+ t
 2000000000000004 l       \*ABS\*	0+ x
 2000000000000000 l       \*ABS\*	0+ Data_Segment
 0+ l       \.data	0+ y
-0+ l    d  \.MMIX\.reg_contents	0+ 
+0+ l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+ g     F \.text	0+ Main
 2000000000000008 g       \*ABS\*	0+ __\.MMIX\.start\.\.data
 
Index: gas/testsuite/gas/mmix/greg7.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/greg7.d,v
retrieving revision 1.3
diff -u -p -r1.3 greg7.d
--- gas/testsuite/gas/mmix/greg7.d	3 Sep 2003 08:26:51 -0000	1.3
+++ gas/testsuite/gas/mmix/greg7.d	11 Dec 2004 01:45:46 -0000
@@ -6,13 +6,13 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \.text	0+ t
 0+4 l       \*ABS\*	0+ x
 0+ l       \.text	0+ y
-0+ l    d  \.MMIX\.reg_contents	0+ 
+0+ l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+8 g     F \.text	0+ Main
 0+8 g       \*ABS\*	0+ __\.MMIX\.start\.\.text
 
Index: gas/testsuite/gas/mmix/greg8.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/greg8.d,v
retrieving revision 1.3
diff -u -p -r1.3 greg8.d
--- gas/testsuite/gas/mmix/greg8.d	3 Sep 2003 08:26:51 -0000	1.3
+++ gas/testsuite/gas/mmix/greg8.d	11 Dec 2004 01:45:46 -0000
@@ -6,13 +6,13 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \.text	0+ t
 0+4 l       \*ABS\*	0+ x
 0+ l       \.text	0+ y
-0+ l    d  \.MMIX\.reg_contents	0+ 
+0+ l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+8 g     F \.text	0+ Main
 0+8 g       \*ABS\*	0+ __\.MMIX\.start\.\.text
 
Index: gas/testsuite/gas/mmix/is-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/is-1.d,v
retrieving revision 1.2
diff -u -p -r1.2 is-1.d
--- gas/testsuite/gas/mmix/is-1.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/is-1.d	11 Dec 2004 01:45:46 -0000
@@ -3,9 +3,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 
 Contents of section \.text:
  0+ 00000026 0000001f 0000000d 0000001e  .*
Index: gas/testsuite/gas/mmix/jump-c.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/jump-c.d,v
retrieving revision 1.1
diff -u -p -r1.1 jump-c.d
--- gas/testsuite/gas/mmix/jump-c.d	30 Oct 2001 15:20:07 -0000	1.1
+++ gas/testsuite/gas/mmix/jump-c.d	11 Dec 2004 01:45:46 -0000
@@ -4,9 +4,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  .text	0+ 
-0+ l    d  .data	0+ 
-0+ l    d  .bss	0+ 
+0+ l    d  .text	0+ (|\.text)
+0+ l    d  .data	0+ (|\.data)
+0+ l    d  .bss	0+ (|\.bss)
 ffff0000ffff0000 l       \*ABS\*	0+ i1
 ffff0000ffff0000 l       \*ABS\*	0+ i2
 0+ g     F .text	0+ Main
Index: gas/testsuite/gas/mmix/local-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/local-1.d,v
retrieving revision 1.2
diff -u -p -r1.2 local-1.d
--- gas/testsuite/gas/mmix/local-1.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/local-1.d	11 Dec 2004 01:45:46 -0000
@@ -15,9 +15,9 @@ Idx Name          Size      VMA         
   2 \.bss          00000000  0000000000000000  0000000000000000  00000044  2\*\*0
                   ALLOC
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+90 l       \*REG\*	0+ reghere
 0+2d l       \*ABS\*	0+ consthere
 0+         \*UND\*	0+ extreg
Index: gas/testsuite/gas/mmix/locall1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/locall1.d,v
retrieving revision 1.1
diff -u -p -r1.1 locall1.d
--- gas/testsuite/gas/mmix/locall1.d	30 Oct 2001 15:20:08 -0000	1.1
+++ gas/testsuite/gas/mmix/locall1.d	11 Dec 2004 01:45:46 -0000
@@ -3,9 +3,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+14 l       \.text	0+ L9
 0+18 l       \.text	0+ L12
 0+1c l       \.text	0+ L21
Index: gas/testsuite/gas/mmix/odd-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/odd-1.d,v
retrieving revision 1.2
diff -u -p -r1.2 odd-1.d
--- gas/testsuite/gas/mmix/odd-1.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/odd-1.d	11 Dec 2004 01:45:46 -0000
@@ -5,11 +5,11 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \.MMIX\.reg_contents	0+ small
-0+ l    d  \.MMIX\.reg_contents	0+ 
+0+ l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+ g     F \.text	0+ Main
 
 
Index: gas/testsuite/gas/mmix/op-0-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/op-0-1.d,v
retrieving revision 1.3
diff -u -p -r1.3 op-0-1.d
--- gas/testsuite/gas/mmix/op-0-1.d	18 Oct 2003 16:00:21 -0000	1.3
+++ gas/testsuite/gas/mmix/op-0-1.d	11 Dec 2004 01:45:46 -0000
@@ -4,9 +4,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \*ABS\*	0+ zero0
 0+ l       \*ABS\*	0+ zero1
 0+ l       \*ABS\*	0+ zero2
Index: gas/testsuite/gas/mmix/op-0-1s.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/op-0-1s.d,v
retrieving revision 1.1
diff -u -p -r1.1 op-0-1s.d
--- gas/testsuite/gas/mmix/op-0-1s.d	18 Oct 2003 16:00:21 -0000	1.1
+++ gas/testsuite/gas/mmix/op-0-1s.d	11 Dec 2004 01:45:46 -0000
@@ -4,9 +4,9 @@
 
 .*:     file format elf64-mmix
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \*ABS\*	0+ zero0
 0+ l       \*ABS\*	0+ zero1
 0+ l       \*ABS\*	0+ zero2
Index: gas/testsuite/gas/mmix/op-0-2.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/op-0-2.d,v
retrieving revision 1.2
diff -u -p -r1.2 op-0-2.d
--- gas/testsuite/gas/mmix/op-0-2.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/op-0-2.d	11 Dec 2004 01:45:46 -0000
@@ -5,9 +5,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \*ABS\*	0+ zero0
 0+ l       \*ABS\*	0+ zero1
 0+ l       \*ABS\*	0+ zero2
Index: gas/testsuite/gas/mmix/prefix1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/prefix1.d,v
retrieving revision 1.1
diff -u -p -r1.1 prefix1.d
--- gas/testsuite/gas/mmix/prefix1.d	30 Oct 2001 15:20:08 -0000	1.1
+++ gas/testsuite/gas/mmix/prefix1.d	11 Dec 2004 01:45:46 -0000
@@ -3,9 +3,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \.text	0+ a
 0+4 l       \.text	0+ c
 0+24 l       \.text	0+ d
Index: gas/testsuite/gas/mmix/prefix2.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/prefix2.d,v
retrieving revision 1.1
diff -u -p -r1.1 prefix2.d
--- gas/testsuite/gas/mmix/prefix2.d	30 Oct 2001 15:20:08 -0000	1.1
+++ gas/testsuite/gas/mmix/prefix2.d	11 Dec 2004 01:45:46 -0000
@@ -3,9 +3,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ g     F \.text	0+ Main
 
 
Index: gas/testsuite/gas/mmix/prefix3.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/prefix3.d,v
retrieving revision 1.2
diff -u -p -r1.2 prefix3.d
--- gas/testsuite/gas/mmix/prefix3.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/prefix3.d	11 Dec 2004 01:45:46 -0000
@@ -3,14 +3,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+8 l       \.text	0+ someplace
 0+ l       \.text	0+ bc:h
 0+8 l       \.MMIX\.reg_contents	0+ a1
 0+ l       \.MMIX\.reg_contents	0+ ba2
-0+ l    d  \.MMIX\.reg_contents	0+ 
+0+ l    d  \.MMIX\.reg_contents	0+ (|\.MMIX\.reg_contents)
 0+4 g     F \.text	0+ Main
 
 
Index: gas/testsuite/gas/mmix/pseudo-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/pseudo-1.d,v
retrieving revision 1.2
diff -u -p -r1.2 pseudo-1.d
--- gas/testsuite/gas/mmix/pseudo-1.d	3 Sep 2003 08:26:51 -0000	1.2
+++ gas/testsuite/gas/mmix/pseudo-1.d	11 Dec 2004 01:45:46 -0000
@@ -5,9 +5,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ g     F \.text	0+ Main
 
 Contents of section \.text:
Index: gas/testsuite/gas/mmix/pushj-c.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/pushj-c.d,v
retrieving revision 1.2
diff -u -p -r1.2 pushj-c.d
--- gas/testsuite/gas/mmix/pushj-c.d	18 Oct 2003 16:00:21 -0000	1.2
+++ gas/testsuite/gas/mmix/pushj-c.d	11 Dec 2004 01:45:46 -0000
@@ -4,9 +4,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  .text	0+ 
-0+ l    d  .data	0+ 
-0+ l    d  .bss	0+ 
+0+ l    d  .text	0+ (|\.text)
+0+ l    d  .data	0+ (|\.data)
+0+ l    d  .bss	0+ (|\.bss)
 ffff0000ffff0000 l       \*ABS\*	0+ i1
 ffff0000ffff0000 l       \*ABS\*	0+ i2
 0+ g     F .text	0+ Main
Index: gas/testsuite/gas/mmix/pushj-cs.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/pushj-cs.d,v
retrieving revision 1.1
diff -u -p -r1.1 pushj-cs.d
--- gas/testsuite/gas/mmix/pushj-cs.d	18 Oct 2003 16:00:21 -0000	1.1
+++ gas/testsuite/gas/mmix/pushj-cs.d	11 Dec 2004 01:45:46 -0000
@@ -4,9 +4,9 @@
 
 .*:     file format elf64-mmix
 SYMBOL TABLE:
-0+ l    d  .text	0+ 
-0+ l    d  .data	0+ 
-0+ l    d  .bss	0+ 
+0+ l    d  .text	0+ (|\.text)
+0+ l    d  .data	0+ (|\.data)
+0+ l    d  .bss	0+ (|\.bss)
 ffff0000ffff0000 l       \*ABS\*	0+ i1
 ffff0000ffff0000 l       \*ABS\*	0+ i2
 0+ g     F .text	0+ Main
Index: gas/testsuite/gas/mmix/sym-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/sym-1.d,v
retrieving revision 1.1
diff -u -p -r1.1 sym-1.d
--- gas/testsuite/gas/mmix/sym-1.d	30 Oct 2001 15:20:08 -0000	1.1
+++ gas/testsuite/gas/mmix/sym-1.d	11 Dec 2004 01:45:46 -0000
@@ -3,9 +3,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  .text	0+ 
-0+ l    d  .data	0+ 
-0+ l    d  .bss	0+ 
+0+ l    d  .text	0+ (|\.text)
+0+ l    d  .data	0+ (|\.data)
+0+ l    d  .bss	0+ (|\.bss)
 0+10 l       .text	0+ scl1
 0+14 l       .text	0+ :scl2
 0+20 l       .text	0+ endcl1
Index: gas/testsuite/gas/mmix/weak1-s.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/weak1-s.d,v
retrieving revision 1.1
diff -u -p -r1.1 weak1-s.d
--- gas/testsuite/gas/mmix/weak1-s.d	18 Oct 2003 16:00:21 -0000	1.1
+++ gas/testsuite/gas/mmix/weak1-s.d	11 Dec 2004 01:45:46 -0000
@@ -6,9 +6,9 @@
 
 .*:     file format elf64-mmix
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+  w      \.text	0+ foo
 0+4 g       \.text	0+ main
 RELOCATION RECORDS FOR \[\.text\]:
Index: gas/testsuite/gas/mmix/weak1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/weak1.d,v
retrieving revision 1.3
diff -u -p -r1.3 weak1.d
--- gas/testsuite/gas/mmix/weak1.d	18 Oct 2003 16:00:21 -0000	1.3
+++ gas/testsuite/gas/mmix/weak1.d	11 Dec 2004 01:45:46 -0000
@@ -6,9 +6,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+  w      \.text	0+ foo
 0+4 g       \.text	0+ main
 
Index: gas/testsuite/gas/mmix/zerop-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mmix/zerop-1.d,v
retrieving revision 1.1
diff -u -p -r1.1 zerop-1.d
--- gas/testsuite/gas/mmix/zerop-1.d	30 Oct 2001 15:20:09 -0000	1.1
+++ gas/testsuite/gas/mmix/zerop-1.d	11 Dec 2004 01:45:46 -0000
@@ -3,9 +3,9 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ g     F \.text	0+ Main
 
 
Index: gas/testsuite/gas/ppc/power4.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/ppc/power4.d,v
retrieving revision 1.4
diff -u -p -r1.4 power4.d
--- gas/testsuite/gas/ppc/power4.d	28 Jun 2004 14:08:08 -0000	1.4
+++ gas/testsuite/gas/ppc/power4.d	11 Dec 2004 01:45:47 -0000
@@ -19,12 +19,12 @@ Idx Name +Size +VMA +LMA +File off +Algn
  +3 \.toc +0+30 +0+ +0+ +.*
  +CONTENTS, ALLOC, LOAD, RELOC, DATA
 SYMBOL TABLE:
-0+ l +d +\.text	0+ 
-0+ l +d +\.data	0+ 
-0+ l +d +\.bss	0+ 
+0+ l +d +\.text	0+ (|\.text)
+0+ l +d +\.data	0+ (|\.data)
+0+ l +d +\.bss	0+ (|\.bss)
 0+ l +\.data	0+ dsym0
 0+8 l +\.data	0+ dsym1
-0+ l +d +\.toc	0+ 
+0+ l +d +\.toc	0+ (|\.toc)
 0+8 l +\.data	0+ usym0
 0+10 l +\.data	0+ usym1
 0+ +\*UND\*	0+ esym0
Index: gas/testsuite/gas/ppc/test1elf32.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/ppc/test1elf32.d,v
retrieving revision 1.2
diff -u -p -r1.2 test1elf32.d
--- gas/testsuite/gas/ppc/test1elf32.d	16 Mar 2004 00:58:42 -0000	1.2
+++ gas/testsuite/gas/ppc/test1elf32.d	11 Dec 2004 01:45:47 -0000
@@ -16,9 +16,9 @@ Idx Name +Size +VMA +LMA +File off +Algn
   2 \.bss  +00000000  0+0000  0+0000  .*
  +ALLOC
 SYMBOL TABLE:
-0+0000 l    d  \.text	0+0000 
-0+0000 l    d  \.data	0+0000 
-0+0000 l    d  \.bss	0+0000 
+0+0000 l    d  \.text	0+0000 (|\.text)
+0+0000 l    d  \.data	0+0000 (|\.data)
+0+0000 l    d  \.bss	0+0000 (|\.bss)
 0+0000 l       \.data	0+0000 dsym0
 0+0004 l       \.data	0+0000 dsym1
 0+0004 l       \.data	0+0000 usym0
Index: gas/testsuite/gas/ppc/test1elf64.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/ppc/test1elf64.d,v
retrieving revision 1.3
diff -u -p -r1.3 test1elf64.d
--- gas/testsuite/gas/ppc/test1elf64.d	16 Mar 2004 00:58:42 -0000	1.3
+++ gas/testsuite/gas/ppc/test1elf64.d	11 Dec 2004 01:45:47 -0000
@@ -18,12 +18,12 @@ Idx Name          Size      VMA         
   3 \.toc          00000030  0000000000000000  0000000000000000  .*
                   CONTENTS, ALLOC, LOAD, RELOC, DATA
 SYMBOL TABLE:
-0000000000000000 l    d  \.text	0000000000000000 
-0000000000000000 l    d  \.data	0000000000000000 
-0000000000000000 l    d  \.bss	0000000000000000 
+0000000000000000 l    d  \.text	0000000000000000 (|\.text)
+0000000000000000 l    d  \.data	0000000000000000 (|\.data)
+0000000000000000 l    d  \.bss	0000000000000000 (|\.bss)
 0000000000000000 l       \.data	0000000000000000 dsym0
 0000000000000008 l       \.data	0000000000000000 dsym1
-0000000000000000 l    d  \.toc	0000000000000000 
+0000000000000000 l    d  \.toc	0000000000000000 (|\.toc)
 0000000000000008 l       \.data	0000000000000000 usym0
 0000000000000010 l       \.data	0000000000000000 usym1
 0000000000000010 l       \.data	0000000000000000 datpt
Index: gas/testsuite/gas/sh/sh64/datal32-3.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/sh/sh64/datal32-3.d,v
retrieving revision 1.5
diff -u -p -r1.5 datal32-3.d
--- gas/testsuite/gas/sh/sh64/datal32-3.d	1 Dec 2003 11:59:14 -0000	1.5
+++ gas/testsuite/gas/sh/sh64/datal32-3.d	11 Dec 2004 01:45:47 -0000
@@ -24,14 +24,14 @@ Idx Name          Size      VMA       LM
   3 \.rodata       0+10  0+  0+  0+a0  2\*\*2
                   CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \.text	0+ 0x04 start
 0+30 l       \.text	0+ 0x04 foo
 0+38 l       \.text	0+ 0x04 foo2
 0+40 l       \.text	0+ 0x04 foo3
-0+ l    d  \.rodata	0+ 
+0+ l    d  \.rodata	0+ (|\.rodata)
 0+48 l       \.text	0+ 0x04 foo4
 0+4 l       \.rodata	0+ myrodata1
 0+50 l       \.text	0+ 0x04 foo5
Index: gas/testsuite/gas/sh/sh64/datal64-3.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/sh/sh64/datal64-3.d,v
retrieving revision 1.4
diff -u -p -r1.4 datal64-3.d
--- gas/testsuite/gas/sh/sh64/datal64-3.d	1 Dec 2003 11:59:14 -0000	1.4
+++ gas/testsuite/gas/sh/sh64/datal64-3.d	11 Dec 2004 01:45:47 -0000
@@ -24,14 +24,14 @@ Idx Name          Size      VMA         
   3 \.rodata       0+10  0+  0+  0+104  2\*\*2
                   CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \.bss	0+ 
+0+ l    d  \.text	0+ (|\.text)
+0+ l    d  \.data	0+ (|\.data)
+0+ l    d  \.bss	0+ (|\.bss)
 0+ l       \.text	0+ 0x04 start
 0+58 l       \.text	0+ 0x04 foo
 0+68 l       \.text	0+ 0x04 foo2
 0+78 l       \.text	0+ 0x04 foo3
-0+ l    d  \.rodata	0+ 
+0+ l    d  \.rodata	0+ (|\.rodata)
 0+88 l       \.text	0+ 0x04 foo4
 0+4 l       \.rodata	0+ myrodata1
 0+98 l       \.text	0+ 0x04 foo5
Index: gas/testsuite/gas/sh/sh64/localcom-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/sh/sh64/localcom-1.d,v
retrieving revision 1.4
diff -u -p -r1.4 localcom-1.d
--- gas/testsuite/gas/sh/sh64/localcom-1.d	1 Dec 2003 11:59:14 -0000	1.4
+++ gas/testsuite/gas/sh/sh64/localcom-1.d	11 Dec 2004 01:45:47 -0000
@@ -6,9 +6,9 @@
 .*:     file format .*-sh64.*
 
 SYMBOL TABLE:
-0+0 l    d  \.text	0+ 
-0+0 l    d  \.data	0+ 
-0+0 l    d  \.bss	0+ 
+0+0 l    d  \.text	0+ (|\.text)
+0+0 l    d  \.data	0+ (|\.data)
+0+0 l    d  \.bss	0+ (|\.bss)
 0+0 l       \.text	0+ start
 0+c l     O \.bss	0+4 dd
 0+c l     O \.bss	0+4 d
Index: ld/testsuite/ld-mmix/bpo-1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-1.d,v
retrieving revision 1.3
diff -u -p -r1.3 bpo-1.d
--- ld/testsuite/ld-mmix/bpo-1.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/bpo-1.d	11 Dec 2004 01:45:51 -0000
@@ -9,14 +9,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0000000000000000 l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7f0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0000000000000000 l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
 #...
Index: ld/testsuite/ld-mmix/bpo-10.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-10.d,v
retrieving revision 1.5
diff -u -p -r1.5 bpo-10.d
--- ld/testsuite/ld-mmix/bpo-10.d	14 Sep 2003 14:10:55 -0000	1.5
+++ ld/testsuite/ld-mmix/bpo-10.d	11 Dec 2004 01:45:51 -0000
@@ -10,14 +10,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.init	0+ 
-0+4 l    d  \.text	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7f8 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.init	0+ (|\.init)
+0+4 l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/bpo-11.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-11.d,v
retrieving revision 1.5
diff -u -p -r1.5 bpo-11.d
--- ld/testsuite/ld-mmix/bpo-11.d	14 Sep 2003 14:10:55 -0000	1.5
+++ ld/testsuite/ld-mmix/bpo-11.d	11 Dec 2004 01:45:51 -0000
@@ -11,14 +11,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.init	0+ 
-0+10 l    d  \.text	0+ 
-20+ l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7e8 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.init	0+ (|\.init)
+0+10 l    d  \.text	0+ (|\.text)
+20+ l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/bpo-14.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-14.d,v
retrieving revision 1.3
diff -u -p -r1.3 bpo-14.d
--- ld/testsuite/ld-mmix/bpo-14.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/bpo-14.d	11 Dec 2004 01:45:51 -0000
@@ -10,14 +10,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7f0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
 #...
Index: ld/testsuite/ld-mmix/bpo-16.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-16.d,v
retrieving revision 1.3
diff -u -p -r1.3 bpo-16.d
--- ld/testsuite/ld-mmix/bpo-16.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/bpo-16.d	11 Dec 2004 01:45:51 -0000
@@ -11,14 +11,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7f0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
 #...
Index: ld/testsuite/ld-mmix/bpo-17.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-17.d,v
retrieving revision 1.3
diff -u -p -r1.3 bpo-17.d
--- ld/testsuite/ld-mmix/bpo-17.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/bpo-17.d	11 Dec 2004 01:45:51 -0000
@@ -10,14 +10,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7f0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
 #...
Index: ld/testsuite/ld-mmix/bpo-18.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-18.d,v
retrieving revision 1.5
diff -u -p -r1.5 bpo-18.d
--- ld/testsuite/ld-mmix/bpo-18.d	14 Oct 2004 12:54:47 -0000	1.5
+++ ld/testsuite/ld-mmix/bpo-18.d	11 Dec 2004 01:45:51 -0000
@@ -10,14 +10,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+100 l    d  \.text	0+ 
-4000000000001060 l    d  \.text\.away	0+ 
-400000000000106c l    d  \.data	0+ 
-400000000000106c l    d  \.bss	0+ 
-0+7e0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+100 l    d  \.text	0+ (|\.text)
+4000000000001060 l    d  \.text\.away	0+ (|\.text\.away)
+400000000000106c l    d  \.data	0+ (|\.data)
+400000000000106c l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/bpo-19.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-19.d,v
retrieving revision 1.3
diff -u -p -r1.3 bpo-19.d
--- ld/testsuite/ld-mmix/bpo-19.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/bpo-19.d	11 Dec 2004 01:45:51 -0000
@@ -10,14 +10,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+100 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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+37c l       \*ABS\*	0+ i
 0+ g       \.text	0+ _start
 #...
Index: ld/testsuite/ld-mmix/bpo-2.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-2.d,v
retrieving revision 1.3
diff -u -p -r1.3 bpo-2.d
--- ld/testsuite/ld-mmix/bpo-2.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/bpo-2.d	11 Dec 2004 01:45:51 -0000
@@ -10,14 +10,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7e8 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/bpo-22.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-22.d,v
retrieving revision 1.2
diff -u -p -r1.2 bpo-22.d
--- ld/testsuite/ld-mmix/bpo-22.d	14 Sep 2003 14:10:55 -0000	1.2
+++ ld/testsuite/ld-mmix/bpo-22.d	11 Dec 2004 01:45:51 -0000
@@ -10,13 +10,13 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0000000000000000 l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7f0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0000000000000000 l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/bpo-3.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-3.d,v
retrieving revision 1.3
diff -u -p -r1.3 bpo-3.d
--- ld/testsuite/ld-mmix/bpo-3.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/bpo-3.d	11 Dec 2004 01:45:51 -0000
@@ -10,14 +10,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7f0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
 #...
Index: ld/testsuite/ld-mmix/bpo-4.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-4.d,v
retrieving revision 1.3
diff -u -p -r1.3 bpo-4.d
--- ld/testsuite/ld-mmix/bpo-4.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/bpo-4.d	11 Dec 2004 01:45:51 -0000
@@ -11,14 +11,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7e0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/bpo-5.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-5.d,v
retrieving revision 1.3
diff -u -p -r1.3 bpo-5.d
--- ld/testsuite/ld-mmix/bpo-5.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/bpo-5.d	11 Dec 2004 01:45:51 -0000
@@ -11,14 +11,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7e8 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
 #...
Index: ld/testsuite/ld-mmix/bpo-6.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-6.d,v
retrieving revision 1.3
diff -u -p -r1.3 bpo-6.d
--- ld/testsuite/ld-mmix/bpo-6.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/bpo-6.d	11 Dec 2004 01:45:51 -0000
@@ -9,14 +9,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+100 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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+df l       \*ABS\*	0+ i
 0+ g       \.text	0+ _start
 #...
Index: ld/testsuite/ld-mmix/bpo-9.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-9.d,v
retrieving revision 1.4
diff -u -p -r1.4 bpo-9.d
--- ld/testsuite/ld-mmix/bpo-9.d	14 Sep 2003 14:10:55 -0000	1.4
+++ ld/testsuite/ld-mmix/bpo-9.d	11 Dec 2004 01:45:51 -0000
@@ -10,14 +10,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.init	0+ 
-0+10 l    d  \.text	0+ 
-20+ l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7e8 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.init	0+ (|\.init)
+0+10 l    d  \.text	0+ (|\.text)
+20+ l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/greg-1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/greg-1.d,v
retrieving revision 1.2
diff -u -p -r1.2 greg-1.d
--- ld/testsuite/ld-mmix/greg-1.d	19 Mar 2002 22:48:14 -0000	1.2
+++ ld/testsuite/ld-mmix/greg-1.d	11 Dec 2004 01:45:51 -0000
@@ -10,14 +10,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  .text	0+ 
-2000000000000000 l    d  .data	0+ 
-2000000000000000 l    d  .sbss	0+ 
-2000000000000000 l    d  .bss	0+ 
-0+7f0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
 #...
Index: ld/testsuite/ld-mmix/greg-19.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/greg-19.d,v
retrieving revision 1.3
diff -u -p -r1.3 greg-19.d
--- ld/testsuite/ld-mmix/greg-19.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/greg-19.d	11 Dec 2004 01:45:51 -0000
@@ -7,14 +7,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+7f0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/greg-2.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/greg-2.d,v
retrieving revision 1.2
diff -u -p -r1.2 greg-2.d
--- ld/testsuite/ld-mmix/greg-2.d	19 Mar 2002 22:48:14 -0000	1.2
+++ ld/testsuite/ld-mmix/greg-2.d	11 Dec 2004 01:45:51 -0000
@@ -14,14 +14,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  .text	0+ 
-2000000000000000 l    d  .data	0+ 
-2000000000000000 l    d  .sbss	0+ 
-2000000000000000 l    d  .bss	0+ 
-0+7e0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/greg-3.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/greg-3.d,v
retrieving revision 1.2
diff -u -p -r1.2 greg-3.d
--- ld/testsuite/ld-mmix/greg-3.d	19 Mar 2002 22:48:14 -0000	1.2
+++ ld/testsuite/ld-mmix/greg-3.d	11 Dec 2004 01:45:51 -0000
@@ -14,14 +14,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  .text	0+ 
-2000000000000000 l    d  .data	0+ 
-2000000000000000 l    d  .sbss	0+ 
-2000000000000000 l    d  .bss	0+ 
-0+7f0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
 #...
Index: ld/testsuite/ld-mmix/greg-4.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/greg-4.d,v
retrieving revision 1.2
diff -u -p -r1.2 greg-4.d
--- ld/testsuite/ld-mmix/greg-4.d	19 Mar 2002 22:48:14 -0000	1.2
+++ ld/testsuite/ld-mmix/greg-4.d	11 Dec 2004 01:45:51 -0000
@@ -11,14 +11,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  .text	0+ 
-2000000000000000 l    d  .data	0+ 
-2000000000000000 l    d  .sbss	0+ 
-2000000000000000 l    d  .bss	0+ 
-0+7f0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
 #...
Index: ld/testsuite/ld-mmix/greg-5.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/greg-5.d,v
retrieving revision 1.3
diff -u -p -r1.3 greg-5.d
--- ld/testsuite/ld-mmix/greg-5.d	18 Oct 2003 16:05:02 -0000	1.3
+++ ld/testsuite/ld-mmix/greg-5.d	11 Dec 2004 01:45:51 -0000
@@ -11,14 +11,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  .text	0+ 
-2000000000000000 l    d  .data	0+ 
-2000000000000000 l    d  .sbss	0+ 
-2000000000000000 l    d  .bss	0+ 
-0+7f0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
 #...
Index: ld/testsuite/ld-mmix/greg-5s.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/greg-5s.d,v
retrieving revision 1.1
diff -u -p -r1.1 greg-5s.d
--- ld/testsuite/ld-mmix/greg-5s.d	18 Oct 2003 16:05:02 -0000	1.1
+++ ld/testsuite/ld-mmix/greg-5s.d	11 Dec 2004 01:45:51 -0000
@@ -10,14 +10,14 @@
 
 .*:     file format elf64-mmix
 SYMBOL TABLE:
-0+ l    d  .text	0+ 
-2000000000000000 l    d  .data	0+ 
-2000000000000000 l    d  .sbss	0+ 
-2000000000000000 l    d  .bss	0+ 
-0+7f0 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
 #...
Index: ld/testsuite/ld-mmix/greg-6.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/greg-6.d,v
retrieving revision 1.2
diff -u -p -r1.2 greg-6.d
--- ld/testsuite/ld-mmix/greg-6.d	19 Mar 2002 22:48:14 -0000	1.2
+++ ld/testsuite/ld-mmix/greg-6.d	11 Dec 2004 01:45:51 -0000
@@ -39,14 +39,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+0 l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+100 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+0 l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/greg-7.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/greg-7.d,v
retrieving revision 1.2
diff -u -p -r1.2 greg-7.d
--- ld/testsuite/ld-mmix/greg-7.d	19 Mar 2002 22:48:14 -0000	1.2
+++ ld/testsuite/ld-mmix/greg-7.d	11 Dec 2004 01:45:51 -0000
@@ -39,14 +39,14 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+100 l    d  \.MMIX\.reg_contents	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/loc1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/loc1.d,v
retrieving revision 1.4
diff -u -p -r1.4 loc1.d
--- ld/testsuite/ld-mmix/loc1.d	14 Sep 2003 14:10:55 -0000	1.4
+++ ld/testsuite/ld-mmix/loc1.d	11 Dec 2004 01:45:51 -0000
@@ -7,13 +7,13 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+1000 l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+1000 l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/loc2.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/loc2.d,v
retrieving revision 1.3
diff -u -p -r1.3 loc2.d
--- ld/testsuite/ld-mmix/loc2.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/loc2.d	11 Dec 2004 01:45:51 -0000
@@ -8,13 +8,13 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+1000 l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+1000 l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/loc3.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/loc3.d,v
retrieving revision 1.3
diff -u -p -r1.3 loc3.d
--- ld/testsuite/ld-mmix/loc3.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/loc3.d	11 Dec 2004 01:45:51 -0000
@@ -8,13 +8,13 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+1000 l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+1000 l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/loc4.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/loc4.d,v
retrieving revision 1.5
diff -u -p -r1.5 loc4.d
--- ld/testsuite/ld-mmix/loc4.d	14 Sep 2003 14:10:55 -0000	1.5
+++ ld/testsuite/ld-mmix/loc4.d	11 Dec 2004 01:45:51 -0000
@@ -9,13 +9,13 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+1000 l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000008 l    d  \.sbss	0+ 
-2000000000000008 l    d  \.bss	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+1000 l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000008 l    d  \.sbss	0+ (|\.sbss)
+2000000000000008 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/loc6.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/loc6.d,v
retrieving revision 1.4
diff -u -p -r1.4 loc6.d
--- ld/testsuite/ld-mmix/loc6.d	14 Sep 2003 14:10:55 -0000	1.4
+++ ld/testsuite/ld-mmix/loc6.d	11 Dec 2004 01:45:51 -0000
@@ -8,13 +8,13 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000200 l    d  \.data	0+ 
-200000000000020c l    d  \.sbss	0+ 
-200000000000020c l    d  \.bss	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000200 l    d  \.data	0+ (|\.data)
+200000000000020c l    d  \.sbss	0+ (|\.sbss)
+200000000000020c l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/locdo-1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/locdo-1.d,v
retrieving revision 1.5
diff -u -p -r1.5 locdo-1.d
--- ld/testsuite/ld-mmix/locdo-1.d	14 Sep 2003 14:10:55 -0000	1.5
+++ ld/testsuite/ld-mmix/locdo-1.d	11 Dec 2004 01:45:51 -0000
@@ -6,13 +6,13 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000008 l    d  \.data	0+ 
-2000000000000010 l    d  \.sbss	0+ 
-2000000000000010 l    d  \.bss	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000008 l    d  \.data	0+ (|\.data)
+2000000000000010 l    d  \.sbss	0+ (|\.sbss)
+2000000000000010 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/loct-1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/loct-1.d,v
retrieving revision 1.3
diff -u -p -r1.3 loct-1.d
--- ld/testsuite/ld-mmix/loct-1.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/loct-1.d	11 Dec 2004 01:45:51 -0000
@@ -6,13 +6,13 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+1004 l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+1004 l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/locto-1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/locto-1.d,v
retrieving revision 1.3
diff -u -p -r1.3 locto-1.d
--- ld/testsuite/ld-mmix/locto-1.d	14 Sep 2003 14:10:55 -0000	1.3
+++ ld/testsuite/ld-mmix/locto-1.d	11 Dec 2004 01:45:51 -0000
@@ -6,13 +6,13 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+1008 l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+1008 l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-mmix/start-1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/start-1.d,v
retrieving revision 1.2
diff -u -p -r1.2 start-1.d
--- ld/testsuite/ld-mmix/start-1.d	19 Mar 2002 22:48:15 -0000	1.2
+++ ld/testsuite/ld-mmix/start-1.d	11 Dec 2004 01:45:51 -0000
@@ -5,13 +5,13 @@
 .*:     file format elf64-mmix
 
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-2000000000000000 l    d  \.data	0+ 
-2000000000000000 l    d  \.sbss	0+ 
-2000000000000000 l    d  \.bss	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|\.text)
+2000000000000000 l    d  \.data	0+ (|\.data)
+2000000000000000 l    d  \.sbss	0+ (|\.sbss)
+2000000000000000 l    d  \.bss	0+ (|\.bss)
+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
Index: ld/testsuite/ld-sh/sh64/abi32.xd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/sh64/abi32.xd,v
retrieving revision 1.6
diff -u -p -r1.6 abi32.xd
--- ld/testsuite/ld-sh/sh64/abi32.xd	2 Jul 2004 11:25:54 -0000	1.6
+++ ld/testsuite/ld-sh/sh64/abi32.xd	11 Dec 2004 01:45:51 -0000
@@ -30,16 +30,16 @@ Idx Name          Size      VMA       LM
   6 \.stack        00000004  0+80000  0+80000  00000180  2\*\*0
                   CONTENTS, ALLOC, LOAD, DATA
 SYMBOL TABLE:
-0+1000 l    d  \.text	0+ 
-0+10e8 l    d  \.ctors	0+ 
-0+10e8 l    d  \.dtors	0+ 
-0+10e8 l    d  \.data	0+ 
-0+1100 l    d  \.sbss	0+ 
-0+1100 l    d  \.bss	0+ 
-0+80000 l    d  \.stack	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+1000 l    d  \.text	0+ (|\.text)
+0+10e8 l    d  \.ctors	0+ (|\.ctors)
+0+10e8 l    d  \.dtors	0+ (|\.dtors)
+0+10e8 l    d  \.data	0+ (|\.data)
+0+1100 l    d  \.sbss	0+ (|\.sbss)
+0+1100 l    d  \.bss	0+ (|\.bss)
+0+80000 l    d  \.stack	0+ (|\.stack)
+0+ l    d  \*ABS\*	0+ (|\.shstrtab)
+0+ l    d  \*ABS\*	0+ (|\.symtab)
+0+ l    d  \*ABS\*	0+ (|\.strtab)
 0+10f4 l       \.data	0+ foobar
 0+10fc l       \.data	0+ foobar2
 0+1060 l       \.text	0+ 0x04 plugh
Index: ld/testsuite/ld-sh/sh64/abi64.xd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/sh64/abi64.xd,v
retrieving revision 1.5
diff -u -p -r1.5 abi64.xd
--- ld/testsuite/ld-sh/sh64/abi64.xd	2 Jul 2004 11:25:54 -0000	1.5
+++ ld/testsuite/ld-sh/sh64/abi64.xd	11 Dec 2004 01:45:51 -0000
@@ -29,16 +29,16 @@ Idx Name          Size      VMA         
   6 \.stack        00000004  0000000000080000  0000000000080000  00000200  2\*\*0
                   CONTENTS, ALLOC, LOAD, DATA
 SYMBOL TABLE:
-0000000000001000 l    d  \.text	0000000000000000 
-0000000000001130 l    d  \.ctors	0000000000000000 
-0000000000001130 l    d  \.dtors	0000000000000000 
-0000000000001130 l    d  \.data	0000000000000000 
-0000000000001148 l    d  \.sbss	0000000000000000 
-0000000000001148 l    d  \.bss	0000000000000000 
-0000000000080000 l    d  \.stack	0000000000000000 
-0000000000000000 l    d  \*ABS\*	0000000000000000 
-0000000000000000 l    d  \*ABS\*	0000000000000000 
-0000000000000000 l    d  \*ABS\*	0000000000000000 
+0000000000001000 l    d  \.text	0000000000000000 (|\.text)
+0000000000001130 l    d  \.ctors	0000000000000000 (|\.ctors)
+0000000000001130 l    d  \.dtors	0000000000000000 (|\.dtors)
+0000000000001130 l    d  \.data	0000000000000000 (|\.data)
+0000000000001148 l    d  \.sbss	0000000000000000 (|\.sbss)
+0000000000001148 l    d  \.bss	0000000000000000 (|\.bss)
+0000000000080000 l    d  \.stack	0000000000000000 (|\.stack)
+0000000000000000 l    d  \*ABS\*	0000000000000000 (|\.shstrtab)
+0000000000000000 l    d  \*ABS\*	0000000000000000 (|\.symtab)
+0000000000000000 l    d  \*ABS\*	0000000000000000 (|\.strtab)
 000000000000113c l       \.data	0000000000000000 foobar
 0000000000001144 l       \.data	0000000000000000 foobar2
 00000000000010a8 l       \.text	0000000000000000 0x04 plugh
Index: ld/testsuite/ld-sh/sh64/cmpct1.xd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/sh64/cmpct1.xd,v
retrieving revision 1.7
diff -u -p -r1.7 cmpct1.xd
--- ld/testsuite/ld-sh/sh64/cmpct1.xd	2 Jul 2004 11:25:54 -0000	1.7
+++ ld/testsuite/ld-sh/sh64/cmpct1.xd	11 Dec 2004 01:45:51 -0000
@@ -32,17 +32,17 @@ Idx Name          Size      VMA       LM
   7 \.stack        00000004  0+80000  0+80000  00000180  2\*\*0
                   CONTENTS, ALLOC, LOAD, DATA
 SYMBOL TABLE:
-0+1000 l    d  \.text	0+ 
-0+1008 l    d  \.rodata	0+ 
-0+1098 l    d  \.ctors	0+ 
-0+1098 l    d  \.dtors	0+ 
-0+1098 l    d  \.data	0+ 
-0+1098 l    d  \.sbss	0+ 
-0+1098 l    d  \.bss	0+ 
-0+80000 l    d  \.stack	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+1000 l    d  \.text	0+ (|\.text)
+0+1008 l    d  \.rodata	0+ (|\.rodata)
+0+1098 l    d  \.ctors	0+ (|\.ctors)
+0+1098 l    d  \.dtors	0+ (|\.dtors)
+0+1098 l    d  \.data	0+ (|\.data)
+0+1098 l    d  \.sbss	0+ (|\.sbss)
+0+1098 l    d  \.bss	0+ (|\.bss)
+0+80000 l    d  \.stack	0+ (|\.stack)
+0+ l    d  \*ABS\*	0+ (|\.shstrtab)
+0+ l    d  \*ABS\*	0+ (|\.symtab)
+0+ l    d  \*ABS\*	0+ (|\.strtab)
 0+1004 l       \.text	0+ next
 0+100c l       \.rodata	0+ here
 0+1098 g       \.dtors	0+ ___dtors
Index: ld/testsuite/ld-sh/sh64/mix1.xd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/sh64/mix1.xd,v
retrieving revision 1.6
diff -u -p -r1.6 mix1.xd
--- ld/testsuite/ld-sh/sh64/mix1.xd	22 Sep 2004 06:45:39 -0000	1.6
+++ ld/testsuite/ld-sh/sh64/mix1.xd	11 Dec 2004 01:45:51 -0000
@@ -31,17 +31,17 @@ Idx Name          Size      VMA       LM
   7 \.cranges      00000014  0+  0+  00000184  2\*\*0
                   CONTENTS, DEBUGGING, SORT_ENTRIES
 SYMBOL TABLE:
-0+1000 l    d  \.text	0+ 
-0+10c8 l    d  \.ctors	0+ 
-0+10c8 l    d  \.dtors	0+ 
-0+10c8 l    d  \.data	0+ 
-0+10d8 l    d  \.sbss	0+ 
-0+10d8 l    d  \.bss	0+ 
-0+80000 l    d  \.stack	0+ 
-0+ l    d  \.cranges	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+1000 l    d  \.text	0+ (|\.text)
+0+10c8 l    d  \.ctors	0+ (|\.ctors)
+0+10c8 l    d  \.dtors	0+ (|\.dtors)
+0+10c8 l    d  \.data	0+ (|\.data)
+0+10d8 l    d  \.sbss	0+ (|\.sbss)
+0+10d8 l    d  \.bss	0+ (|\.bss)
+0+80000 l    d  \.stack	0+ (|\.stack)
+0+ l    d  \.cranges	0+ (|\.cranges)
+0+ l    d  \*ABS\*	0+ (|\.shstrtab)
+0+ l    d  \*ABS\*	0+ (|\.symtab)
+0+ l    d  \*ABS\*	0+ (|\.strtab)
 0+1008 l       \.text	0+ forw
 0+1004 l       \.text	0+ start2
 0+1030 l       \.text	0+ 0x04 mediacode2
Index: ld/testsuite/ld-sh/sh64/mix2.xd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/sh64/mix2.xd,v
retrieving revision 1.5
diff -u -p -r1.5 mix2.xd
--- ld/testsuite/ld-sh/sh64/mix2.xd	2 Jul 2004 11:25:54 -0000	1.5
+++ ld/testsuite/ld-sh/sh64/mix2.xd	11 Dec 2004 01:45:51 -0000
@@ -34,18 +34,18 @@ Idx Name          Size      VMA       LM
   8 \.cranges      00000014  0+  0+  00000184  2\*\*0
                   CONTENTS, DEBUGGING, SORT_ENTRIES
 SYMBOL TABLE:
-0+1000 l    d  \.text	0+ 
-0+1034 l    d  \.rodata	0+ 
-0+10c8 l    d  \.ctors	0+ 
-0+10c8 l    d  \.dtors	0+ 
-0+10c8 l    d  \.data	0+ 
-0+10d8 l    d  \.sbss	0+ 
-0+10d8 l    d  \.bss	0+ 
-0+80000 l    d  \.stack	0+ 
-0+ l    d  \.cranges	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+1000 l    d  \.text	0+ (|\.text)
+0+1034 l    d  \.rodata	0+ (|\.rodata)
+0+10c8 l    d  \.ctors	0+ (|\.ctors)
+0+10c8 l    d  \.dtors	0+ (|\.dtors)
+0+10c8 l    d  \.data	0+ (|\.data)
+0+10d8 l    d  \.sbss	0+ (|\.sbss)
+0+10d8 l    d  \.bss	0+ (|\.bss)
+0+80000 l    d  \.stack	0+ (|\.stack)
+0+ l    d  \.cranges	0+ (|\.cranges)
+0+ l    d  \*ABS\*	0+ (|\.shstrtab)
+0+ l    d  \*ABS\*	0+ (|\.symtab)
+0+ l    d  \*ABS\*	0+ (|\.strtab)
 0+1020 l       \.text	0+ locallabel
 0+1040 g       \.rodata	0+ compactlabel4
 0+101c g       \.text	0+ 0x04 medialabel2
Index: ld/testsuite/ld-sh/sh64/rel32.xd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/sh64/rel32.xd,v
retrieving revision 1.4
diff -u -p -r1.4 rel32.xd
--- ld/testsuite/ld-sh/sh64/rel32.xd	1 Dec 2003 06:56:51 -0000	1.4
+++ ld/testsuite/ld-sh/sh64/rel32.xd	11 Dec 2004 01:45:51 -0000
@@ -16,15 +16,15 @@ Idx Name          Size      VMA       LM
   3 \.stack        0+4  0+  0+  0+b4  2\*\*0
                   CONTENTS, ALLOC, LOAD, DATA
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \.bss	0+ 
-0+ l    d  \.stack	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|.text)
+0+ l    d  \*ABS\*	0+ (|.rela.text)
+0+ l    d  \.data	0+ (|.data)
+0+ l    d  \*ABS\*	0+ (|.rela.data)
+0+ l    d  \.bss	0+ (|.bss)
+0+ l    d  \.stack	0+ (|.stack)
+0+ l    d  \*ABS\*	0+ (|.shstrtab)
+0+ l    d  \*ABS\*	0+ (|.symtab)
+0+ l    d  \*ABS\*	0+ (|.strtab)
 0+         \*UND\*	0+ unresolved5
 0+c g       \.text	0+ 0x04 file1text2
 0+24 g       \.text	0+ 0x04 file2text1
Index: ld/testsuite/ld-sh/sh64/rel64.xd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/sh64/rel64.xd,v
retrieving revision 1.3
diff -u -p -r1.3 rel64.xd
--- ld/testsuite/ld-sh/sh64/rel64.xd	1 Dec 2003 06:56:51 -0000	1.3
+++ ld/testsuite/ld-sh/sh64/rel64.xd	11 Dec 2004 01:45:51 -0000
@@ -16,15 +16,15 @@ Idx Name          Size      VMA         
   3 \.stack        0+4  0+  0+  0+c0  2\*\*0
                   CONTENTS, ALLOC, LOAD, DATA
 SYMBOL TABLE:
-0+ l    d  \.text	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \.data	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \.bss	0+ 
-0+ l    d  \.stack	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+ l    d  \.text	0+ (|.text)
+0+ l    d  \*ABS\*	0+ (|.rela.text)
+0+ l    d  \.data	0+ (|.data)
+0+ l    d  \*ABS\*	0+ (|.rela.data)
+0+ l    d  \.bss	0+ (|.bss)
+0+ l    d  \.stack	0+ (|.stack)
+0+ l    d  \*ABS\*	0+ (|.shstrtab)
+0+ l    d  \*ABS\*	0+ (|.symtab)
+0+ l    d  \*ABS\*	0+ (|.strtab)
 0+         \*UND\*	0+ unresolved5
 0+c g       \.text	0+ 0x04 file1text2
 0+24 g       \.text	0+ 0x04 file2text1
Index: ld/testsuite/ld-sh/sh64/shdl32.xd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/sh64/shdl32.xd,v
retrieving revision 1.6
diff -u -p -r1.6 shdl32.xd
--- ld/testsuite/ld-sh/sh64/shdl32.xd	22 Sep 2004 06:45:39 -0000	1.6
+++ ld/testsuite/ld-sh/sh64/shdl32.xd	11 Dec 2004 01:45:51 -0000
@@ -31,17 +31,17 @@ Idx Name          Size      VMA       LM
   7 \.stack        0+4  0+80000  0+80000  0+600  2\*\*0
                   CONTENTS, ALLOC, LOAD, DATA
 SYMBOL TABLE:
-0+1000 l    d  \.text	0+ 
-0+1204 l    d  \.rodata	0+ 
-0+13c8 l    d  \.ctors	0+ 
-0+13c8 l    d  \.dtors	0+ 
-0+13c8 l    d  \.data	0+ 
-0+1560 l    d  \.sbss	0+ 
-0+1560 l    d  \.bss	0+ 
-0+80000 l    d  \.stack	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+1000 l    d  \.text	0+ (|\.text)
+0+1204 l    d  \.rodata	0+ (|\.rodata)
+0+13c8 l    d  \.ctors	0+ (|\.ctors)
+0+13c8 l    d  \.dtors	0+ (|\.dtors)
+0+13c8 l    d  \.data	0+ (|\.data)
+0+1560 l    d  \.sbss	0+ (|\.sbss)
+0+1560 l    d  \.bss	0+ (|\.bss)
+0+80000 l    d  \.stack	0+ (|\.stack)
+0+ l    d  \*ABS\*	0+ (|\.shstrtab)
+0+ l    d  \*ABS\*	0+ (|\.symtab)
+0+ l    d  \*ABS\*	0+ (|\.strtab)
 0+1150 l       \.text	0+ 0x04 part2
 0+13f8 g       \.data	0+ dfoo_otherboth2
 0+1178 g       \.text	0+ 0x04 bar_otherwithout
Index: ld/testsuite/ld-sh/sh64/shdl64.xd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/sh64/shdl64.xd,v
retrieving revision 1.6
diff -u -p -r1.6 shdl64.xd
--- ld/testsuite/ld-sh/sh64/shdl64.xd	22 Sep 2004 06:45:39 -0000	1.6
+++ ld/testsuite/ld-sh/sh64/shdl64.xd	11 Dec 2004 01:45:51 -0000
@@ -31,17 +31,17 @@ Idx Name          Size      VMA         
   7 \.stack        0+4  0+80000  0+80000  0+600  2\*\*0
                   CONTENTS, ALLOC, LOAD, DATA
 SYMBOL TABLE:
-0+1000 l    d  \.text	0+ 
-0+1204 l    d  \.rodata	0+ 
-0+13c8 l    d  \.ctors	0+ 
-0+13c8 l    d  \.dtors	0+ 
-0+13c8 l    d  \.data	0+ 
-0+1560 l    d  \.sbss	0+ 
-0+1560 l    d  \.bss	0+ 
-0+80000 l    d  \.stack	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
-0+ l    d  \*ABS\*	0+ 
+0+1000 l    d  \.text	0+ (|\.text)
+0+1204 l    d  \.rodata	0+ (|\.rodata)
+0+13c8 l    d  \.ctors	0+ (|\.ctors)
+0+13c8 l    d  \.dtors	0+ (|\.dtors)
+0+13c8 l    d  \.data	0+ (|\.data)
+0+1560 l    d  \.sbss	0+ (|\.sbss)
+0+1560 l    d  \.bss	0+ (|\.bss)
+0+80000 l    d  \.stack	0+ (|\.stack)
+0+ l    d  \*ABS\*	0+ (|\.shstrtab)
+0+ l    d  \*ABS\*	0+ (|\.symtab)
+0+ l    d  \*ABS\*	0+ (|\.strtab)
 0+1150 l       \.text	0+ 0x04 part2
 0+13f8 g       \.data	0+ dfoo_otherboth2
 0+1178 g       \.text	0+ 0x04 bar_otherwithout

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-11  4:21               ` Alan Modra
@ 2004-12-11  4:34                 ` Daniel Jacobowitz
  2004-12-11  4:57                   ` Alan Modra
  0 siblings, 1 reply; 18+ messages in thread
From: Daniel Jacobowitz @ 2004-12-11  4:34 UTC (permalink / raw)
  To: Hans-Peter Nilsson, binutils

On Sat, Dec 11, 2004 at 02:50:43PM +1030, Alan Modra wrote:
> On Fri, Dec 10, 2004 at 10:19:29AM -0500, Daniel Jacobowitz wrote:
> > so I assume there is more.
> 
> Yeah.
> 
> bfd/ChangeLog
> 	* elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
> 	canonical sections syms have a name.

Could you explain why this change is necessary?  It's not going back to
the same place we were before, and I find this...

> -0+00 l    d  foo	0+0 
> +0+00 l    d  foo	0+0 (|foo)

to be pretty confusing, since IIRC an undefined reference to foo
shouldn't be resolved to that symbol, if the ELF symbol's name is
empty.

-- 
Daniel Jacobowitz

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-11  4:34                 ` Daniel Jacobowitz
@ 2004-12-11  4:57                   ` Alan Modra
  2004-12-11  5:08                     ` Daniel Jacobowitz
  0 siblings, 1 reply; 18+ messages in thread
From: Alan Modra @ 2004-12-11  4:57 UTC (permalink / raw)
  To: Hans-Peter Nilsson, binutils

On Fri, Dec 10, 2004 at 11:34:26PM -0500, Daniel Jacobowitz wrote:
> On Sat, Dec 11, 2004 at 02:50:43PM +1030, Alan Modra wrote:
> > On Fri, Dec 10, 2004 at 10:19:29AM -0500, Daniel Jacobowitz wrote:
> > > so I assume there is more.
> > 
> > Yeah.
> > 
> > bfd/ChangeLog
> > 	* elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
> > 	canonical sections syms have a name.
> 
> Could you explain why this change is necessary?  It's not going back to
> the same place we were before, and I find this...

Well, you either have this change, revert your change that stopped use
of the section symbol for relocs, or introduce some elf dependecy into
objdump.  Otherwise objdump -r won't display a name for relocs against
section syms.

> > -0+00 l    d  foo	0+0 
> > +0+00 l    d  foo	0+0 (|foo)
> 
> to be pretty confusing, since IIRC an undefined reference to foo
> shouldn't be resolved to that symbol, if the ELF symbol's name is
> empty.

How is this different from other local symbols?

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-11  4:57                   ` Alan Modra
@ 2004-12-11  5:08                     ` Daniel Jacobowitz
  2004-12-11  5:32                       ` Alan Modra
  0 siblings, 1 reply; 18+ messages in thread
From: Daniel Jacobowitz @ 2004-12-11  5:08 UTC (permalink / raw)
  To: binutils; +Cc: Hans-Peter Nilsson

On Sat, Dec 11, 2004 at 03:27:51PM +1030, Alan Modra wrote:
> On Fri, Dec 10, 2004 at 11:34:26PM -0500, Daniel Jacobowitz wrote:
> > On Sat, Dec 11, 2004 at 02:50:43PM +1030, Alan Modra wrote:
> > > On Fri, Dec 10, 2004 at 10:19:29AM -0500, Daniel Jacobowitz wrote:
> > > > so I assume there is more.
> > > 
> > > Yeah.
> > > 
> > > bfd/ChangeLog
> > > 	* elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
> > > 	canonical sections syms have a name.
> > 
> > Could you explain why this change is necessary?  It's not going back to
> > the same place we were before, and I find this...
> 
> Well, you either have this change, revert your change that stopped use
> of the section symbol for relocs, or introduce some elf dependecy into
> objdump.  Otherwise objdump -r won't display a name for relocs against
> section syms.

OK, now I see the problem.

> > > -0+00 l    d  foo	0+0 
> > > +0+00 l    d  foo	0+0 (|foo)
> > 
> > to be pretty confusing, since IIRC an undefined reference to foo
> > shouldn't be resolved to that symbol, if the ELF symbol's name is
> > empty.
> 
> How is this different from other local symbols?

Like this.  Output from my system tools, i.e. well before this patch.

drow@nevyn:~/qtmp% cat foo.s
.section "foo"
        .word 0
drow@nevyn:~/qtmp% cat bar.s
.section "bar"
        .word foo
drow@nevyn:~/qtmp% as -o foo.o foo.s
drow@nevyn:~/qtmp% as -o bar.o bar.s
drow@nevyn:~/qtmp% readelf -s foo.o bar.o

File: foo.o

Symbol table '.symtab' contains 5 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    2
     3: 00000000     0 SECTION LOCAL  DEFAULT    3
     4: 00000000     0 SECTION LOCAL  DEFAULT    4

File: bar.o

Symbol table '.symtab' contains 6 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    2
     3: 00000000     0 SECTION LOCAL  DEFAULT    3
     4: 00000000     0 SECTION LOCAL  DEFAULT    4
     5: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND foo
drow@nevyn:~/qtmp% ld -r -o foo foo.o bar.o
drow@nevyn:~/qtmp% readelf -s foo

Symbol table '.symtab' contains 11 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    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 SECTION LOCAL  DEFAULT    6
     7: 00000000     0 SECTION LOCAL  DEFAULT    7
     8: 00000000     0 SECTION LOCAL  DEFAULT    8
     9: 00000000     0 SECTION LOCAL  DEFAULT    9
    10: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND foo
drow@nevyn:~/qtmp% objdump -t foo

foo:     file format elf32-i386

SYMBOL TABLE:
00000000 l    d  .text  00000000
00000000 l    d  .data  00000000
00000000 l    d  .bss   00000000
00000000 l    d  foo    00000000
00000000 l    d  bar    00000000
00000000 l    d  *ABS*  00000000
00000000 l    d  *ABS*  00000000
00000000 l    d  *ABS*  00000000
00000000 l    d  *ABS*  00000000
00000000         *UND*  00000000 foo

If that showed both of these:

00000000 l    d  foo    00000000 foo
00000000         *UND*  00000000 foo

I'd be really confused!  "Why didn't 'foo' resolve to 'foo'?" the user
asks me...

-- 
Daniel Jacobowitz

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-11  5:08                     ` Daniel Jacobowitz
@ 2004-12-11  5:32                       ` Alan Modra
  2004-12-11  5:38                         ` Daniel Jacobowitz
  2004-12-11  5:52                         ` Alan Modra
  0 siblings, 2 replies; 18+ messages in thread
From: Alan Modra @ 2004-12-11  5:32 UTC (permalink / raw)
  To: binutils, Hans-Peter Nilsson

On Sat, Dec 11, 2004 at 12:07:29AM -0500, Daniel Jacobowitz wrote:
> drow@nevyn:~/qtmp% ld -r -o foo foo.o bar.o

Mutter.  ld -r.  Mutter.

> 00000000 l    d  foo    00000000 foo
> 00000000         *UND*  00000000 foo
> 
> I'd be really confused!  "Why didn't 'foo' resolve to 'foo'?" the user
> asks me...

Well, I'm not wedded to the trick I used.  In fact, I made provision for
reverting the elfcode.h change without needing to change the testsuite.

Having the name there does have some benefit, for example with these
section syms that some targets emit:

00000000 l    d  *ABS*	00000000 .shstrtab
00000000 l    d  *ABS*	00000000 .symtab
00000000 l    d  *ABS*	00000000 .strtab

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-11  5:32                       ` Alan Modra
@ 2004-12-11  5:38                         ` Daniel Jacobowitz
  2004-12-11  5:59                           ` Alan Modra
  2004-12-11  5:52                         ` Alan Modra
  1 sibling, 1 reply; 18+ messages in thread
From: Daniel Jacobowitz @ 2004-12-11  5:38 UTC (permalink / raw)
  To: binutils; +Cc: Hans-Peter Nilsson

On Sat, Dec 11, 2004 at 04:02:02PM +1030, Alan Modra wrote:
> On Sat, Dec 11, 2004 at 12:07:29AM -0500, Daniel Jacobowitz wrote:
> > drow@nevyn:~/qtmp% ld -r -o foo foo.o bar.o
> 
> Mutter.  ld -r.  Mutter.

Well, you could get the same result using a final link.

> > 00000000 l    d  foo    00000000 foo
> > 00000000         *UND*  00000000 foo
> > 
> > I'd be really confused!  "Why didn't 'foo' resolve to 'foo'?" the user
> > asks me...
> 
> Well, I'm not wedded to the trick I used.  In fact, I made provision for
> reverting the elfcode.h change without needing to change the testsuite.
> 
> Having the name there does have some benefit, for example with these
> section syms that some targets emit:
> 
> 00000000 l    d  *ABS*	00000000 .shstrtab
> 00000000 l    d  *ABS*	00000000 .symtab
> 00000000 l    d  *ABS*	00000000 .strtab

Hmm, yeah (another note for "weird elf things" volume #37... section
symbols not in a section?  how DOES that work?).

I've been forcibly reminded that STT_SECTION symbols are not, in
principle, all that special.  You could have one with a name, or
without.  Objdump would ideally reveal that difference - though I have
gotten in the habit of using readelf when I need this much precision,
since its output better corresponds to ELF, which is (gasp) better
documented than BFD internals.

How _do_ absolute section symbols work anyway?

-- 
Daniel Jacobowitz

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-11  5:32                       ` Alan Modra
  2004-12-11  5:38                         ` Daniel Jacobowitz
@ 2004-12-11  5:52                         ` Alan Modra
  1 sibling, 0 replies; 18+ messages in thread
From: Alan Modra @ 2004-12-11  5:52 UTC (permalink / raw)
  To: binutils, Hans-Peter Nilsson

On Sat, Dec 11, 2004 at 04:02:02PM +1030, Alan Modra wrote:
> On Sat, Dec 11, 2004 at 12:07:29AM -0500, Daniel Jacobowitz wrote:
> > drow@nevyn:~/qtmp% ld -r -o foo foo.o bar.o
> 
> Mutter.  ld -r.  Mutter.
> 
> > 00000000 l    d  foo    00000000 foo
> > 00000000         *UND*  00000000 foo
> > 
> > I'd be really confused!  "Why didn't 'foo' resolve to 'foo'?" the user
> > asks me...
> 
> Well, I'm not wedded to the trick I used.  In fact, I made provision for
> reverting the elfcode.h change without needing to change the testsuite.

And if you can play tricks with ld -r, so can I.  :)

$ cat u1.s
 .long foo
 .long bar
$ cat u2..s
 .section foo,"awM",@progbits,4
 .long foo
bar:
 .long bar
$ as -o u1.o u1.s
$ as -o u2.o u2.s
$ ld -r -o u.o u1.o u2.o
$ objdump -t u.o

u.o:     file format elf32-i386

SYMBOL TABLE:
00000000 l    d  .text  00000000
00000000 l    d  *ABS*  00000000
00000000 l    d  .data  00000000
00000000 l    d  foo    00000000
00000000 l    d  *ABS*  00000000
00000000 l    d  .bss   00000000
00000000 l    d  *ABS*  00000000
00000000 l    d  *ABS*  00000000
00000000 l    d  *ABS*  00000000
00000004 l       foo    00000000 bar
00000000         *UND*  00000000 foo
00000000         *UND*  00000000 bar

Both defined and undefined "bar".  Repeating with current tools:

u.o:     file format elf32-i386

SYMBOL TABLE:
00000000 l    d  .text  00000000 .text
00000000 l    d  *ABS*  00000000 .rel.text
00000000 l    d  .data  00000000 .data
00000000 l    d  foo    00000000 foo
00000000 l    d  *ABS*  00000000 .relfoo
00000000 l    d  .bss   00000000 .bss
00000000 l    d  *ABS*  00000000 .shstrtab
00000000 l    d  *ABS*  00000000 .symtab
00000000 l    d  *ABS*  00000000 .strtab
00000004 l       foo    00000000 bar
00000000         *UND*  00000000 foo
00000000         *UND*  00000000 bar

I don't see that as being as worse.  Like I said before, the reason we
can have this is that bar (and foo) are local to a file.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-11  5:38                         ` Daniel Jacobowitz
@ 2004-12-11  5:59                           ` Alan Modra
  2004-12-11  6:11                             ` Daniel Jacobowitz
  0 siblings, 1 reply; 18+ messages in thread
From: Alan Modra @ 2004-12-11  5:59 UTC (permalink / raw)
  To: binutils

On Sat, Dec 11, 2004 at 12:38:11AM -0500, Daniel Jacobowitz wrote:
> > 00000000 l    d  *ABS*	00000000 .shstrtab
> > 00000000 l    d  *ABS*	00000000 .symtab
> > 00000000 l    d  *ABS*	00000000 .strtab
> 
> Hmm, yeah (another note for "weird elf things" volume #37... section
> symbols not in a section?  how DOES that work?).

The *ABS* is probably just an artifact caused by these sections not
having a bfd section.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: RFA: Don't canonicalize STT_SECTION syms
  2004-12-11  5:59                           ` Alan Modra
@ 2004-12-11  6:11                             ` Daniel Jacobowitz
  0 siblings, 0 replies; 18+ messages in thread
From: Daniel Jacobowitz @ 2004-12-11  6:11 UTC (permalink / raw)
  To: binutils

On Sat, Dec 11, 2004 at 04:29:45PM +1030, Alan Modra wrote:
> On Sat, Dec 11, 2004 at 12:38:11AM -0500, Daniel Jacobowitz wrote:
> > > 00000000 l    d  *ABS*	00000000 .shstrtab
> > > 00000000 l    d  *ABS*	00000000 .symtab
> > > 00000000 l    d  *ABS*	00000000 .strtab
> > 
> > Hmm, yeah (another note for "weird elf things" volume #37... section
> > symbols not in a section?  how DOES that work?).
> 
> The *ABS* is probably just an artifact caused by these sections not
> having a bfd section.

Oh right.

What's your reaction to having the section symbols print without names,
then objdump adding the section name when it encounters a relocation
against an unnamed section symbol?  I can try to put that together
tomorrow.

-- 
Daniel Jacobowitz

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2004-12-11  6:11 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-08 21:50 RFA: Don't canonicalize STT_SECTION syms Daniel Jacobowitz
2004-12-08 23:57 ` Alan Modra
2004-12-10  3:15 ` Hans-Peter Nilsson
2004-12-10  3:21   ` Daniel Jacobowitz
2004-12-10 12:14     ` Alan Modra
2004-12-10 12:56       ` Alan Modra
2004-12-10 14:04         ` Alan Modra
2004-12-10 15:14           ` Hans-Peter Nilsson
2004-12-10 15:19             ` Daniel Jacobowitz
2004-12-11  4:21               ` Alan Modra
2004-12-11  4:34                 ` Daniel Jacobowitz
2004-12-11  4:57                   ` Alan Modra
2004-12-11  5:08                     ` Daniel Jacobowitz
2004-12-11  5:32                       ` Alan Modra
2004-12-11  5:38                         ` Daniel Jacobowitz
2004-12-11  5:59                           ` Alan Modra
2004-12-11  6:11                             ` Daniel Jacobowitz
2004-12-11  5:52                         ` 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).