source: mainline/kernel/arch/mips32/_link.ld.in@ 4a4c8bcf

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 4a4c8bcf was 1ac3a52, checked in by Jakub Jermar <jakub@…>, 16 years ago

The kernel symbol table must be always 8-byte aligned.

  • Property mode set to 100644
File size: 961 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 . = ALIGN(8);
41 symbol_table = .;
42 *(symtab.*);
43 }
44 _gp = . + 0x8000;
45 .lit8 : { *(.lit8) }
46 .lit4 : { *(.lit4) }
47
48 kdata_end = .;
49
50 /DISCARD/ : {
51 *(.mdebug*);
52 *(.pdr);
53 *(.comment);
54 *(.note);
55 }
56}
Note: See TracBrowser for help on using the repository browser.