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 = .;
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 */
82 .text : { /* Real text segment */
83 _text = .; /* Text and read-only data */
95 *(.got) /* Global offset table */
100 _etext = .; /* End of text and rodata section */
102 #ifdef CONFIG_XIP_KERNEL
103 __data_loc = ALIGN(4); /* location in binary */
104 . = PAGE_OFFSET + TEXT_OFFSET;
106 . = ALIGN(THREAD_SIZE);
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 * The exception fixup table (might need resorting at runtime)
143 __start___ex_table = .;
147 __stop___ex_table = .;
150 * and the usual data section
159 __bss_start = .; /* BSS */
164 /* Stabs debugging sections. */
165 .stab 0 : { *(.stab) }
166 .stabstr 0 : { *(.stabstr) }
167 .stab.excl 0 : { *(.stab.excl) }
168 .stab.exclstr 0 : { *(.stab.exclstr) }
169 .stab.index 0 : { *(.stab.index) }
170 .stab.indexstr 0 : { *(.stab.indexstr) }
171 .comment 0 : { *(.comment) }
175 * These must never be empty
176 * If you have to comment these two assert statements out, your
177 * binutils is too old (for other reasons as well)
179 ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
180 ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")