source:
mainline/arch/mips32/_link.ld.in@
60780c5
Last change on this file since 60780c5 was 60780c5, checked in by , 20 years ago | |
---|---|
|
|
File size: 1.0 KB |
Rev | Line | |
---|---|---|
[f761f1eb] | 1 | /* |
2 | * MIPS linker script | |
3 | * | |
4 | * kernel text | |
5 | * kernel data | |
6 | * | |
7 | */ | |
[ffc277e] | 8 | #undef mips |
9 | #define mips mips | |
[f761f1eb] | 10 | |
[ffc277e] | 11 | OUTPUT_FORMAT(BFD) |
12 | ||
13 | OUTPUT_ARCH(mips) | |
[38de8a5] | 14 | |
[e3f41b6] | 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 = .; |
26 | *(.data); /* initialized data */ | |
[c832cc0a] | 27 | hardcoded_ktext_size = .; |
28 | LONG(ktext_end - ktext_start); | |
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); | |
[3156582] | 36 | /* Unfortunately IRIX does not allow us |
37 | * to include this as a last section :-( | |
38 | * BSS/SBSS addresses will be wrong */ | |
39 | symbol_table = .; | |
40 | *(symtab.*); | |
[ffc277e] | 41 | } |
42 | _gp = . + 0x8000; | |
43 | .lit8 : { *(.lit8) } | |
44 | .lit4 : { *(.lit4) } | |
45 | .sbss : { | |
46 | *(.sbss); | |
[ac5d02b] | 47 | *(.scommon); |
[ffc277e] | 48 | } |
49 | .bss : { | |
50 | *(.bss); /* uninitialized static variables */ | |
[ac5d02b] | 51 | *(COMMON); /* global variables */ |
[ffc277e] | 52 | } |
[24241cf] | 53 | |
[ffc277e] | 54 | kdata_end = .; |
55 | ||
[24241cf] | 56 | /DISCARD/ : { |
57 | *(.mdebug*); | |
58 | *(.pdr); | |
59 | *(.comment); | |
60 | *(.note); | |
61 | } | |
[f761f1eb] | 62 | } |
Note:
See TracBrowser
for help on using the repository browser.