Re: [PATCH] use generic DWARF_DEBUG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 10 May 2006 12:24:23 +0100, Thiemo Seufer <ths@xxxxxxxxxxxx> 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@xxxxxxxxxxxxx>

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) }
 }


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux