This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: detect special mips64le dwarf2 line number length encoding
On Jan 27, 2003, Eric Christopher <echristo@redhat.com> wrote:
>> I'd prefer this, since it sounds feasible. IRIXisms in mips64-elf
>> annoy me for some reason.
> Yes. I definitely want IRIX bits to be completely separate from
> everything else. Anything not IRIX should generate standard dwarf2
> information.
How 'bout this?
Index: gas/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* configure.in (em): Set to irix on all Irix systems.
* configure: Rebuilt.
* config/te-irix.h: New file.
* config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
whether to use Irix-specific 64-bit format.
Index: gas/configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.125
diff -u -p -r1.125 configure.in
--- gas/configure.in 21 Jan 2003 16:08:31 -0000 1.125
+++ gas/configure.in 27 Jan 2003 21:40:30 -0000
@@ -361,9 +361,9 @@ changequote([,])dnl
mips-*-osf*) fmt=ecoff endian=little ;;
mips-*-ecoff*) fmt=ecoff ;;
mips-*-pe*) fmt=coff endian=little em=pe ;;
- mips-*-irix6*) fmt=elf ;;
- mips-*-irix5*) fmt=elf ;;
- mips-*-irix*) fmt=ecoff ;;
+ mips-*-irix6*) fmt=elf em=irix ;;
+ mips-*-irix5*) fmt=elf em=irix ;;
+ mips-*-irix*) fmt=ecoff em=irix ;;
mips-*-lnews*) fmt=ecoff em=lnews ;;
mips-*-riscos*) fmt=ecoff ;;
mips*-*-linux*) fmt=elf em=tmips ;;
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 27 Jan 2003 21:40:38 -0000
@@ -14788,7 +14788,13 @@ enum dwarf2_format
mips_dwarf2_format ()
{
if (mips_abi == N64_ABI)
- return dwarf2_format_64bit_irix;
+ {
+#ifdef TE_IRIX
+ return dwarf2_format_64bit_irix;
+#else
+ return dwarf2_format_64bit;
+#endif
+ }
else
return dwarf2_format_32bit;
}
Index: gas/config/te-irix.h
===================================================================
RCS file: gas/config/te-irix.h
diff -N gas/config/te-irix.h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gas/config/te-irix.h 27 Jan 2003 21:40:38 -0000
@@ -0,0 +1,31 @@
+/* IRIX targets
+ Copyright 2002 Free Software Foundation, Inc.
+
+ This file is part of GAS, the GNU Assembler.
+
+ GAS is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ GAS is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GAS; see the file COPYING. If not, write to the Free
+ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA. */
+
+/* This file is te-irix.h and is intended to provide support for
+ IRIX targets. Created by Alexandre Oliva <aoliva@redhat.com>. */
+
+#define TE_IRIX 1
+
+/* these define interfaces */
+#ifdef OBJ_HEADER
+#include OBJ_HEADER
+#else
+#include "obj-format.h"
+#endif
--
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