Rev 199 | Rev 218 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 199 | Rev 210 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | * PPC linker script |
2 | * PPC linker script |
3 | * |
3 | * |
4 | * It is ELF format, but its only section looks like this: |
4 | * It is ELF format, but its only section looks like this: |
5 | * kernel text |
5 | * kernel text |
6 | * kernel data |
6 | * kernel data |
7 | * |
7 | * |
8 | */ |
8 | */ |
9 | 9 | ||
10 | OUTPUT_FORMAT(elf32-powerpc) |
10 | OUTPUT_FORMAT(elf32-powerpc) |
11 | ENTRY(kernel_image_start) |
11 | ENTRY(kernel_image_start) |
12 | 12 | ||
13 | SECTIONS { |
13 | SECTIONS { |
14 | .image 0x80000000: AT (0x80000000) { |
14 | .image 0x80000000: AT (0x80000000) { |
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 | *(.sbss); |
27 | *(.sbss); |
27 | *(.bss); /* uninitialized static variables */ |
28 | *(.bss); /* uninitialized static variables */ |
28 | *(COMMON); /* global variables */ |
29 | *(COMMON); /* global variables */ |
29 | kdata_end = .; |
30 | kdata_end = .; |
30 | } |
31 | } |
31 | 32 | ||
32 | _hardcoded_ktext_size = ktext_end - ktext_start; |
33 | _hardcoded_ktext_size = ktext_end - ktext_start; |
33 | _hardcoded_kdata_size = kdata_end - kdata_start; |
34 | _hardcoded_kdata_size = kdata_end - kdata_start; |
34 | _hardcoded_load_address = 0x80000000; |
35 | _hardcoded_load_address = 0x80000000; |
35 | } |
36 | } |
36 | 37 |