Home | History | Annotate | Line # | Download | only in conf
ldscript.evbarm revision 1.6
      1  1.6  jakllsch /*	$NetBSD: ldscript.evbarm,v 1.6 2011/03/06 02:22:27 jakllsch Exp $	*/
      2  1.1       bsh 
      3  1.1       bsh OUTPUT_ARCH(arm)
      4  1.1       bsh ENTRY(KERNEL_BASE_phys)
      5  1.1       bsh SECTIONS
      6  1.1       bsh {
      7  1.1       bsh   KERNEL_BASE_phys = @KERNEL_BASE_PHYS@;
      8  1.1       bsh   KERNEL_BASE_virt = @KERNEL_BASE_VIRT@;
      9  1.1       bsh 
     10  1.1       bsh   /* Kernel start: */
     11  1.1       bsh   .start (KERNEL_BASE_phys) :
     12  1.1       bsh   {
     13  1.1       bsh     *(.start)
     14  1.1       bsh   } =0
     15  1.1       bsh 
     16  1.1       bsh   /* Read-only sections, merged into text segment: */
     17  1.1       bsh   .text (KERNEL_BASE_virt + SIZEOF(.start)) :
     18  1.1       bsh   AT (LOADADDR(.start) + SIZEOF(.start))
     19  1.1       bsh   {
     20  1.1       bsh     *(.text)
     21  1.1       bsh     *(.text.*)
     22  1.1       bsh     *(.stub)
     23  1.1       bsh     *(.glue_7t) *(.glue_7)
     24  1.1       bsh     *(.rodata) *(.rodata.*)
     25  1.1       bsh   } =0
     26  1.1       bsh   PROVIDE (__etext = .);
     27  1.1       bsh   PROVIDE (_etext = .);
     28  1.1       bsh   PROVIDE (etext = .);
     29  1.4      matt   /* Adjust the address for the data segment to start on the next large page
     30  1.1       bsh      boundary.  */
     31  1.4      matt   . = ALIGN(0x10000);
     32  1.1       bsh   .data    :
     33  1.2   thorpej   AT (LOADADDR(.text) + (ADDR(.data) - ADDR(.text)))
     34  1.1       bsh   {
     35  1.1       bsh     __data_start = . ;
     36  1.1       bsh     *(.data)
     37  1.1       bsh     *(.data.*)
     38  1.1       bsh   }
     39  1.6  jakllsch   .sdata     :
     40  1.2   thorpej   AT (LOADADDR(.data) + (ADDR(.sdata) - ADDR(.data)))
     41  1.1       bsh   {
     42  1.6  jakllsch     *(.sdata)
     43  1.1       bsh     *(.sdata.*)
     44  1.1       bsh   }
     45  1.1       bsh   _edata = .;
     46  1.1       bsh   PROVIDE (edata = .);
     47  1.1       bsh   __bss_start = .;
     48  1.1       bsh   __bss_start__ = .;
     49  1.1       bsh   .sbss      :
     50  1.5     rafal   AT (LOADADDR(.sdata) + (ADDR(.sbss) - ADDR(.sdata)))
     51  1.1       bsh   {
     52  1.1       bsh     PROVIDE (__sbss_start = .);
     53  1.1       bsh     PROVIDE (___sbss_start = .);
     54  1.1       bsh     *(.dynsbss)
     55  1.1       bsh     *(.sbss)
     56  1.1       bsh     *(.sbss.*)
     57  1.1       bsh     *(.scommon)
     58  1.1       bsh     PROVIDE (__sbss_end = .);
     59  1.1       bsh     PROVIDE (___sbss_end = .);
     60  1.1       bsh   }
     61  1.1       bsh   .bss       :
     62  1.5     rafal   AT (LOADADDR(.sbss) + (ADDR(.bss) - ADDR(.sbss)))
     63  1.1       bsh   {
     64  1.1       bsh    *(.dynbss)
     65  1.1       bsh    *(.bss)
     66  1.1       bsh    *(.bss.*)
     67  1.1       bsh    *(COMMON)
     68  1.1       bsh    /* Align here to ensure that the .bss section occupies space up to
     69  1.1       bsh       _end.  Align after .bss to ensure correct alignment even if the
     70  1.1       bsh       .bss section disappears because there are no input sections.  */
     71  1.1       bsh    . = ALIGN(32 / 8);
     72  1.1       bsh   }
     73  1.1       bsh   . = ALIGN(32 / 8);
     74  1.1       bsh   _end = .;
     75  1.1       bsh   _bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
     76  1.1       bsh   PROVIDE (end = .);
     77  1.1       bsh }
     78