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>
14 jiffies = jiffies_64 + 4;
19 .init : { /* Init code and data */
24 __proc_info_begin = .;
27 __arch_info_begin = .;
49 __con_initcall_start = .;
51 __con_initcall_end = .;
52 __security_initcall_start = .;
53 *(.security_initcall.init)
54 __security_initcall_end = .;
56 __initramfs_start = .;
57 usr/built-in.o(.init.ramfs)
63 #ifndef CONFIG_XIP_KERNEL
64 __init_begin = _stext;
71 /DISCARD/ : { /* Exit code and data */
77 .text : { /* Real text segment */
78 _text = .; /* Text and read-only data */
88 *(.got) /* Global offset table */
92 __ex_table : { /* Exception table */
93 __start___ex_table = .;
95 __stop___ex_table = .;
100 _etext = .; /* End of text and rodata section */
102 #ifdef CONFIG_XIP_KERNEL
103 __data_loc = ALIGN(4); /* location in binary */
110 .data : AT(__data_loc) {
111 __data_start = .; /* address in memory */
114 * first, the init task union, aligned
115 * to an 8192 byte boundary.
119 #ifdef CONFIG_XIP_KERNEL
134 * then the cacheline aligned data
137 *(.data.cacheline_aligned)
140 * and the usual data section
149 __bss_start = .; /* BSS */
154 /* Stabs debugging sections. */
155 .stab 0 : { *(.stab) }
156 .stabstr 0 : { *(.stabstr) }
157 .stab.excl 0 : { *(.stab.excl) }
158 .stab.exclstr 0 : { *(.stab.exclstr) }
159 .stab.index 0 : { *(.stab.index) }
160 .stab.indexstr 0 : { *(.stab.indexstr) }
161 .comment 0 : { *(.comment) }
164 /* those must never be empty */
165 ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
166 ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")