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;
22 #ifdef CONFIG_XIP_KERNEL
23 . = XIP_VIRT_ADDR(CONFIG_XIP_PHYS_ADDR);
25 . = PAGE_OFFSET + TEXT_OFFSET;
27 .init : { /* Init code and data */
32 __proc_info_begin = .;
35 __arch_info_begin = .;
57 __con_initcall_start = .;
59 __con_initcall_end = .;
60 __security_initcall_start = .;
61 *(.security_initcall.init)
62 __security_initcall_end = .;
64 __initramfs_start = .;
65 usr/built-in.o(.init.ramfs)
71 #ifndef CONFIG_XIP_KERNEL
72 __init_begin = _stext;
79 /DISCARD/ : { /* Exit code and data */
89 .text : { /* Real text segment */
90 _text = .; /* Text and read-only data */
102 *(.got) /* Global offset table */
107 _etext = .; /* End of text and rodata section */
109 #ifdef CONFIG_XIP_KERNEL
110 __data_loc = ALIGN(4); /* location in binary */
111 . = PAGE_OFFSET + TEXT_OFFSET;
113 . = ALIGN(THREAD_SIZE);
117 .data : AT(__data_loc) {
118 __data_start = .; /* address in memory */
121 * first, the init task union, aligned
122 * to an 8192 byte boundary.
126 #ifdef CONFIG_XIP_KERNEL
141 * then the cacheline aligned data
144 *(.data.cacheline_aligned)
147 * The exception fixup table (might need resorting at runtime)
150 __start___ex_table = .;
154 __stop___ex_table = .;
157 * and the usual data section
166 __bss_start = .; /* BSS */
171 /* Stabs debugging sections. */
172 .stab 0 : { *(.stab) }
173 .stabstr 0 : { *(.stabstr) }
174 .stab.excl 0 : { *(.stab.excl) }
175 .stab.exclstr 0 : { *(.stab.exclstr) }
176 .stab.index 0 : { *(.stab.index) }
177 .stab.indexstr 0 : { *(.stab.indexstr) }
178 .comment 0 : { *(.comment) }
182 * These must never be empty
183 * If you have to comment these two assert statements out, your
184 * binutils is too old (for other reasons as well)
186 ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
187 ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")