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 */
93 __ex_table : { /* Exception table */
94 __start___ex_table = .;
96 __stop___ex_table = .;
101 _etext = .; /* End of text and rodata section */
103 #ifdef CONFIG_XIP_KERNEL
104 __data_loc = ALIGN(4); /* location in binary */
107 . = ALIGN(THREAD_SIZE);
111 .data : AT(__data_loc) {
112 __data_start = .; /* address in memory */
115 * first, the init task union, aligned
116 * to an 8192 byte boundary.
120 #ifdef CONFIG_XIP_KERNEL
135 * then the cacheline aligned data
138 *(.data.cacheline_aligned)
141 * and the usual data section
150 __bss_start = .; /* BSS */
155 /* Stabs debugging sections. */
156 .stab 0 : { *(.stab) }
157 .stabstr 0 : { *(.stabstr) }
158 .stab.excl 0 : { *(.stab.excl) }
159 .stab.exclstr 0 : { *(.stab.exclstr) }
160 .stab.index 0 : { *(.stab.index) }
161 .stab.indexstr 0 : { *(.stab.indexstr) }
162 .comment 0 : { *(.comment) }
165 /* those must never be empty */
166 ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
167 ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")