1 /* $NetBSD: kern.ldscript,v 1.2 2002/04/11 21:48:46 thorpej Exp $ */
3 OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
6 ENTRY(KERNEL_BASE_phys)
9 KERNEL_BASE_phys = 0x0000c000;
10 KERNEL_BASE_virt = 0xf000c000;
13 .start (KERNEL_BASE_phys) :
18 /* Read-only sections, merged into text segment: */
19 .text (KERNEL_BASE_virt + SIZEOF(.start)) :
20 AT (LOADADDR(.start) + SIZEOF(.start))
25 *(.glue_7t) *(.glue_7)
26 *(.rodata) *(.rodata.*)
28 PROVIDE (__etext = .);
31 /* Adjust the address for the data segment to start on the next page
35 AT (LOADADDR(.text) + (ADDR(.data) - ADDR(.text)))
42 AT (LOADADDR(.data) + (ADDR(.sdata) - ADDR(.data)))
53 PROVIDE (__sbss_start = .);
54 PROVIDE (___sbss_start = .);
59 PROVIDE (__sbss_end = .);
60 PROVIDE (___sbss_end = .);
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__ = . ;