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>
15 jiffies = jiffies_64 + 4;
20 .init : { /* Init code and data */
25 __proc_info_begin = .;
28 __arch_info_begin = .;
50 __con_initcall_start = .;
52 __con_initcall_end = .;
53 __security_initcall_start = .;
54 *(.security_initcall.init)
55 __security_initcall_end = .;
57 __initramfs_start = .;
58 usr/built-in.o(.init.ramfs)
64 #ifndef CONFIG_XIP_KERNEL
65 __init_begin = _stext;
72 /DISCARD/ : { /* Exit code and data */
78 .text : { /* Real text segment */
79 _text = .; /* Text and read-only data */
89 *(.got) /* Global offset table */
94 _etext = .; /* End of text and rodata section */
96 #ifdef CONFIG_XIP_KERNEL
97 __data_loc = ALIGN(4); /* location in binary */
100 . = ALIGN(THREAD_SIZE);
104 .data : AT(__data_loc) {
105 __data_start = .; /* address in memory */
108 * first, the init task union, aligned
109 * to an 8192 byte boundary.
113 #ifdef CONFIG_XIP_KERNEL
128 * then the cacheline aligned data
131 *(.data.cacheline_aligned)
134 * The exception fixup table (might need resorting at runtime)
137 __start___ex_table = .;
139 __stop___ex_table = .;
142 * and the usual data section
151 __bss_start = .; /* BSS */
156 /* Stabs debugging sections. */
157 .stab 0 : { *(.stab) }
158 .stabstr 0 : { *(.stabstr) }
159 .stab.excl 0 : { *(.stab.excl) }
160 .stab.exclstr 0 : { *(.stab.exclstr) }
161 .stab.index 0 : { *(.stab.index) }
162 .stab.indexstr 0 : { *(.stab.indexstr) }
163 .comment 0 : { *(.comment) }
166 /* those must never be empty */
167 ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
168 ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")