lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 0970f43 was 0970f43, checked in by Martin Decky <martin@…>, 20 years ago |
Make MIPS target compile and link properly with the new 4.0.1 MIPS toolchain
|
-
Property mode
set to
100644
|
File size:
799 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * MIPS linker script
|
---|
3 | *
|
---|
4 | * kernel text
|
---|
5 | * kernel data
|
---|
6 | *
|
---|
7 | */
|
---|
8 |
|
---|
9 | OUTPUT_FORMAT(binary)
|
---|
10 | ENTRY(kernel_image_start)
|
---|
11 |
|
---|
12 | SECTIONS {
|
---|
13 | .image 0x80000000: AT (0x80000000) {
|
---|
14 | _gp = 0x00000000;
|
---|
15 |
|
---|
16 | ktext_start = .;
|
---|
17 | *(.text);
|
---|
18 | ktext_end = .;
|
---|
19 |
|
---|
20 | kdata_start = .;
|
---|
21 | *(.reginfo);
|
---|
22 | *(.rodata);
|
---|
23 | *(.rodata.*);
|
---|
24 | *(.rdata);
|
---|
25 | *(.data); /* initialized data */
|
---|
26 | *(.lit8);
|
---|
27 | *(.lit4);
|
---|
28 | *(.sdata);
|
---|
29 | *(.sbss);
|
---|
30 | *(.bss); /* uninitialized static variables */
|
---|
31 | *(.scommon);
|
---|
32 | *(COMMON); /* global variables */
|
---|
33 | kdata_end = .;
|
---|
34 |
|
---|
35 | } = 0x00000000
|
---|
36 |
|
---|
37 | . = ABSOLUTE(hardcoded_ktext_size);
|
---|
38 | .patch_1 : {
|
---|
39 | LONG(ktext_end - ktext_start);
|
---|
40 | }
|
---|
41 |
|
---|
42 | . = ABSOLUTE(hardcoded_kdata_size);
|
---|
43 | .patch_2 : {
|
---|
44 | LONG(kdata_end - kdata_start);
|
---|
45 | }
|
---|
46 |
|
---|
47 | . = ABSOLUTE(hardcoded_load_address);
|
---|
48 | .patch_3 : {
|
---|
49 | LONG(0x80000000);
|
---|
50 | }
|
---|
51 |
|
---|
52 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.