Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | /* ld script to make M32R Linux kernel |
2 | */ | |
3 | ||
1da177e4 LT |
4 | #include <asm-generic/vmlinux.lds.h> |
5 | #include <asm/addrspace.h> | |
6 | #include <asm/page.h> | |
85233c43 | 7 | #include <asm/thread_info.h> |
1da177e4 LT |
8 | |
9 | OUTPUT_ARCH(m32r) | |
1da177e4 LT |
10 | #if defined(__LITTLE_ENDIAN__) |
11 | jiffies = jiffies_64; | |
12 | #else | |
13 | jiffies = jiffies_64 + 4; | |
14 | #endif | |
3d60f849 HT |
15 | |
16 | kernel_entry = boot - 0x80000000; | |
17 | ENTRY(kernel_entry) | |
18 | ||
1da177e4 LT |
19 | SECTIONS |
20 | { | |
21 | . = CONFIG_MEMORY_START + __PAGE_OFFSET; | |
22 | eit_vector = .; | |
23 | ||
24 | . = . + 0x1000; | |
25 | .empty_zero_page : { *(.empty_zero_page) } = 0 | |
26 | ||
27 | /* read-only */ | |
28 | _text = .; /* Text and read-only data */ | |
29 | .boot : { *(.boot) } = 0 | |
30 | .text : { | |
34963696 | 31 | HEAD_TEXT |
7664709b | 32 | TEXT_TEXT |
1da177e4 LT |
33 | SCHED_TEXT |
34 | LOCK_TEXT | |
35 | *(.fixup) | |
36 | *(.gnu.warning) | |
37 | } = 0x9090 | |
38 | #ifdef CONFIG_SMP | |
39 | . = ALIGN(65536); | |
40 | .eit_vector4 : { *(.eit_vector4) } | |
41 | #endif | |
42 | _etext = .; /* End of text section */ | |
43 | ||
85233c43 | 44 | EXCEPTION_TABLE(16) |
e968b8d4 HT |
45 | NOTES |
46 | ||
a2d063ac | 47 | _sdata = .; /* Start of data section */ |
1da177e4 | 48 | RODATA |
85233c43 | 49 | RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE) |
1da177e4 LT |
50 | _edata = .; /* End of data section */ |
51 | ||
1da177e4 | 52 | /* will be freed after init */ |
85233c43 | 53 | . = ALIGN(PAGE_SIZE); /* Init code and data */ |
1da177e4 | 54 | __init_begin = .; |
85233c43 TA |
55 | INIT_TEXT_SECTION(PAGE_SIZE) |
56 | INIT_DATA_SECTION(16) | |
0415b00d | 57 | PERCPU_SECTION(32) |
85233c43 | 58 | . = ALIGN(PAGE_SIZE); |
1da177e4 LT |
59 | __init_end = .; |
60 | /* freed after init ends here */ | |
61 | ||
85233c43 | 62 | BSS_SECTION(0, 0, 4) |
1da177e4 LT |
63 | |
64 | _end = . ; | |
65 | ||
1da177e4 LT |
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) } | |
023bf6f1 TH |
74 | |
75 | /* Sections to be discarded */ | |
76 | DISCARDS | |
1da177e4 | 77 | } |