1 /* ld script to make M32R Linux kernel
4 #include <asm-generic/vmlinux.lds.h>
5 #include <asm/addrspace.h>
7 #include <asm/thread_info.h>
10 #if defined(__LITTLE_ENDIAN__)
13 jiffies = jiffies_64 + 4;
16 kernel_entry = boot - 0x80000000;
21 . = CONFIG_MEMORY_START + __PAGE_OFFSET;
25 .empty_zero_page : { *(.empty_zero_page) } = 0
28 _text = .; /* Text and read-only data */
29 .boot : { *(.boot) } = 0
40 .eit_vector4 : { *(.eit_vector4) }
42 _etext = .; /* End of text section */
47 _sdata = .; /* Start of data section */
49 RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
50 _edata = .; /* End of data section */
52 /* will be freed after init */
53 . = ALIGN(PAGE_SIZE); /* Init code and data */
55 INIT_TEXT_SECTION(PAGE_SIZE)
60 /* freed after init ends here */
66 /* Stabs debugging sections. */
67 .stab 0 : { *(.stab) }
68 .stabstr 0 : { *(.stabstr) }
69 .stab.excl 0 : { *(.stab.excl) }
70 .stab.exclstr 0 : { *(.stab.exclstr) }
71 .stab.index 0 : { *(.stab.index) }
72 .stab.indexstr 0 : { *(.stab.indexstr) }
73 .comment 0 : { *(.comment) }
75 /* Sections to be discarded */