source:
mainline/kernel/arch/mips32/_link.ld.in@
0c33687a
Last change on this file since 0c33687a was 7f341820, checked in by , 16 years ago | |
---|---|
|
|
File size: 945 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 */ | |
[3156582] | 40 | symbol_table = .; |
[e94f730] | 41 | *(symtab.*); |
[ffc277e] | 42 | } |
43 | _gp = . + 0x8000; | |
44 | .lit8 : { *(.lit8) } | |
45 | .lit4 : { *(.lit4) } | |
[e94f730] | 46 | |
[ffc277e] | 47 | kdata_end = .; |
[e94f730] | 48 | |
[24241cf] | 49 | /DISCARD/ : { |
[e94f730] | 50 | *(.mdebug*); |
51 | *(.pdr); | |
52 | *(.comment); | |
53 | *(.note); | |
[24241cf] | 54 | } |
[f761f1eb] | 55 | } |
Note:
See TracBrowser
for help on using the repository browser.