Home | History | Annotate | Line # | Download | only in conf
ldscript.evbarm revision 1.3.106.1
      1  1.3.106.1     yamt /*	$NetBSD: ldscript.evbarm,v 1.3.106.1 2008/05/18 12:31:47 yamt 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.3.106.1     yamt   /* Adjust the address for the data segment to start on the next large page
     30        1.1      bsh      boundary.  */
     31  1.3.106.1     yamt   . = 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.1      bsh   .sdata     :
     40        1.2  thorpej   AT (LOADADDR(.data) + (ADDR(.sdata) - ADDR(.data)))
     41        1.1      bsh   {
     42        1.1      bsh     *(.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.1      bsh   {
     51        1.1      bsh     PROVIDE (__sbss_start = .);
     52        1.1      bsh     PROVIDE (___sbss_start = .);
     53        1.1      bsh     *(.dynsbss)
     54        1.1      bsh     *(.sbss)
     55        1.1      bsh     *(.sbss.*)
     56        1.1      bsh     *(.scommon)
     57        1.1      bsh     PROVIDE (__sbss_end = .);
     58        1.1      bsh     PROVIDE (___sbss_end = .);
     59        1.1      bsh   }
     60        1.1      bsh   .bss       :
     61        1.1      bsh   {
     62        1.1      bsh    *(.dynbss)
     63        1.1      bsh    *(.bss)
     64        1.1      bsh    *(.bss.*)
     65        1.1      bsh    *(COMMON)
     66        1.1      bsh    /* Align here to ensure that the .bss section occupies space up to
     67        1.1      bsh       _end.  Align after .bss to ensure correct alignment even if the
     68        1.1      bsh       .bss section disappears because there are no input sections.  */
     69        1.1      bsh    . = ALIGN(32 / 8);
     70        1.1      bsh   }
     71        1.1      bsh   . = ALIGN(32 / 8);
     72        1.1      bsh   _end = .;
     73        1.1      bsh   _bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
     74        1.1      bsh   PROVIDE (end = .);
     75        1.1      bsh }
     76