linux-mips
[Top] [All Lists]

Re: [PATCH] use generic DWARF_DEBUG

To: ths@networkno.de
Subject: Re: [PATCH] use generic DWARF_DEBUG
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Thu, 11 May 2006 00:41:26 +0900 (JST)
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org
In-reply-to: <20060510112423.GC7813@networkno.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060510071937.GA7813@networkno.de> <20060510.165616.108981664.nemoto@toshiba-tops.co.jp> <20060510112423.GC7813@networkno.de>
Sender: linux-mips-bounce@linux-mips.org
On Wed, 10 May 2006 12:24:23 +0100, Thiemo Seufer <ths@networkno.de> wrote:
> > Also, I suppose we can use STABS_DEBUG too, but not sure.  Current
> > MIPS vmlinux.lds.S have this line:
> > 
> >   .comment : { *(.comment) }
> > 
> > and it seems conflicts with a .comment line in STABS_DEBUG.  Can we
> > use generic STABS_DEBUG and drop the .comment line in mips
> > vmlinux.lds.S ?
> 
> Isn't stabs in general deprecated by now?

I think so, but someone might think it's still useful since its size
is much smaller. (less than half or so)

Anyway, how about this patch?


[PATCH] use generic STABS_DEBUG macro.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S
index 73f7aca..b84d1f9 100644
--- a/arch/mips/kernel/vmlinux.lds.S
+++ b/arch/mips/kernel/vmlinux.lds.S
@@ -151,16 +151,13 @@ SECTIONS
 
   /* This is the MIPS specific mdebug section.  */
   .mdebug : { *(.mdebug) }
-  /* These are needed for ELF backends which have not yet been
-     converted to the new style linker.  */
-  .stab 0 : { *(.stab) }
-  .stabstr 0 : { *(.stabstr) }
+
+  STABS_DEBUG
 
   DWARF_DEBUG
 
   /* These must appear regardless of  .  */
   .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
   .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
-  .comment : { *(.comment) }
   .note : { *(.note) }
 }

<Prev in Thread] Current Thread [Next in Thread>