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.
13 . = @CONFIG_ETRAX_DRAM_VIRTUAL_BASE@;
16 . = . + 0x4000; /* see head.S and pages reserved at the start */
18 _text = .; /* Text and read-only data */
19 text_start = .; /* lots of aliases */
27 .text.lock : { *(.text.lock) } /* out-of-line lock text */
29 _etext = . ; /* End of text section */
32 .rodata : { *(.rodata) *(.rodata.__*) }
33 .kstrtab : { *(.kstrtab) }
35 . = ALIGN(4); /* Exception table */
36 __start___ex_table = .;
37 __ex_table : { *(__ex_table) }
38 __stop___ex_table = .;
40 __start___ksymtab = .; /* Kernel symbol table */
41 __ksymtab : { *(__ksymtab) }
50 __edata = . ; /* End of data section */
53 . = ALIGN(8192); /* init_task and stack, must be aligned */
54 .data.init_task : { *(.data.init_task) }
56 . = ALIGN(8192); /* Init code and data */
58 .text.init : { *(.text.init) }
59 .data.init : { *(.data.init) }
62 .setup.init : { *(.setup.init) }
69 /* We fill to the next page, so we can discard all init
70 pages without needing to consider what payload might be
71 appended to the kernel image. */
75 __vmlinux_end = .; /* last address of the physical file */
78 __data_end = . ; /* Move to _edata ? */
79 __bss_start = .; /* BSS */
89 /* Sections to be discarded */
96 dram_end = dram_start + @CONFIG_ETRAX_DRAM_SIZE_M@*1024*1024;