source:
mainline/kernel/arch/mips32/_link.ld.in@
07d62a9
| Last change on this file since 07d62a9 was 1ac3a52, checked in by , 16 years ago | |
|---|---|
|
|
| File size: 961 bytes | |
| Rev | Line | |
|---|---|---|
| [f761f1eb] | 1 | /* |
| [e94f730] | 2 | * MIPS32 linker script |
| 3 | * | |
| [f761f1eb] | 4 | * kernel text |
| 5 | * kernel data | |
| [e94f730] | 6 | * |
| [f761f1eb] | 7 | */ |
| [e94f730] | 8 | |
| [ffc277e] | 9 | #undef mips |
| 10 | #define mips mips | |
| [f761f1eb] | 11 | |
| [7f341820] | 12 | #define KERNEL_LOAD_ADDRESS 0x80100000 |
| 13 | ||
| [ffc277e] | 14 | OUTPUT_ARCH(mips) |
| [04d4512] | 15 | ENTRY(kernel_image_start) |
| [f761f1eb] | 16 | |
| 17 | SECTIONS { | |
| [24241cf] | 18 | . = KERNEL_LOAD_ADDRESS; |
| [ffc277e] | 19 | .text : { |
| [ac5d02b] | 20 | ktext_start = .; |
| 21 | *(.text); | |
| 22 | ktext_end = .; | |
| [ffc277e] | 23 | } |
| 24 | .data : { | |
| [ac5d02b] | 25 | kdata_start = .; |
| [e94f730] | 26 | *(.data); /* initialized data */ |
| [c832cc0a] | 27 | hardcoded_ktext_size = .; |
| [e94f730] | 28 | LONG(ktext_end - ktext_start); |
| [c832cc0a] | 29 | hardcoded_kdata_size = .; |
| 30 | LONG(kdata_end - kdata_start); | |
| 31 | hardcoded_load_address = .; | |
| [24241cf] | 32 | LONG(KERNEL_LOAD_ADDRESS); |
| 33 | *(.rodata*); | |
| 34 | *(.sdata); | |
| 35 | *(.reginfo); | |
| [04d4512] | 36 | *(.sbss); |
| 37 | *(.scommon); | |
| [e94f730] | 38 | *(.bss); /* uninitialized static variables */ |
| 39 | *(COMMON); /* global variables */ | |
| [1ac3a52] | 40 | . = ALIGN(8); |
| [3156582] | 41 | symbol_table = .; |
| [e94f730] | 42 | *(symtab.*); |
| [ffc277e] | 43 | } |
| 44 | _gp = . + 0x8000; | |
| 45 | .lit8 : { *(.lit8) } | |
| 46 | .lit4 : { *(.lit4) } | |
| [e94f730] | 47 | |
| [ffc277e] | 48 | kdata_end = .; |
| [e94f730] | 49 | |
| [24241cf] | 50 | /DISCARD/ : { |
| [e94f730] | 51 | *(.mdebug*); |
| 52 | *(.pdr); | |
| 53 | *(.comment); | |
| 54 | *(.note); | |
| [24241cf] | 55 | } |
| [f761f1eb] | 56 | } |
Note:
See TracBrowser
for help on using the repository browser.
