source:
mainline/kernel/arch/sparc64/_link.ld.in@
c87562ca
Last change on this file since c87562ca was eaf4c393, checked in by , 14 years ago | |
---|---|
|
|
File size: 917 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) | |
[eaf4c393] | 17 | *(.text .text.*); |
[2a99fa8] | 18 | ktext_end = .; |
19 | ||
20 | kdata_start = .; | |
21 | *(K_DATA_START) | |
[eaf4c393] | 22 | *(.rodata .rodata.*); |
[6da1013f] | 23 | *(.data); /* initialized data */ |
[2a99fa8] | 24 | *(.sdata); |
25 | *(.sdata2); | |
26 | *(.sbss); | |
[a7961271] | 27 | . = ALIGN(8); |
[2a99fa8] | 28 | hardcoded_ktext_size = .; |
[6da1013f] | 29 | QUAD(ktext_end - ktext_start); |
[2a99fa8] | 30 | hardcoded_kdata_size = .; |
[42744880] | 31 | QUAD(kdata_end - kdata_start); |
[2a99fa8] | 32 | hardcoded_load_address = .; |
[0e4dd7b] | 33 | QUAD(VMA); |
[6da1013f] | 34 | *(.bss); /* uninitialized static variables */ |
35 | *(COMMON); /* global variables */ | |
36 | ||
[1ac3a52] | 37 | . = ALIGN(8); |
[2a99fa8] | 38 | symbol_table = .; |
[6da1013f] | 39 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
40 | ||
[2a99fa8] | 41 | kdata_end = .; |
42 | } | |
[81e1396] | 43 | |
44 | /DISCARD/ : { | |
[7bb6b06] | 45 | *(*); |
[81e1396] | 46 | } |
[6da1013f] | 47 | |
[2a99fa8] | 48 | } |
Note:
See TracBrowser
for help on using the repository browser.