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;
68 . = ALIGN(16); /* Exception table */
69 __start___ex_table = .;
71 __stop___ex_table = .;
73 *(.rodata) *(.rodata.*)
74 *(__vermagic) /* Kernel version magic */
78 /* Kernel symbol table: Normal symbols */
80 __start___ksymtab = .;
84 /* Kernel symbol table: GPL-only symbols */
85 __start___ksymtab_gpl = .;
87 __stop___ksymtab_gpl = .;
89 /* Kernel symbol table: GPL-future symbols */
90 __start___ksymtab_gpl_future = .;
91 *(__ksymtab_gpl_future)
92 __stop___ksymtab_gpl_future = .;
94 /* Kernel symbol table: Normal symbols */
95 __start___kcrctab = .;
99 /* Kernel symbol table: GPL-only symbols */
100 __start___kcrctab_gpl = .;
102 __stop___kcrctab_gpl = .;
104 /* Kernel symbol table: GPL-future symbols */
105 __start___kcrctab_gpl_future = .;
106 *(__kcrctab_gpl_future)
107 __stop___kcrctab_gpl_future = .;
109 /* Kernel symbol table: strings */
112 /* Built-in module parameters */
142 __initcall_start = .;
151 __con_initcall_start = .;
152 *(.con_initcall.init)
153 __con_initcall_end = .;
154 __security_initcall_start = .;
155 *(.security_initcall.init)
156 __security_initcall_end = .;
158 __initramfs_start = .;