1 /* ld script to make ARM Linux kernel
2 * taken from the i386 version by Russell King
3 * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>
6 #include <asm-generic/vmlinux.lds.h>
7 #include <asm/thread_info.h>
8 #include <asm/memory.h>
16 jiffies = jiffies_64 + 4;
21 #ifdef CONFIG_XIP_KERNEL
22 . = XIP_VIRT_ADDR(CONFIG_XIP_PHYS_ADDR);
24 . = PAGE_OFFSET + TEXT_OFFSET;
26 .init : { /* Init code and data */
31 __proc_info_begin = .;
34 __arch_info_begin = .;
56 __con_initcall_start = .;
58 __con_initcall_end = .;
59 __security_initcall_start = .;
60 *(.security_initcall.init)
61 __security_initcall_end = .;
63 __initramfs_start = .;
64 usr/built-in.o(.init.ramfs)
70 #ifndef CONFIG_XIP_KERNEL
71 __init_begin = _stext;
78 /DISCARD/ : { /* Exit code and data */
88 .text : { /* Real text segment */
89 _text = .; /* Text and read-only data */
101 *(.got) /* Global offset table */
106 _etext = .; /* End of text and rodata section */
108 #ifdef CONFIG_XIP_KERNEL
109 __data_loc = ALIGN(4); /* location in binary */
110 . = PAGE_OFFSET + TEXT_OFFSET;
112 . = ALIGN(THREAD_SIZE);
116 .data : AT(__data_loc) {
117 __data_start = .; /* address in memory */
120 * first, the init task union, aligned
121 * to an 8192 byte boundary.
125 #ifdef CONFIG_XIP_KERNEL
140 * then the cacheline aligned data
143 *(.data.cacheline_aligned)
146 * The exception fixup table (might need resorting at runtime)
149 __start___ex_table = .;
153 __stop___ex_table = .;
156 * and the usual data section
165 __bss_start = .; /* BSS */
170 /* Stabs debugging sections. */
171 .stab 0 : { *(.stab) }
172 .stabstr 0 : { *(.stabstr) }
173 .stab.excl 0 : { *(.stab.excl) }
174 .stab.exclstr 0 : { *(.stab.exclstr) }
175 .stab.index 0 : { *(.stab.index) }
176 .stab.indexstr 0 : { *(.stab.indexstr) }
177 .comment 0 : { *(.comment) }
181 * These must never be empty
182 * If you have to comment these two assert statements out, your
183 * binutils is too old (for other reasons as well)
185 ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
186 ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")