source:
mainline/kernel/arch/sparc64/_link.ld.in@
40239b9
Last change on this file since 40239b9 was 1ac3a52, checked in by , 16 years ago | |
---|---|
|
|
File size: 915 bytes |
Rev | Line | |
---|---|---|
[6bc4dbd] | 1 | /** SPARC64 linker script |
[2a99fa8] | 2 | * |
3 | * It is ELF format, but its only section looks like this: | |
[6da1013f] | 4 | * kernel text |
5 | * kernel data | |
[2a99fa8] | 6 | * |
7 | */ | |
8 | ||
[0e4dd7b] | 9 | #include <arch/boot/boot.h> |
[6bc4dbd] | 10 | |
[2a99fa8] | 11 | ENTRY(kernel_image_start) |
12 | ||
13 | SECTIONS { | |
[6da1013f] | 14 | .image VMA: AT (LMA) { |
[2a99fa8] | 15 | ktext_start = .; |
16 | *(K_TEXT_START) | |
17 | *(.text); | |
18 | ktext_end = .; | |
19 | ||
20 | kdata_start = .; | |
21 | *(K_DATA_START) | |
22 | *(.rodata); | |
23 | *(.rodata.*); | |
[6da1013f] | 24 | *(.data); /* initialized data */ |
[2a99fa8] | 25 | *(.sdata); |
26 | *(.sdata2); | |
27 | *(.sbss); | |
[a7961271] | 28 | . = ALIGN(8); |
[2a99fa8] | 29 | hardcoded_ktext_size = .; |
[6da1013f] | 30 | QUAD(ktext_end - ktext_start); |
[2a99fa8] | 31 | hardcoded_kdata_size = .; |
[42744880] | 32 | QUAD(kdata_end - kdata_start); |
[2a99fa8] | 33 | hardcoded_load_address = .; |
[0e4dd7b] | 34 | QUAD(VMA); |
[6da1013f] | 35 | *(.bss); /* uninitialized static variables */ |
36 | *(COMMON); /* global variables */ | |
37 | ||
[1ac3a52] | 38 | . = ALIGN(8); |
[2a99fa8] | 39 | symbol_table = .; |
[6da1013f] | 40 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
41 | ||
[2a99fa8] | 42 | kdata_end = .; |
43 | } | |
[81e1396] | 44 | |
45 | /DISCARD/ : { | |
[7bb6b06] | 46 | *(*); |
[81e1396] | 47 | } |
[6da1013f] | 48 | |
[2a99fa8] | 49 | } |
Note:
See TracBrowser
for help on using the repository browser.