source: mainline/kernel/arch/mips64/_link.ld.in@ 2902e1bb

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 2902e1bb was 2429e4a, checked in by Martin Decky <martin@…>, 14 years ago

add initial support for mips64
(it does not do anything useful so far and there are probably severe bugs and ABI violations, but it compiles)

  • Property mode set to 100644
File size: 1005 bytes
Line 
1/*
2 * MIPS64 linker script
3 *
4 * kernel text
5 * kernel data
6 *
7 */
8
9#undef mips
10#define mips mips
11
12#define KERNEL_LOAD_ADDRESS 0xffffffff80100000
13
14OUTPUT_ARCH(mips)
15OUTPUT_FORMAT(elf64-tradlittlemips)
16ENTRY(kernel_image_start)
17
18SECTIONS {
19 . = KERNEL_LOAD_ADDRESS;
20 .text : {
21 ktext_start = .;
22 *(.text);
23 ktext_end = .;
24 }
25 .data : {
26 kdata_start = .;
27 *(.data); /* initialized data */
28 hardcoded_ktext_size = .;
29 LONG(ktext_end - ktext_start);
30 hardcoded_kdata_size = .;
31 LONG(kdata_end - kdata_start);
32 hardcoded_load_address = .;
33 LONG(KERNEL_LOAD_ADDRESS);
34 *(.rodata*);
35 *(.sdata);
36 *(.reginfo);
37 *(.sbss);
38 *(.scommon);
39 *(.bss); /* uninitialized static variables */
40 *(COMMON); /* global variables */
41 . = ALIGN(8);
42 symbol_table = .;
43 *(symtab.*);
44 }
45 _gp = . + 0x8000;
46 .lit8 : { *(.lit8) }
47 .lit4 : { *(.lit4) }
48
49 kdata_end = .;
50
51 /DISCARD/ : {
52 *(.mdebug*);
53 *(.pdr);
54 *(.comment);
55 *(.note);
56 }
57}
Note: See TracBrowser for help on using the repository browser.