Home | History | Annotate | Line # | Download | only in conf
kern.ldscript revision 1.4.14.1
      1  1.4.14.1     chap /*	$NetBSD: kern.ldscript,v 1.4.14.1 2006/06/19 03:44:03 chap Exp $	*/
      2       1.1  thorpej 
      3       1.1  thorpej OUTPUT_FORMAT("elf32-i386", "elf32-i386",
      4       1.1  thorpej 	      "elf32-i386")
      5       1.1  thorpej OUTPUT_ARCH(i386)
      6       1.1  thorpej ENTRY(_start)
      7       1.1  thorpej SECTIONS
      8       1.1  thorpej {
      9  1.4.14.1     chap    /* Read-only sections, merged into text segment: */
     10  1.4.14.1     chap    .text :
     11  1.4.14.1     chap    AT (ADDR(.text) & 0x0fffffff)
     12  1.4.14.1     chap    {
     13  1.4.14.1     chap      *(.text)
     14  1.4.14.1     chap      *(.text.*)
     15  1.4.14.1     chap      *(.stub)
     16  1.4.14.1     chap      *(.rodata)
     17  1.4.14.1     chap    } =0
     18  1.4.14.1     chap    _etext = . ;
     19  1.4.14.1     chap    PROVIDE (etext = .) ;
     20  1.4.14.1     chap 
     21  1.4.14.1     chap    /* Adjust the address for the data segment.  We want to adjust up to
     22  1.4.14.1     chap       the same address within the page on the next page up.  */
     23  1.4.14.1     chap    . = ALIGN(0x1000) + (. & (0x1000 - 1));
     24  1.4.14.1     chap    .data :
     25  1.4.14.1     chap    AT (LOADADDR(.text) + (ADDR(.data) - ADDR(.text)))
     26  1.4.14.1     chap    {
     27  1.4.14.1     chap      *(.data)
     28  1.4.14.1     chap      *(.data.*)
     29  1.4.14.1     chap    }
     30  1.4.14.1     chap    _edata = . ;
     31  1.4.14.1     chap    PROVIDE (edata = .) ;
     32  1.4.14.1     chap    __bss_start = . ;
     33  1.4.14.1     chap    .bss :
     34  1.4.14.1     chap    AT (LOADADDR(.text) + (ADDR(.bss) - ADDR(.text)))
     35  1.4.14.1     chap    {
     36  1.4.14.1     chap      *(.bss)
     37  1.4.14.1     chap      *(.bss.*)
     38  1.4.14.1     chap      *(COMMON)
     39  1.4.14.1     chap      . = ALIGN(32 / 8);
     40  1.4.14.1     chap    }
     41  1.4.14.1     chap    . = ALIGN(32 / 8);
     42       1.1  thorpej   _end = . ;
     43  1.4.14.1     chap   PROVIDE (end = .) ;
     44       1.1  thorpej }
     45