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 <linux/config.h>
8 #include <asm/thread_info.h>
9 #include <asm/memory.h>
17 jiffies = jiffies_64 + 4;
20 #ifdef CONFIG_XIP_KERNEL
21 #define TEXTADDR XIP_VIRT_ADDR(CONFIG_XIP_PHYS_ADDR)
23 #define TEXTADDR KERNEL_RAM_ADDR
29 .init : { /* Init code and data */
34 __proc_info_begin = .;
37 __arch_info_begin = .;
59 __con_initcall_start = .;
61 __con_initcall_end = .;
62 __security_initcall_start = .;
63 *(.security_initcall.init)
64 __security_initcall_end = .;
66 __initramfs_start = .;
67 usr/built-in.o(.init.ramfs)
73 #ifndef CONFIG_XIP_KERNEL
74 __init_begin = _stext;
81 /DISCARD/ : { /* Exit code and data */
87 .text : { /* Real text segment */
88 _text = .; /* Text and read-only data */
98 *(.got) /* Global offset table */
103 _etext = .; /* End of text and rodata section */
105 #ifdef CONFIG_XIP_KERNEL
106 __data_loc = ALIGN(4); /* location in binary */
109 . = ALIGN(THREAD_SIZE);
113 .data : AT(__data_loc) {
114 __data_start = .; /* address in memory */
117 * first, the init task union, aligned
118 * to an 8192 byte boundary.
122 #ifdef CONFIG_XIP_KERNEL
137 * then the cacheline aligned data
140 *(.data.cacheline_aligned)
143 * The exception fixup table (might need resorting at runtime)
146 __start___ex_table = .;
148 __stop___ex_table = .;
151 * and the usual data section
160 __bss_start = .; /* BSS */
165 /* Stabs debugging sections. */
166 .stab 0 : { *(.stab) }
167 .stabstr 0 : { *(.stabstr) }
168 .stab.excl 0 : { *(.stab.excl) }
169 .stab.exclstr 0 : { *(.stab.exclstr) }
170 .stab.index 0 : { *(.stab.index) }
171 .stab.indexstr 0 : { *(.stab.indexstr) }
172 .comment 0 : { *(.comment) }
176 * These must never be empty
177 * If you have to comment these two assert statements out, your
178 * binutils is too old (for other reasons as well)
180 ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
181 ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")