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