Rev 2787 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | jermar | 1 | /* |
4377 | svoboda | 2 | * MIPS32 linker script |
3 | * |
||
1 | jermar | 4 | * kernel text |
5 | * kernel data |
||
4377 | svoboda | 6 | * |
1 | jermar | 7 | */ |
4377 | svoboda | 8 | |
326 | palkovsky | 9 | #undef mips |
10 | #define mips mips |
||
1 | jermar | 11 | |
4377 | svoboda | 12 | #define KERNEL_LOAD_ADDRESS 0x80100000 |
13 | |||
326 | palkovsky | 14 | OUTPUT_ARCH(mips) |
2225 | decky | 15 | ENTRY(kernel_image_start) |
1 | jermar | 16 | |
17 | SECTIONS { |
||
329 | palkovsky | 18 | . = KERNEL_LOAD_ADDRESS; |
326 | palkovsky | 19 | .text : { |
106 | jermar | 20 | ktext_start = .; |
21 | *(.text); |
||
22 | ktext_end = .; |
||
326 | palkovsky | 23 | } |
24 | .data : { |
||
106 | jermar | 25 | kdata_start = .; |
4377 | svoboda | 26 | *(.data); /* initialized data */ |
216 | palkovsky | 27 | hardcoded_ktext_size = .; |
4377 | svoboda | 28 | LONG(ktext_end - ktext_start); |
216 | palkovsky | 29 | hardcoded_kdata_size = .; |
30 | LONG(kdata_end - kdata_start); |
||
31 | hardcoded_load_address = .; |
||
329 | palkovsky | 32 | LONG(KERNEL_LOAD_ADDRESS); |
33 | *(.rodata*); |
||
34 | *(.sdata); |
||
35 | *(.reginfo); |
||
2225 | decky | 36 | *(.sbss); |
37 | *(.scommon); |
||
4377 | svoboda | 38 | *(.bss); /* uninitialized static variables */ |
39 | *(COMMON); /* global variables */ |
||
332 | palkovsky | 40 | symbol_table = .; |
4377 | svoboda | 41 | *(symtab.*); |
326 | palkovsky | 42 | } |
43 | _gp = . + 0x8000; |
||
44 | .lit8 : { *(.lit8) } |
||
45 | .lit4 : { *(.lit4) } |
||
4377 | svoboda | 46 | |
326 | palkovsky | 47 | kdata_end = .; |
4377 | svoboda | 48 | |
329 | palkovsky | 49 | /DISCARD/ : { |
4377 | svoboda | 50 | *(.mdebug*); |
51 | *(.pdr); |
||
52 | *(.comment); |
||
53 | *(.note); |
||
329 | palkovsky | 54 | } |
1 | jermar | 55 | } |