Home | History | Annotate | Line # | Download | only in conf
kern.ldscript revision 1.1
      1 /*	$NetBSD: kern.ldscript,v 1.1 2002/11/21 01:38:41 thorpej Exp $	*/
      2 
      3 OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
      4 	      "elf32-littlearm")
      5 OUTPUT_ARCH(arm)
      6 SECTIONS
      7 {
      8   . = 0xf0000020;	/* 0x20 == sizeof(a.out header) */
      9 
     10   /* Read-only sections, merged into text segment: */
     11   .text :
     12   {
     13     *(.text)
     14     *(.text.*)
     15     *(.stub)
     16     *(.glue_7t) *(.glue_7)
     17     *(.rodata) *(.rodata.*)
     18   } =0
     19   PROVIDE (__etext = .);
     20   PROVIDE (_etext = .);
     21   PROVIDE (etext = .);
     22   . = ALIGN(0x1000);
     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