This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[RFA] gas patch: make MIPS_STABS_ELF actually work
- To: binutils at sources dot redhat dot com
- Subject: [RFA] gas patch: make MIPS_STABS_ELF actually work
- From: Daniel Jacobowitz <dmj+ at andrew dot cmu dot edu>
- Date: Fri, 29 Jun 2001 16:11:33 -0700
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