2 * vmlinux.lds.S -- master linker script for m68knommu arch
4 * (C) Copyright 2002-2006, Greg Ungerer <gerg@snapgear.com>
6 * This linker script is equiped to build either ROM loaded or RAM
10 #include <asm-generic/vmlinux.lds.h>
12 #if defined(CONFIG_RAMKERNEL)
13 #define RAM_START CONFIG_KERNELBASE
14 #define RAM_LENGTH (CONFIG_RAMBASE + CONFIG_RAMSIZE - CONFIG_KERNELBASE)
20 #if defined(CONFIG_ROMKERNEL) || defined(CONFIG_HIMEMKERNEL)
21 #define RAM_START CONFIG_RAMBASE
22 #define RAM_LENGTH CONFIG_RAMSIZE
23 #define ROMVEC_START CONFIG_ROMVEC
24 #define ROMVEC_LENGTH CONFIG_ROMVECSIZE
25 #define ROM_START CONFIG_ROMSTART
26 #define ROM_LENGTH CONFIG_ROMSIZE
42 ram : ORIGIN = RAM_START, LENGTH = RAM_LENGTH
44 romvec : ORIGIN = ROMVEC_START, LENGTH = ROMVEC_LENGTH
45 rom : ORIGIN = ROM_START, LENGTH = ROM_LENGTH
49 jiffies = jiffies_64 + 4;
71 . = ALIGN(16); /* Exception table */
72 __start___ex_table = .;
74 __stop___ex_table = .;
76 *(.rodata) *(.rodata.*)
77 *(__vermagic) /* Kernel version magic */
82 /* Kernel symbol table: Normal symbols */
84 __start___ksymtab = .;
88 /* Kernel symbol table: GPL-only symbols */
89 __start___ksymtab_gpl = .;
91 __stop___ksymtab_gpl = .;
93 /* Kernel symbol table: Normal unused symbols */
94 __start___ksymtab_unused = .;
96 __stop___ksymtab_unused = .;
98 /* Kernel symbol table: GPL-only unused symbols */
99 __start___ksymtab_unused_gpl = .;
100 *(__ksymtab_unused_gpl)
101 __stop___ksymtab_unused_gpl = .;
103 /* Kernel symbol table: GPL-future symbols */
104 __start___ksymtab_gpl_future = .;
105 *(__ksymtab_gpl_future)
106 __stop___ksymtab_gpl_future = .;
108 /* Kernel symbol table: Normal symbols */
109 __start___kcrctab = .;
111 __stop___kcrctab = .;
113 /* Kernel symbol table: GPL-only symbols */
114 __start___kcrctab_gpl = .;
116 __stop___kcrctab_gpl = .;
118 /* Kernel symbol table: Normal unused symbols */
119 __start___kcrctab_unused = .;
121 __stop___kcrctab_unused = .;
123 /* Kernel symbol table: GPL-only unused symbols */
124 __start___kcrctab_unused_gpl = .;
125 *(__kcrctab_unused_gpl)
126 __stop___kcrctab_unused_gpl = .;
128 /* Kernel symbol table: GPL-future symbols */
129 __start___kcrctab_gpl_future = .;
130 *(__kcrctab_gpl_future)
131 __stop___kcrctab_gpl_future = .;
133 /* Kernel symbol table: strings */
136 /* Built-in module parameters */
166 __initcall_start = .;
169 __con_initcall_start = .;
170 *(.con_initcall.init)
171 __con_initcall_end = .;
172 __security_initcall_start = .;
173 *(.security_initcall.init)
174 __security_initcall_end = .;
175 #ifdef CONFIG_BLK_DEV_INITRD
177 __initramfs_start = .;