Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Don't mention stab and DWARF sections, because thes...



details:   https://anonhg.NetBSD.org/src/rev/60d1dc2e5720
branches:  trunk
changeset: 340129:60d1dc2e5720
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Mon Aug 24 08:13:07 2015 +0000

description:
Don't mention stab and DWARF sections, because these (poorly mtaintained)
lists only help to make them harder to read.

If those sections are found in inputs, they simply appear in outputs as
orphaned sections, sorted by section types and attributes.

diffstat:

 sys/arch/aarch64/conf/kern.ldscript    |  33 ------------------------
 sys/arch/dreamcast/conf/shl.x          |  37 +---------------------------
 sys/arch/hpcsh/conf/shl-elf.x          |  37 +---------------------------
 sys/arch/ia64/conf/kern.ldscript       |  33 ------------------------
 sys/arch/mips/conf/kern.ldscript       |  44 +--------------------------------
 sys/arch/powerpc/conf/kern-mb.ldscript |  19 +-------------
 sys/arch/powerpc/conf/kern.ldscript    |  45 +---------------------------------
 sys/arch/powerpc/conf/kern64.ldscript  |  38 ----------------------------
 sys/arch/riscv/conf/kern.ldscript      |  42 -------------------------------
 sys/arch/sparc/conf/kern.ldscript      |  36 +--------------------------
 sys/arch/sparc64/conf/kern.ldscript    |  36 +--------------------------
 sys/arch/sparc64/conf/kern32.ldscript  |  36 +--------------------------
 12 files changed, 8 insertions(+), 428 deletions(-)

diffs (truncated from 570 to 300 lines):

diff -r bea8116723fa -r 60d1dc2e5720 sys/arch/aarch64/conf/kern.ldscript
--- a/sys/arch/aarch64/conf/kern.ldscript       Mon Aug 24 07:21:14 2015 +0000
+++ b/sys/arch/aarch64/conf/kern.ldscript       Mon Aug 24 08:13:07 2015 +0000
@@ -71,39 +71,6 @@
   __end__ = . ;
   _end = .; PROVIDE (end = .);
   . = DATA_SEGMENT_END (.);
-  .comment       0 : { *(.comment) }
-  .ident         0 : { *(.ident) }
-  /* DWARF debug sections.
-     Symbols in the DWARF debugging sections are relative to the beginning
-     of the section so we begin them at 0.  */
-  /* DWARF 1 */
-  .debug          0 : { *(.debug) }
-  .line           0 : { *(.line) }
-  /* GNU DWARF 1 extensions */
-  .debug_srcinfo  0 : { *(.debug_srcinfo) }
-  .debug_sfnames  0 : { *(.debug_sfnames) }
-  /* DWARF 1.1 and DWARF 2 */
-  .debug_aranges  0 : { *(.debug_aranges) }
-  .debug_pubnames 0 : { *(.debug_pubnames) }
-  /* DWARF 2 */
-  .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
-  .debug_abbrev   0 : { *(.debug_abbrev) }
-  .debug_line     0 : { *(.debug_line) }
-  .debug_frame    0 : { *(.debug_frame) }
-  .debug_str      0 : { *(.debug_str) }
-  .debug_loc      0 : { *(.debug_loc) }
-  .debug_macinfo  0 : { *(.debug_macinfo) }
-  /* SGI/MIPS DWARF 2 extensions */
-  .debug_weaknames 0 : { *(.debug_weaknames) }
-  .debug_funcnames 0 : { *(.debug_funcnames) }
-  .debug_typenames 0 : { *(.debug_typenames) }
-  .debug_varnames  0 : { *(.debug_varnames) }
-  /* DWARF 3 */
-  .debug_pubtypes 0 : { *(.debug_pubtypes) }
-  .debug_ranges   0 : { *(.debug_ranges) }
-  /* DWARF Extension.  */
-  .debug_macro    0 : { *(.debug_macro) }
   .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }
   .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
-  /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
 }
diff -r bea8116723fa -r 60d1dc2e5720 sys/arch/dreamcast/conf/shl.x
--- a/sys/arch/dreamcast/conf/shl.x     Mon Aug 24 07:21:14 2015 +0000
+++ b/sys/arch/dreamcast/conf/shl.x     Mon Aug 24 08:13:07 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: shl.x,v 1.8 2015/08/20 06:53:11 uebayasi Exp $ */
+/*     $NetBSD: shl.x,v 1.9 2015/08/24 08:13:07 uebayasi Exp $ */
 
 OUTPUT_FORMAT("elf32-shl-nbsd")
 OUTPUT_ARCH(sh)
@@ -40,39 +40,4 @@
   . = ALIGN(4);
   end = . ;
   PROVIDE (end = .);
-
-  /* Stabs debugging sections.  */
-  .stab 0 : { *(.stab) }
-  .stabstr 0 : { *(.stabstr) }
-  .stab.excl 0 : { *(.stab.excl) }
-  .stab.exclstr 0 : { *(.stab.exclstr) }
-  .stab.index 0 : { *(.stab.index) }
-  .stab.indexstr 0 : { *(.stab.indexstr) }
-  .comment 0 : { *(.comment) }
-  /* DWARF debug sections.
-     Symbols in the DWARF debugging section are relative to the beginning
-     of the section so we begin .debug at 0.  */
-  /* DWARF 1 */
-  .debug          0 : { *(.debug) }
-  .line           0 : { *(.line) }
-  /* GNU DWARF 1 extensions */
-  .debug_srcinfo  0 : { *(.debug_srcinfo) }
-  .debug_sfnames  0 : { *(.debug_sfnames) }
-  /* DWARF 1.1 and DWARF 2 */
-  .debug_aranges  0 : { *(.debug_aranges) }
-  .debug_pubnames 0 : { *(.debug_pubnames) }
-  /* DWARF 2 */
-  .debug_info     0 : { *(.debug_info) }
-  .debug_abbrev   0 : { *(.debug_abbrev) }
-  .debug_line     0 : { *(.debug_line) }
-  .debug_frame    0 : { *(.debug_frame) }
-  .debug_str      0 : { *(.debug_str) }
-  .debug_loc      0 : { *(.debug_loc) }
-  .debug_macinfo  0 : { *(.debug_macinfo) }
-  /* SGI/MIPS DWARF 2 extensions */
-  .debug_weaknames 0 : { *(.debug_weaknames) }
-  .debug_funcnames 0 : { *(.debug_funcnames) }
-  .debug_typenames 0 : { *(.debug_typenames) }
-  .debug_varnames  0 : { *(.debug_varnames) }
-  /* These must appear regardless of  .  */
 }
diff -r bea8116723fa -r 60d1dc2e5720 sys/arch/hpcsh/conf/shl-elf.x
--- a/sys/arch/hpcsh/conf/shl-elf.x     Mon Aug 24 07:21:14 2015 +0000
+++ b/sys/arch/hpcsh/conf/shl-elf.x     Mon Aug 24 08:13:07 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: shl-elf.x,v 1.8 2015/08/20 06:53:11 uebayasi Exp $     */
+/*     $NetBSD: shl-elf.x,v 1.9 2015/08/24 08:13:07 uebayasi Exp $     */
 
 OUTPUT_FORMAT("elf32-shl-nbsd")
 OUTPUT_ARCH(sh)
@@ -41,39 +41,4 @@
   . = ALIGN(4);
   end = . ;
   PROVIDE (end = .);
-
-  /* Stabs debugging sections.  */
-  .stab 0 : { *(.stab) }
-  .stabstr 0 : { *(.stabstr) }
-  .stab.excl 0 : { *(.stab.excl) }
-  .stab.exclstr 0 : { *(.stab.exclstr) }
-  .stab.index 0 : { *(.stab.index) }
-  .stab.indexstr 0 : { *(.stab.indexstr) }
-  .comment 0 : { *(.comment) }
-  /* DWARF debug sections.
-     Symbols in the DWARF debugging section are relative to the beginning
-     of the section so we begin .debug at 0.  */
-  /* DWARF 1 */
-  .debug          0 : { *(.debug) }
-  .line           0 : { *(.line) }
-  /* GNU DWARF 1 extensions */
-  .debug_srcinfo  0 : { *(.debug_srcinfo) }
-  .debug_sfnames  0 : { *(.debug_sfnames) }
-  /* DWARF 1.1 and DWARF 2 */
-  .debug_aranges  0 : { *(.debug_aranges) }
-  .debug_pubnames 0 : { *(.debug_pubnames) }
-  /* DWARF 2 */
-  .debug_info     0 : { *(.debug_info) }
-  .debug_abbrev   0 : { *(.debug_abbrev) }
-  .debug_line     0 : { *(.debug_line) }
-  .debug_frame    0 : { *(.debug_frame) }
-  .debug_str      0 : { *(.debug_str) }
-  .debug_loc      0 : { *(.debug_loc) }
-  .debug_macinfo  0 : { *(.debug_macinfo) }
-  /* SGI/MIPS DWARF 2 extensions */
-  .debug_weaknames 0 : { *(.debug_weaknames) }
-  .debug_funcnames 0 : { *(.debug_funcnames) }
-  .debug_typenames 0 : { *(.debug_typenames) }
-  .debug_varnames  0 : { *(.debug_varnames) }
-  /* These must appear regardless of  .  */
 }
diff -r bea8116723fa -r 60d1dc2e5720 sys/arch/ia64/conf/kern.ldscript
--- a/sys/arch/ia64/conf/kern.ldscript  Mon Aug 24 07:21:14 2015 +0000
+++ b/sys/arch/ia64/conf/kern.ldscript  Mon Aug 24 08:13:07 2015 +0000
@@ -71,37 +71,4 @@
   . = ALIGN(64 / 8);
   _end = .;
   PROVIDE (end = .);
-  /* Stabs debugging sections.  */
-  .stab          0 : { *(.stab) }
-  .stabstr       0 : { *(.stabstr) }
-  .stab.excl     0 : { *(.stab.excl) }
-  .stab.exclstr  0 : { *(.stab.exclstr) }
-  .stab.index    0 : { *(.stab.index) }
-  .stab.indexstr 0 : { *(.stab.indexstr) }
-  .comment       0 : { *(.comment) }
-  /* DWARF debug sections.
-     Symbols in the DWARF debugging sections are relative to the beginning
-     of the section so we begin them at 0.  */
-  /* DWARF 1 */
-  .debug          0 : { *(.debug) }
-  .line           0 : { *(.line) }
-  /* GNU DWARF 1 extensions */
-  .debug_srcinfo  0 : { *(.debug_srcinfo) }
-  .debug_sfnames  0 : { *(.debug_sfnames) }
-  /* DWARF 1.1 and DWARF 2 */
-  .debug_aranges  0 : { *(.debug_aranges) }
-  .debug_pubnames 0 : { *(.debug_pubnames) }
-  /* DWARF 2 */
-  .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
-  .debug_abbrev   0 : { *(.debug_abbrev) }
-  .debug_line     0 : { *(.debug_line) }
-  .debug_frame    0 : { *(.debug_frame) }
-  .debug_str      0 : { *(.debug_str) }
-  .debug_loc      0 : { *(.debug_loc) }
-  .debug_macinfo  0 : { *(.debug_macinfo) }
-  /* SGI/MIPS DWARF 2 extensions */
-  .debug_weaknames 0 : { *(.debug_weaknames) }
-  .debug_funcnames 0 : { *(.debug_funcnames) }
-  .debug_typenames 0 : { *(.debug_typenames) }
-  .debug_varnames  0 : { *(.debug_varnames) }
 }
diff -r bea8116723fa -r 60d1dc2e5720 sys/arch/mips/conf/kern.ldscript
--- a/sys/arch/mips/conf/kern.ldscript  Mon Aug 24 07:21:14 2015 +0000
+++ b/sys/arch/mips/conf/kern.ldscript  Mon Aug 24 08:13:07 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.ldscript,v 1.9 2015/08/21 02:35:52 uebayasi Exp $ */
+/* $NetBSD: kern.ldscript,v 1.10 2015/08/24 08:13:07 uebayasi Exp $ */
 
 /*  ldscript for NetBSD/mips kernels and LKMs */
 OUTPUT_ARCH(mips)
@@ -51,46 +51,4 @@
   }
   _end = . ;
   PROVIDE (end = .);
-  /* These are needed for ELF backends which have not yet been
-     converted to the new style linker.  */
-  .stab 0 : { *(.stab) }
-  .stabstr 0 : { *(.stabstr) }
-  /* DWARF debug sections.
-     Symbols in the .debug DWARF section are relative to the beginning of the
-     section so we begin .debug at 0.  It's not clear yet what needs to happen
-     for the others.   */
-  .debug          0 : { *(.debug) }
-  /* DWARF 1 */
-  .debug_srcinfo  0 : { *(.debug_srcinfo) }
-  .debug_sfnames  0 : { *(.debug_sfnames) }
-  /* DWARF 1.1 and DWARF 2 */
-  .debug_aranges  0 : { *(.debug_aranges) }
-  .debug_pubnames 0 : { *(.debug_pubnames) }
-  /* DWARF 2 */
-  .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
-  .debug_abbrev   0 : { *(.debug_abbrev) }
-  .debug_line     0 : { *(.debug_line) }
-  .debug_frame    0 : { *(.debug_frame) }
-  .debug_str      0 : { *(.debug_str) }
-  .debug_loc      0 : { *(.debug_loc) }
-  .debug_macinfo  0 : { *(.debug_macinfo) }
-  /* SGI/MIPS DWARF 2 extensions */
-  .debug_weaknames 0 : { *(.debug_weaknames) }
-  .debug_funcnames 0 : { *(.debug_funcnames) }
-  .debug_typenames 0 : { *(.debug_typenames) }
-  .debug_varnames  0 : { *(.debug_varnames) }
-  /* DWARF3 */
-  .debug_pubtypes 0 : { *(.debug_pubtypes) }
-  .debug_ranges   0 : { *(.debug_ranges) }
-  /* for GDB */
-  .mdebug.abi32 : { KEEP(*(.mdebug.abi32)) }
-  .mdebug.abiN32 : { KEEP(*(.mdebug.abiN32)) }
-  .mdebug.abi64 : { KEEP(*(.mdebug.abi64)) }
-  .mdebug.abiO64 : { KEEP(*(.mdebug.abiO64)) }
-  .mdebug.eabi32 : { KEEP(*(.mdebug.eabi32)) }
-  .mdebug.eabi64 : { KEEP(*(.mdebug.eabi64)) }
-  /* These must appear regardless of  .  */
-  .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
-  .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
-  /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) }
 }
diff -r bea8116723fa -r 60d1dc2e5720 sys/arch/powerpc/conf/kern-mb.ldscript
--- a/sys/arch/powerpc/conf/kern-mb.ldscript    Mon Aug 24 07:21:14 2015 +0000
+++ b/sys/arch/powerpc/conf/kern-mb.ldscript    Mon Aug 24 08:13:07 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern-mb.ldscript,v 1.3 2015/08/21 02:35:52 uebayasi Exp $ */
+/* $NetBSD: kern-mb.ldscript,v 1.4 2015/08/24 08:13:07 uebayasi Exp $ */
 
 /*  ldscript for NetBSD/powerpc kernels and LKMs */
 OUTPUT_ARCH(powerpc)
@@ -55,21 +55,4 @@
   }
   _end = . ;
   PROVIDE (end = .);
-  /* These are needed for ELF backends which have not yet been
-     converted to the new style linker.  */
-  .stab 0 : { *(.stab) }
-  .stabstr 0 : { *(.stabstr) }
-  /* DWARF debug sections.
-     Symbols in the .debug DWARF section are relative to the beginning of the
-     section so we begin .debug at 0.  It's not clear yet what needs to happen
-     for the others.   */
-  .debug          0 : { *(.debug) }
-  .debug_srcinfo  0 : { *(.debug_srcinfo) }
-  .debug_aranges  0 : { *(.debug_aranges) }
-  .debug_pubnames 0 : { *(.debug_pubnames) }
-  .debug_sfnames  0 : { *(.debug_sfnames) }
-  .line           0 : { *(.line) }
-  /* These must appear regardless of  .  */
-  .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
-  .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
 }
diff -r bea8116723fa -r 60d1dc2e5720 sys/arch/powerpc/conf/kern.ldscript
--- a/sys/arch/powerpc/conf/kern.ldscript       Mon Aug 24 07:21:14 2015 +0000
+++ b/sys/arch/powerpc/conf/kern.ldscript       Mon Aug 24 08:13:07 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.ldscript,v 1.8 2015/08/21 02:35:52 uebayasi Exp $ */
+/* $NetBSD: kern.ldscript,v 1.9 2015/08/24 08:13:07 uebayasi Exp $ */
 
 /*  ldscript for NetBSD/powerpc kernels and LKMs, based on elf32ppc.x */
 OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc",
@@ -96,47 +96,4 @@
   __end = .;
   _end = .; PROVIDE (end = .);
   /* . = DATA_SEGMENT_END (.); */
-  /* Stabs debugging sections.  */
-  .stab          0 : { *(.stab) }
-  .stabstr       0 : { *(.stabstr) }
-  .stab.excl     0 : { *(.stab.excl) }
-  .stab.exclstr  0 : { *(.stab.exclstr) }
-  .stab.index    0 : { *(.stab.index) }
-  .stab.indexstr 0 : { *(.stab.indexstr) }
-  .comment       0 : { *(.comment) }
-  /* DWARF debug sections.
-     Symbols in the DWARF debugging sections are relative to the beginning
-     of the section so we begin them at 0.  */
-  /* DWARF 1 */
-  .debug          0 : { *(.debug) }
-  .line           0 : { *(.line) }
-  /* GNU DWARF 1 extensions */
-  .debug_srcinfo  0 : { *(.debug_srcinfo) }
-  .debug_sfnames  0 : { *(.debug_sfnames) }
-  /* DWARF 1.1 and DWARF 2 */



Home | Main Index | Thread Index | Old Index