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