xref: /dflybsd-src/contrib/binutils-2.27/ld/scripttempl/DWARF.sc (revision e656dc90e3d65d744d534af2f5ea88cf8101ebcf)
1*a9fa9459Szrj# Copyright (C) 2014-2016 Free Software Foundation, Inc.
2*a9fa9459Szrj#
3*a9fa9459Szrj# Copying and distribution of this file, with or without modification,
4*a9fa9459Szrj# are permitted in any medium without royalty provided the copyright
5*a9fa9459Szrj# notice and this notice are preserved.
6*a9fa9459Szrj#
7*a9fa9459Szrjcat <<EOF
8*a9fa9459Szrj  /* DWARF debug sections.
9*a9fa9459Szrj     Symbols in the DWARF debugging sections are relative to the beginning
10*a9fa9459Szrj     of the section so we begin them at 0.  */
11*a9fa9459Szrj
12*a9fa9459Szrj  /* DWARF 1 */
13*a9fa9459Szrj  .debug          0 : { *(.debug) }
14*a9fa9459Szrj  .line           0 : { *(.line) }
15*a9fa9459Szrj
16*a9fa9459Szrj  /* GNU DWARF 1 extensions */
17*a9fa9459Szrj  .debug_srcinfo  0 : { *(.debug_srcinfo) }
18*a9fa9459Szrj  .debug_sfnames  0 : { *(.debug_sfnames) }
19*a9fa9459Szrj
20*a9fa9459Szrj  /* DWARF 1.1 and DWARF 2 */
21*a9fa9459Szrj  .debug_aranges  0 : { *(.debug_aranges) }
22*a9fa9459Szrj  .debug_pubnames 0 : { *(.debug_pubnames) }
23*a9fa9459Szrj
24*a9fa9459Szrj  /* DWARF 2 */
25*a9fa9459Szrj  .debug_info     0 : { *(.debug_info${RELOCATING+ .gnu.linkonce.wi.*}) }
26*a9fa9459Szrj  .debug_abbrev   0 : { *(.debug_abbrev) }
27*a9fa9459Szrj  .debug_line     0 : { *(.debug_line .debug_line.* .debug_line_end ) }
28*a9fa9459Szrj  .debug_frame    0 : { *(.debug_frame) }
29*a9fa9459Szrj  .debug_str      0 : { *(.debug_str) }
30*a9fa9459Szrj  .debug_loc      0 : { *(.debug_loc) }
31*a9fa9459Szrj  .debug_macinfo  0 : { *(.debug_macinfo) }
32*a9fa9459Szrj
33*a9fa9459Szrj  /* SGI/MIPS DWARF 2 extensions */
34*a9fa9459Szrj  .debug_weaknames 0 : { *(.debug_weaknames) }
35*a9fa9459Szrj  .debug_funcnames 0 : { *(.debug_funcnames) }
36*a9fa9459Szrj  .debug_typenames 0 : { *(.debug_typenames) }
37*a9fa9459Szrj  .debug_varnames  0 : { *(.debug_varnames) }
38*a9fa9459Szrj
39*a9fa9459Szrj  /* DWARF 3 */
40*a9fa9459Szrj  .debug_pubtypes 0 : { *(.debug_pubtypes) }
41*a9fa9459Szrj  .debug_ranges   0 : { *(.debug_ranges) }
42*a9fa9459Szrj
43*a9fa9459Szrj  /* DWARF Extension.  */
44*a9fa9459Szrj  .debug_macro    0 : { *(.debug_macro) }
45*a9fa9459SzrjEOF
46