1 /* $NetBSD: ldscript.evbarm,v 1.4 2008/04/27 18:58:46 matt Exp $ */
4 ENTRY(KERNEL_BASE_phys)
7 KERNEL_BASE_phys = @KERNEL_BASE_PHYS@;
8 KERNEL_BASE_virt = @KERNEL_BASE_VIRT@;
11 .start (KERNEL_BASE_phys) :
16 /* Read-only sections, merged into text segment: */
17 .text (KERNEL_BASE_virt + SIZEOF(.start)) :
18 AT (LOADADDR(.start) + SIZEOF(.start))
23 *(.glue_7t) *(.glue_7)
24 *(.rodata) *(.rodata.*)
26 PROVIDE (__etext = .);
29 /* Adjust the address for the data segment to start on the next large page
33 AT (LOADADDR(.text) + (ADDR(.data) - ADDR(.text)))
40 AT (LOADADDR(.data) + (ADDR(.sdata) - ADDR(.data)))
50 AT (LOADADDR(.sdata) + (ADDR(.sbss) - ADDR(.sdata)))
52 PROVIDE (__sbss_start = .);
53 PROVIDE (___sbss_start = .);
58 PROVIDE (__sbss_end = .);
59 PROVIDE (___sbss_end = .);
62 AT (LOADADDR(.sbss) + (ADDR(.bss) - ADDR(.sbss)))
68 /* Align here to ensure that the .bss section occupies space up to
69 _end. Align after .bss to ensure correct alignment even if the
70 .bss section disappears because there are no input sections. */
75 _bss_end__ = . ; __bss_end__ = . ; __end__ = . ;