Rev 3910 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | jermar | 1 | /* |
3910 | decky | 2 | * MIPS32 linker script |
3 | * |
||
1 | jermar | 4 | * kernel text |
5 | * kernel data |
||
3910 | decky | 6 | * |
1 | jermar | 7 | */ |
3910 | decky | 8 | |
326 | palkovsky | 9 | #undef mips |
10 | #define mips mips |
||
1 | jermar | 11 | |
3913 | decky | 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 = .; |
3910 | decky | 26 | *(.data); /* initialized data */ |
216 | palkovsky | 27 | hardcoded_ktext_size = .; |
3910 | decky | 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); |
||
3910 | decky | 38 | *(.bss); /* uninitialized static variables */ |
39 | *(COMMON); /* global variables */ |
||
332 | palkovsky | 40 | symbol_table = .; |
3910 | decky | 41 | *(symtab.*); |
326 | palkovsky | 42 | } |
43 | _gp = . + 0x8000; |
||
44 | .lit8 : { *(.lit8) } |
||
45 | .lit4 : { *(.lit4) } |
||
3910 | decky | 46 | |
326 | palkovsky | 47 | kdata_end = .; |
3910 | decky | 48 | |
329 | palkovsky | 49 | /DISCARD/ : { |
3910 | decky | 50 | *(.mdebug*); |
51 | *(.pdr); |
||
52 | *(.comment); |
||
53 | *(.note); |
||
329 | palkovsky | 54 | } |
1 | jermar | 55 | } |