This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

Re: A gas bug


   Date: Mon, 7 Jun 1999 08:01:39 -0700 (PDT)
   From: hjl@lucon.org (H.J. Lu)

   Thanks for your bug report. Here is a simple testcase.

   # /work/build/gnu/bin/binutils-static/gas/as-new -V -o local.o local.s
   GNU assembler version 2.9.4 (i686-pc-linux) using BFD version 2.9.4
   local.s: Assembler messages:
   local.s:4: Internal error, aborting at /work/gnu/import/binutils/gas/symbols.c
   line 1616 in copy_symbol_attributes

   I will look into it myself when I find time.

   -- 
   H.J. Lu (hjl@gnu.org)
   ---local.s---
	   .section        .debug
   .L_D16:
	   .2byte  0x12
	   .set    .L_T106,.L_D16
	   .4byte  .L_T106


Thanks for the test case.  I think this is the correct patch, or at
least a correct patch.  I just checked it in.

Ian

Index: symbols.c
===================================================================
RCS file: /cvs/binutils/binutils/gas/symbols.c,v
retrieving revision 1.4
diff -u -r1.4 symbols.c
--- symbols.c	1999/06/03 09:49:04	1.4
+++ symbols.c	1999/06/10 21:44:37
@@ -1611,9 +1611,9 @@
      symbolS *dest, *src;
 {
   if (LOCAL_SYMBOL_CHECK (dest))
-    abort ();
+    dest = local_symbol_convert ((struct local_symbol *) dest);
   if (LOCAL_SYMBOL_CHECK (src))
-    abort ();
+    src = local_symbol_convert ((struct local_symbol *) src);
 
 #ifdef BFD_ASSEMBLER
   /* In an expression, transfer the settings of these flags.

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