1 /* ld script to make the Linux/CRIS kernel
2 * Authors: Bjorn Wesen (bjornw@axis.com)
4 * It is VERY DANGEROUS to fiddle around with the symbols in this
5 * script. It is for example quite vital that all generated sections
6 * that are used are actually named here, otherwise the linker will
7 * put them at the end, where the init stuff is which is FREED after
8 * the kernel has booted.
11 #include <linux/config.h>
12 #include <asm-generic/vmlinux.lds.h>
17 . = DRAM_VIRTUAL_BASE;
21 /* The boot section is only necessary until the VCS top level testbench */
22 /* includes both flash and DRAM. */
25 . = DRAM_VIRTUAL_BASE + 0x4000; /* See head.S and pages reserved at the start. */
27 _text = .; /* Text and read-only data. */
28 text_start = .; /* Lots of aliases. */
39 _etext = . ; /* End of text section. */
42 . = ALIGN(4); /* Exception table. */
43 __start___ex_table = .;
44 __ex_table : { *(__ex_table) }
45 __stop___ex_table = .;
55 __edata = . ; /* End of data section. */
58 . = ALIGN(8192); /* init_task and stack, must be aligned. */
59 .data.init_task : { *(.data.init_task) }
61 . = ALIGN(8192); /* Init code and data. */
68 .init.data : { *(.init.data) }
71 .init.setup : { *(.init.setup) }
74 __param : { *(__param) }
88 .con_initcall.init : {
89 __con_initcall_start = .;
91 __con_initcall_end = .;
96 .data.percpu : { *(.data.percpu) }
100 __initramfs_start = .;
104 * We fill to the next page, so we can discard all init
105 * pages without needing to consider what payload might be
106 * appended to the kernel image.
112 __vmlinux_end = .; /* Last address of the physical file. */
115 __data_end = . ; /* Move to _edata? */
116 __bss_start = .; /* BSS. */
126 /* Sections to be discarded */
133 dram_end = dram_start + CONFIG_ETRAX_DRAM_SIZE*1024*1024;