Rev 3022 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4055 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /** PPC32 linker script |
1 | /** PPC32 linker script |
2 | * |
2 | * |
3 | * umapped section: |
3 | * umapped section: |
4 | * kernel text |
4 | * kernel text |
5 | * kernel data |
5 | * kernel data |
6 | * mapped section: |
6 | * mapped section: |
7 | * kernel text |
7 | * kernel text |
8 | * kernel data |
8 | * kernel data |
9 | * |
9 | * |
10 | */ |
10 | */ |
11 | 11 | ||
12 | #include <arch/boot/boot.h> |
12 | #include <arch/boot/boot.h> |
13 | #include <arch/mm/page.h> |
13 | #include <arch/mm/page.h> |
Line 25... | Line 25... | ||
25 | unmapped_kdata_start = .; |
25 | unmapped_kdata_start = .; |
26 | *(K_UNMAPPED_DATA_START); |
26 | *(K_UNMAPPED_DATA_START); |
27 | unmapped_kdata_start = .; |
27 | unmapped_kdata_start = .; |
28 | } |
28 | } |
29 | 29 | ||
30 | .mapped PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) { |
30 | .mapped PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) { |
31 | ktext_start = .; |
31 | ktext_start = .; |
32 | *(K_TEXT_START); |
32 | *(K_TEXT_START); |
33 | *(.text); |
33 | *(.text); |
34 | ktext_end = .; |
34 | ktext_end = .; |
35 | 35 | ||
36 | kdata_start = .; |
36 | kdata_start = .; |
37 | *(K_DATA_START); |
37 | *(K_DATA_START); |
38 | *(.rodata); |
38 | *(.rodata); |
39 | *(.rodata.*); |
39 | *(.rodata.*); |
40 | *(.data); /* initialized data */ |
40 | *(.data); /* initialized data */ |
41 | *(.sdata); |
41 | *(.sdata); |
42 | *(.sdata2); |
42 | *(.sdata2); |
43 | *(.sbss); |
43 | *(.sbss); |
44 | hardcoded_ktext_size = .; |
44 | hardcoded_ktext_size = .; |
45 | LONG(ktext_end - ktext_start); |
45 | LONG(ktext_end - ktext_start); |
46 | hardcoded_kdata_size = .; |
46 | hardcoded_kdata_size = .; |
47 | LONG(kdata_end - kdata_start); |
47 | LONG(kdata_end - kdata_start); |
48 | hardcoded_load_address = .; |
48 | hardcoded_load_address = .; |
49 | LONG(PA2KA(BOOT_OFFSET)); |
49 | LONG(PA2KA(BOOT_OFFSET)); |
50 | *(.bss); /* uninitialized static variables */ |
50 | *(.bss); /* uninitialized static variables */ |
51 | *(COMMON); /* global variables */ |
51 | *(COMMON); /* global variables */ |
52 | 52 | ||
53 | symbol_table = .; |
53 | symbol_table = .; |
54 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
54 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
55 | 55 | ||
56 | kdata_end = .; |
56 | kdata_end = .; |
57 | } |
57 | } |
58 | } |
58 | } |