This is the mail archive of the binutils@sources.redhat.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]
Other format: [Raw text]

Re: detect special mips64le dwarf2 line number length encoding


On Jan 20, 2003, Daniel Jacobowitz <drow@mvista.com> wrote:

> On Sun, Jan 19, 2003 at 01:13:58PM -0200, Alexandre Oliva wrote:
>> On Jan 19, 2003, Daniel Jacobowitz <drow@mvista.com> wrote:
>> 
>> > Ask a silly question, but MIPS64 Linux is a brand new userspace port. 
>> > Why are we using the non-standard DWARF-2 format?  Why not do it the
>> > normal way?
>> 
>> Besides the intent of compatibility with Irix, there are places where
>> you don't really know whether the object file at hand is for GNU/Linux
>> or Irix, so using different formats could be, erhm, interesting.  Not
>> that I've investigated this possibility in much depth, mind you.

> While I hate to dump more work on you, I would really rather we pursue
> this than propogate the nonstandard IRIX approach to this.  I really
> don't think it would be much of a difficulty.

How 'bout this?  We don't really know whether we're targeting IRIX,
but TE_TMIPS is not set whenever we are, so this is probably good
enough.  Ok to install?

Index: gas/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* config/tc-mips.c (mips_dwarf2_format): Use standard 64-bit
	format instead of IRIX-specific for traditional mips.

Index: gas/config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.188
diff -u -p -r1.188 tc-mips.c
--- gas/config/tc-mips.c 23 Jan 2003 12:51:05 -0000 1.188
+++ gas/config/tc-mips.c 26 Jan 2003 06:23:10 -0000
@@ -14788,7 +14788,13 @@ enum dwarf2_format
 mips_dwarf2_format ()
 {
   if (mips_abi == N64_ABI)
-    return dwarf2_format_64bit_irix;
+    {
+#ifdef TE_TMIPS
+      return dwarf2_format_64bit;
+#else
+      return dwarf2_format_64bit_irix;
+#endif
+    }
   else
     return dwarf2_format_32bit;
 }
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

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