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 <asm-generic/vmlinux.lds.h>
17 . = DRAM_VIRTUAL_BASE;
20 . = . + 0x4000; /* see head.S and pages reserved at the start */
22 _text = .; /* Text and read-only data */
23 text_start = .; /* lots of aliases */
34 _etext = . ; /* End of text section */
37 . = ALIGN(4); /* Exception table */
38 __start___ex_table = .;
39 __ex_table : { *(__ex_table) }
40 __stop___ex_table = .;
50 __edata = . ; /* End of data section */
53 . = ALIGN(PAGE_SIZE); /* init_task and stack, must be aligned */
54 .data.init_task : { *(.data.init_task) }
56 . = ALIGN(PAGE_SIZE); /* Init code and data */
63 .init.data : { INIT_DATA }
66 .init.setup : { *(.init.setup) }
74 .con_initcall.init : {
75 __con_initcall_start = .;
77 __con_initcall_end = .;
81 #ifdef CONFIG_BLK_DEV_INITRD
83 __initramfs_start = .;
88 __vmlinux_end = .; /* last address of the physical file */
91 * We fill to the next page, so we can discard all init
92 * pages without needing to consider what payload might be
93 * appended to the kernel image.
99 __data_end = . ; /* Move to _edata ? */
100 __bss_start = .; /* BSS */
110 /* Sections to be discarded */
117 dram_end = dram_start + CONFIG_ETRAX_DRAM_SIZE*1024*1024;