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]

[RFA] gas patch: make MIPS_STABS_ELF actually work


In H.J.'s binutils tree, he never readded the patch to enable COFF targets
on mips*-*-linux.  Because of this, his tools get OBJ_PROCESS_STAB from
obj-elf.h, which starts with "if (ECOFF_DEBUGGING)".  In the CVS tree,
however, COFF targets are enabled, so we go through obj-multi.h.  This will
call ecoff_stab unconditionally through the vector.

Is this patch OK?

2001-06-29  Daniel Jacobowitz  <drow@mvista.com>
	* ecoff.c (ecoff_stab): Return immediately if !ECOFF_DEBUGGING.

--- ecoff.c.orig	Fri Jun 29 16:08:00 2001
+++ ecoff.c	Fri Jun 29 16:08:19 2001
@@ -3477,6 +3477,9 @@
   symint_t indx;
   localsym_t *hold = NULL;
 
+  if (! ECOFF_DEBUGGING)
+    return;
+
   ecoff_debugging_seen = 1;
 
   /* We don't handle .stabd.  */


-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


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