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 equipped to build either ROM loaded or RAM
10 #include <asm-generic/vmlinux.lds.h>
12 #include <asm/thread_info.h>
14 #if defined(CONFIG_RAMKERNEL)
15 #define RAM_START CONFIG_KERNELBASE
16 #define RAM_LENGTH (CONFIG_RAMBASE + CONFIG_RAMSIZE - CONFIG_KERNELBASE)
22 #if defined(CONFIG_ROMKERNEL) || defined(CONFIG_HIMEMKERNEL)
23 #define RAM_START CONFIG_RAMBASE
24 #define RAM_LENGTH CONFIG_RAMSIZE
25 #define ROMVEC_START CONFIG_ROMVEC
26 #define ROMVEC_LENGTH CONFIG_ROMVECSIZE
27 #define ROM_START CONFIG_ROMSTART
28 #define ROM_LENGTH CONFIG_ROMSIZE
44 ram : ORIGIN = RAM_START, LENGTH = RAM_LENGTH
46 romvec : ORIGIN = ROMVEC_START, LENGTH = ROMVEC_LENGTH
47 rom : ORIGIN = ROM_START, LENGTH = ROM_LENGTH
51 jiffies = jiffies_64 + 4;
73 . = ALIGN(16); /* Exception table */
74 __start___ex_table = .;
76 __stop___ex_table = .;
78 *(.rodata) *(.rodata.*)
79 *(__vermagic) /* Kernel version magic */
84 /* Kernel symbol table: Normal symbols */
86 __start___ksymtab = .;
90 /* Kernel symbol table: GPL-only symbols */
91 __start___ksymtab_gpl = .;
93 __stop___ksymtab_gpl = .;
95 /* Kernel symbol table: Normal unused symbols */
96 __start___ksymtab_unused = .;
98 __stop___ksymtab_unused = .;
100 /* Kernel symbol table: GPL-only unused symbols */
101 __start___ksymtab_unused_gpl = .;
102 *(__ksymtab_unused_gpl)
103 __stop___ksymtab_unused_gpl = .;
105 /* Kernel symbol table: GPL-future symbols */
106 __start___ksymtab_gpl_future = .;
107 *(__ksymtab_gpl_future)
108 __stop___ksymtab_gpl_future = .;
110 /* Kernel symbol table: Normal symbols */
111 __start___kcrctab = .;
113 __stop___kcrctab = .;
115 /* Kernel symbol table: GPL-only symbols */
116 __start___kcrctab_gpl = .;
118 __stop___kcrctab_gpl = .;
120 /* Kernel symbol table: Normal unused symbols */
121 __start___kcrctab_unused = .;
123 __stop___kcrctab_unused = .;
125 /* Kernel symbol table: GPL-only unused symbols */
126 __start___kcrctab_unused_gpl = .;
127 *(__kcrctab_unused_gpl)
128 __stop___kcrctab_unused_gpl = .;
130 /* Kernel symbol table: GPL-future symbols */
131 __start___kcrctab_gpl_future = .;
132 *(__kcrctab_gpl_future)
133 __stop___kcrctab_gpl_future = .;
135 /* Kernel symbol table: strings */
138 /* Built-in module parameters */
144 /* Built-in module versions */
146 __start___modver = .;
158 CACHELINE_ALIGNED_DATA(32)
159 PAGE_ALIGNED_DATA(PAGE_SIZE)
160 *(.data..shared_aligned)
161 INIT_TASK_DATA(THREAD_SIZE)
166 . = ALIGN(PAGE_SIZE);
169 INIT_TEXT_SECTION(PAGE_SIZE) > INIT
170 INIT_DATA_SECTION(16) > INIT
172 . = ALIGN(PAGE_SIZE);