Rev 532 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 532 | Rev 534 | ||
---|---|---|---|
1 | /** SPARC64 linker script |
1 | /** SPARC64 linker script |
2 | * |
2 | * |
3 | * It is ELF format, but its only section looks like this: |
3 | * It is ELF format, but its only section looks like this: |
4 | * kernel text |
4 | * kernel text |
5 | * kernel data |
5 | * kernel data |
6 | * |
6 | * |
7 | */ |
7 | */ |
8 | 8 | ||
9 | #define __ASM__ |
9 | #define __ASM__ |
10 | 10 | ||
11 | ENTRY(kernel_image_start) |
11 | ENTRY(kernel_image_start) |
12 | 12 | ||
13 | SECTIONS { |
13 | SECTIONS { |
14 | .image 0x4000: AT (0x4000) { |
14 | .image 0x4000: AT (0x4000) { |
15 | ktext_start = .; |
15 | ktext_start = .; |
16 | *(K_TEXT_START) |
16 | *(K_TEXT_START) |
17 | *(.text); |
17 | *(.text); |
18 | ktext_end = .; |
18 | ktext_end = .; |
19 | 19 | ||
20 | kdata_start = .; |
20 | kdata_start = .; |
21 | *(K_DATA_START) |
21 | *(K_DATA_START) |
22 | *(.rodata); |
22 | *(.rodata); |
23 | *(.rodata.*); |
23 | *(.rodata.*); |
24 | *(.data); /* initialized data */ |
24 | *(.data); /* initialized data */ |
25 | *(.sdata); |
25 | *(.sdata); |
26 | *(.sdata2); |
26 | *(.sdata2); |
27 | *(.sbss); |
27 | *(.sbss); |
28 | hardcoded_ktext_size = .; |
28 | hardcoded_ktext_size = .; |
29 | LONG(ktext_end - ktext_start); |
29 | LONG(ktext_end - ktext_start); |
30 | hardcoded_kdata_size = .; |
30 | hardcoded_kdata_size = .; |
31 | LONG(kdata_end - kdata_start); |
31 | LONG(kdata_end - kdata_start); |
32 | hardcoded_load_address = .; |
32 | hardcoded_load_address = .; |
33 | QUAD(0x4000); |
33 | QUAD(0x4000); |
34 | *(.bss); /* uninitialized static variables */ |
34 | *(.bss); /* uninitialized static variables */ |
35 | *(COMMON); /* global variables */ |
35 | *(COMMON); /* global variables */ |
36 | 36 | ||
37 | symbol_table = .; |
37 | symbol_table = .; |
38 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
38 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
39 | 39 | ||
40 | kdata_end = .; |
40 | kdata_end = .; |
41 | } |
41 | } |
42 | 42 | ||
43 | /DISCARD/ : { |
43 | /DISCARD/ : { |
44 | *(.comment); |
44 | *(.comment); |
45 | *(.note*); |
45 | *(.note*); |
46 | } |
46 | } |
47 | 47 | ||
48 | } |
48 | } |
49 | 49 |