Rev 268 | Rev 326 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 268 | Rev 324 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | * MIPS linker script |
2 | * MIPS linker script |
3 | * |
3 | * |
4 | * kernel text |
4 | * kernel text |
5 | * kernel data |
5 | * kernel data |
6 | * |
6 | * |
7 | */ |
7 | */ |
8 | 8 | ||
- | 9 | /* OUTPUT_FORMAT(ecoff-littlemips) */ |
|
9 | OUTPUT_FORMAT(binary) |
10 | OUTPUT_FORMAT(binary) |
- | 11 | /* OUTPUT_FORMAT(elf32-little) */ |
|
- | 12 | ||
10 | ENTRY(kernel_image_start) |
13 | ENTRY(kernel_image_start) |
11 | 14 | ||
12 | SECTIONS { |
15 | SECTIONS { |
13 | .image 0x80000000: AT (0x80000000) { |
16 | .image 0x80000000: AT (0) { |
14 | _gp = 0x00000000; |
17 | _gp = 0x00000000; |
15 | 18 | ||
16 | ktext_start = .; |
19 | ktext_start = .; |
17 | *(.text); |
20 | *(.text); |
18 | ktext_end = .; |
21 | ktext_end = .; |
19 | 22 | ||
20 | kdata_start = .; |
23 | kdata_start = .; |
21 | *(.reginfo); |
24 | *(.reginfo); |
22 | *(.rodata); |
25 | *(.rodata); |
23 | *(.rodata.*); |
26 | *(.rodata.*); |
24 | *(.rdata); |
27 | *(.rdata); |
25 | *(.data); /* initialized data */ |
28 | *(.data); /* initialized data */ |
26 | *(.lit8); |
29 | *(.lit8); |
27 | *(.lit4); |
30 | *(.lit4); |
28 | *(.sdata); |
31 | *(.sdata); |
29 | *(.sbss); |
32 | *(.sbss); |
- | 33 | *(.comment); |
|
- | 34 | *(.pdr); |
|
- | 35 | ||
30 | hardcoded_ktext_size = .; |
36 | hardcoded_ktext_size = .; |
31 | LONG(ktext_end - ktext_start); |
37 | LONG(ktext_end - ktext_start); |
32 | hardcoded_kdata_size = .; |
38 | hardcoded_kdata_size = .; |
33 | LONG(kdata_end - kdata_start); |
39 | LONG(kdata_end - kdata_start); |
34 | hardcoded_load_address = .; |
40 | hardcoded_load_address = .; |
35 | LONG(0x80000000); |
41 | LONG(0x80000000); |
36 | *(.bss); /* uninitialized static variables */ |
42 | *(.bss); /* uninitialized static variables */ |
37 | *(.scommon); |
43 | *(.scommon); |
38 | *(COMMON); /* global variables */ |
44 | *(COMMON); /* global variables */ |
39 | 45 | ||
40 | symbol_table = .; |
46 | symbol_table = .; |
41 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
47 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
42 | 48 | ||
43 | kdata_end = .; |
49 | kdata_end = .; |
44 | 50 | ||
45 | } = 0x00000000 |
51 | } |
46 | } |
52 | } |
47 | 53 |