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 <linux/config.h>
11 #include <asm-generic/vmlinux.lds.h>
13 #if defined(CONFIG_RAMKERNEL)
14 #define RAM_START CONFIG_KERNELBASE
15 #define RAM_LENGTH (CONFIG_RAMBASE + CONFIG_RAMSIZE - CONFIG_KERNELBASE)
21 #if defined(CONFIG_ROMKERNEL) || defined(CONFIG_HIMEMKERNEL)
22 #define RAM_START CONFIG_RAMBASE
23 #define RAM_LENGTH CONFIG_RAMSIZE
24 #define ROMVEC_START CONFIG_ROMVEC
25 #define ROMVEC_LENGTH CONFIG_ROMVECSIZE
26 #define ROM_START CONFIG_ROMSTART
27 #define ROM_LENGTH CONFIG_ROMSIZE
43 ram : ORIGIN = RAM_START, LENGTH = RAM_LENGTH
45 romvec : ORIGIN = ROMVEC_START, LENGTH = ROMVEC_LENGTH
46 rom : ORIGIN = ROM_START, LENGTH = ROM_LENGTH
50 jiffies = jiffies_64 + 4;
69 . = ALIGN(16); /* Exception table */
70 __start___ex_table = .;
72 __stop___ex_table = .;
74 *(.rodata) *(.rodata.*)
75 *(__vermagic) /* Kernel version magic */
79 /* Kernel symbol table: Normal symbols */
81 __start___ksymtab = .;
85 /* Kernel symbol table: GPL-only symbols */
86 __start___ksymtab_gpl = .;
88 __stop___ksymtab_gpl = .;
90 /* Kernel symbol table: GPL-future symbols */
91 __start___ksymtab_gpl_future = .;
92 *(__ksymtab_gpl_future)
93 __stop___ksymtab_gpl_future = .;
95 /* Kernel symbol table: Normal symbols */
96 __start___kcrctab = .;
100 /* Kernel symbol table: GPL-only symbols */
101 __start___kcrctab_gpl = .;
103 __stop___kcrctab_gpl = .;
105 /* Kernel symbol table: GPL-future symbols */
106 __start___kcrctab_gpl_future = .;
107 *(__kcrctab_gpl_future)
108 __stop___kcrctab_gpl_future = .;
110 /* Kernel symbol table: strings */
113 /* Built-in module parameters */
143 __initcall_start = .;
152 __con_initcall_start = .;
153 *(.con_initcall.init)
154 __con_initcall_end = .;
155 __security_initcall_start = .;
156 *(.security_initcall.init)
157 __security_initcall_end = .;
159 __initramfs_start = .;