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