Rev 324 | Rev 329 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | jermar | 1 | /* |
2 | * MIPS linker script |
||
3 | * |
||
4 | * kernel text |
||
5 | * kernel data |
||
6 | * |
||
7 | */ |
||
326 | palkovsky | 8 | #undef mips |
9 | #define mips mips |
||
1 | jermar | 10 | |
326 | palkovsky | 11 | OUTPUT_FORMAT(BFD) |
324 | palkovsky | 12 | |
326 | palkovsky | 13 | OUTPUT_ARCH(mips) |
14 | |||
111 | palkovsky | 15 | ENTRY(kernel_image_start) |
1 | jermar | 16 | |
17 | SECTIONS { |
||
326 | palkovsky | 18 | . = 0x80100000; |
19 | .text : { |
||
106 | jermar | 20 | ktext_start = .; |
21 | *(.text); |
||
22 | ktext_end = .; |
||
326 | palkovsky | 23 | } |
24 | .data : { |
||
106 | jermar | 25 | kdata_start = .; |
26 | *(.data); /* initialized data */ |
||
216 | palkovsky | 27 | hardcoded_ktext_size = .; |
28 | LONG(ktext_end - ktext_start); |
||
29 | hardcoded_kdata_size = .; |
||
30 | LONG(kdata_end - kdata_start); |
||
31 | hardcoded_load_address = .; |
||
326 | palkovsky | 32 | LONG(0x80100000); |
33 | } |
||
34 | _gp = . + 0x8000; |
||
35 | .lit8 : { *(.lit8) } |
||
36 | .lit4 : { *(.lit4) } |
||
37 | .sdata : { *(.sdata) } |
||
38 | .sbss : { |
||
39 | *(.sbss); |
||
106 | jermar | 40 | *(.scommon); |
326 | palkovsky | 41 | } |
42 | .bss : { |
||
43 | *(.bss); /* uninitialized static variables */ |
||
106 | jermar | 44 | *(COMMON); /* global variables */ |
326 | palkovsky | 45 | } |
46 | mysymtable : { |
||
268 | palkovsky | 47 | symbol_table = .; |
48 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
||
326 | palkovsky | 49 | } |
50 | kdata_end = .; |
||
268 | palkovsky | 51 | |
326 | palkovsky | 52 | .mdebug : { *(.mdebug) } |
53 | .stab 0 : { *(.stab) } |
||
54 | .stabstr 0 : { *(.stabstr) } |
||
55 | .comment : { *(.comment) } |
||
56 | .note : { *(.note) } |
||
1 | jermar | 57 | } |