This is the mail archive of the binutils@sourceware.org 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]

[PATCH, MIPS] Update DWARF2 address size with -msym32


Recently, we changed the DWARF2 address size for -msym32 to 8 in GCC in this
thread: http://gcc.gnu.org/ml/gcc/2009-01/msg00604.html

The patch updates the assembler, which still uses 4.  Because of the
difference between GCC and the assembler we still get mixed address sizes on a
-msym32 kernel causing dwarfdump to fail.

The idea is the same as in the GCC patch: for DWARF2 address size we want to
use the symbol size as in the symbol table rather than as used for code
generation.

Regression-tested with mips64octeon-linux-gnu.  OK to install?

Adam

	* config/tc-mips.c (mips_dwarf2_addr_size): Use HAVE_64BIT_OBJECTS
	instead of HAVE_64BIT_SYMBOLS.

Index: tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.403
diff -u -r1.403 tc-mips.c
--- tc-mips.c	3 Feb 2009 18:16:03 -0000	1.403
+++ tc-mips.c	9 Apr 2009 06:26:48 -0000
@@ -15518,7 +15518,7 @@
 int
 mips_dwarf2_addr_size (void)
 {
-  if (HAVE_64BIT_SYMBOLS)
+  if (HAVE_64BIT_OBJECTS)
     return 8;
   else
     return 4;


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