boot.ldscript revision 1.4
1/*	$NetBSD: boot.ldscript,v 1.4 2013/01/20 02:35:13 tsutsui Exp $	*/
2
3OUTPUT_FORMAT("elf32-m68k")
4OUTPUT_ARCH(m68k)
5ENTRY(start)
6SECTIONS
7{
8  /* Read-only sections, merged into text segment: */
9  .text :
10  {
11    *(.text)
12    *(.text.*)
13    *(.rodata) *(.rodata.*)
14    . = ALIGN(4);
15  } =0
16  PROVIDE (__etext = .);
17  PROVIDE (_etext = .);
18  PROVIDE (etext = .);
19  .data :
20  {
21    __data_start = . ;
22    *(.data)
23    *(.data.*)
24    *(.sdata)
25    *(.sdata.*)
26  }
27  _edata = .;
28  PROVIDE (edata = .);
29  __bss_start = .;
30  __bss_start__ = .;
31  .bss       :
32  {
33   *(.dynbss)
34   *(.bss)
35   *(.bss.*)
36   *(COMMON)
37   /* Align here to ensure that the .bss section occupies space up to
38      _end.  Align after .bss to ensure correct alignment even if the
39      .bss section disappears because there are no input sections.  */
40/*   . = ALIGN(32 / 8); */
41  }
42/*  . = ALIGN(32 / 8);*/
43  _end = .;
44  _bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
45  PROVIDE (end = .);
46}
47