source: mainline/kernel/arch/mips32/_link.ld.in@ 0c33687a

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 0c33687a was 7f341820, checked in by Martin Decky <martin@…>, 16 years ago

mips32: basic SMP support

  • Property mode set to 100644
File size: 945 bytes
Line 
1/*
2 * MIPS32 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 0x80100000
13
14OUTPUT_ARCH(mips)
15ENTRY(kernel_image_start)
16
17SECTIONS {
18 . = KERNEL_LOAD_ADDRESS;
19 .text : {
20 ktext_start = .;
21 *(.text);
22 ktext_end = .;
23 }
24 .data : {
25 kdata_start = .;
26 *(.data); /* initialized data */
27 hardcoded_ktext_size = .;
28 LONG(ktext_end - ktext_start);
29 hardcoded_kdata_size = .;
30 LONG(kdata_end - kdata_start);
31 hardcoded_load_address = .;
32 LONG(KERNEL_LOAD_ADDRESS);
33 *(.rodata*);
34 *(.sdata);
35 *(.reginfo);
36 *(.sbss);
37 *(.scommon);
38 *(.bss); /* uninitialized static variables */
39 *(COMMON); /* global variables */
40 symbol_table = .;
41 *(symtab.*);
42 }
43 _gp = . + 0x8000;
44 .lit8 : { *(.lit8) }
45 .lit4 : { *(.lit4) }
46
47 kdata_end = .;
48
49 /DISCARD/ : {
50 *(.mdebug*);
51 *(.pdr);
52 *(.comment);
53 *(.note);
54 }
55}
Note: See TracBrowser for help on using the repository browser.