source: mainline/arch/mips/_link.ld@ 0970f43

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
RevLine 
[f761f1eb]1/*
2 * MIPS linker script
3 *
4 * kernel text
5 * kernel data
6 *
7 */
8
9OUTPUT_FORMAT(binary)
[e3f41b6]10ENTRY(kernel_image_start)
[f761f1eb]11
12SECTIONS {
[0970f43]13 .image 0x80000000: AT (0x80000000) {
14 _gp = 0x00000000;
15
[ac5d02b]16 ktext_start = .;
17 *(.text);
18 ktext_end = .;
19
20 kdata_start = .;
[0970f43]21 *(.reginfo);
22 *(.rodata);
23 *(.rodata.*);
[ac5d02b]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 : {
[76cec1e]39 LONG(ktext_end - ktext_start);
[ac5d02b]40 }
41
42 . = ABSOLUTE(hardcoded_kdata_size);
43 .patch_2 : {
[76cec1e]44 LONG(kdata_end - kdata_start);
[ac5d02b]45 }
46
47 . = ABSOLUTE(hardcoded_load_address);
48 .patch_3 : {
[76cec1e]49 LONG(0x80000000);
[ac5d02b]50 }
[f761f1eb]51
52}
Note: See TracBrowser for help on using the repository browser.