source:
mainline/arch/ppc32/_link.ld.in@
4457455
Last change on this file since 4457455 was 6e259d5, checked in by , 20 years ago | |
---|---|
|
|
File size: 803 bytes |
Rev | Line | |
---|---|---|
[6bc4dbd] | 1 | /** PPC32 linker script |
[c723d7a1] | 2 | * |
3 | * It is ELF format, but its only section looks like this: | |
[f761f1eb] | 4 | * kernel text |
5 | * kernel data | |
[c723d7a1] | 6 | * |
[f761f1eb] | 7 | */ |
8 | ||
[6bc4dbd] | 9 | #define __ASM__ |
10 | ||
[f761f1eb] | 11 | ENTRY(kernel_image_start) |
12 | ||
13 | SECTIONS { | |
[76cec1e] | 14 | .image 0x80000000: AT (0x80000000) { |
15 | ktext_start = .; | |
[2e5365f3] | 16 | *(K_TEXT_START) |
[76cec1e] | 17 | *(.text); |
[c723d7a1] | 18 | ktext_end = .; |
19 | ||
20 | kdata_start = .; | |
21 | *(K_DATA_START) | |
[efa9b73] | 22 | *(.rodata); |
23 | *(.rodata.*); | |
24 | *(.data); /* initialized data */ | |
25 | *(.sdata); | |
[393f631] | 26 | *(.sdata2); |
[efa9b73] | 27 | *(.sbss); |
[470c468] | 28 | hardcoded_ktext_size = .; |
29 | LONG(ktext_end - ktext_start); | |
30 | hardcoded_kdata_size = .; | |
31 | LONG(kdata_end - kdata_start); | |
32 | hardcoded_load_address = .; | |
33 | LONG(0x80000000); | |
[efa9b73] | 34 | *(.bss); /* uninitialized static variables */ |
35 | *(COMMON); /* global variables */ | |
[8b786b6] | 36 | |
37 | symbol_table = .; | |
[6bc4dbd] | 38 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
[8b786b6] | 39 | |
[76cec1e] | 40 | kdata_end = .; |
41 | } | |
[f761f1eb] | 42 | } |
Note:
See TracBrowser
for help on using the repository browser.