shl.x revision 1.8
1/*	$NetBSD: shl.x,v 1.8 2015/08/20 06:53:11 uebayasi Exp $	*/
2
3OUTPUT_FORMAT("elf32-shl-nbsd")
4OUTPUT_ARCH(sh)
5ENTRY(start)
6
7MEMORY
8{
9  ram : o = 0x8c001000, l = 16M
10}
11SECTIONS
12{
13  .text :
14  {
15    ftext = . ;
16    *(.text)
17    *(.rodata)
18    *(.strings)
19  } > ram
20  etext = . ;
21  PROVIDE (etext = .);
22  . = ALIGN(8);
23  .data :
24  {
25    fdata = . ;
26    PROVIDE (fdata = .);
27    *(.data)
28    CONSTRUCTORS
29  } > ram
30  edata = . ;
31  PROVIDE (edata = .);
32  . = ALIGN(8);
33  .bss :
34  {
35    fbss = . ;
36    PROVIDE (fbss = .);
37    *(.bss)
38    *(COMMON)
39  } > ram
40  . = ALIGN(4);
41  end = . ;
42  PROVIDE (end = .);
43
44  /* Stabs debugging sections.  */
45  .stab 0 : { *(.stab) }
46  .stabstr 0 : { *(.stabstr) }
47  .stab.excl 0 : { *(.stab.excl) }
48  .stab.exclstr 0 : { *(.stab.exclstr) }
49  .stab.index 0 : { *(.stab.index) }
50  .stab.indexstr 0 : { *(.stab.indexstr) }
51  .comment 0 : { *(.comment) }
52  /* DWARF debug sections.
53     Symbols in the DWARF debugging section are relative to the beginning
54     of the section so we begin .debug at 0.  */
55  /* DWARF 1 */
56  .debug          0 : { *(.debug) }
57  .line           0 : { *(.line) }
58  /* GNU DWARF 1 extensions */
59  .debug_srcinfo  0 : { *(.debug_srcinfo) }
60  .debug_sfnames  0 : { *(.debug_sfnames) }
61  /* DWARF 1.1 and DWARF 2 */
62  .debug_aranges  0 : { *(.debug_aranges) }
63  .debug_pubnames 0 : { *(.debug_pubnames) }
64  /* DWARF 2 */
65  .debug_info     0 : { *(.debug_info) }
66  .debug_abbrev   0 : { *(.debug_abbrev) }
67  .debug_line     0 : { *(.debug_line) }
68  .debug_frame    0 : { *(.debug_frame) }
69  .debug_str      0 : { *(.debug_str) }
70  .debug_loc      0 : { *(.debug_loc) }
71  .debug_macinfo  0 : { *(.debug_macinfo) }
72  /* SGI/MIPS DWARF 2 extensions */
73  .debug_weaknames 0 : { *(.debug_weaknames) }
74  .debug_funcnames 0 : { *(.debug_funcnames) }
75  .debug_typenames 0 : { *(.debug_typenames) }
76  .debug_varnames  0 : { *(.debug_varnames) }
77  /* These must appear regardless of  .  */
78}
79