source: mainline/arch/mips32/_link.ld.in@ 789b5cc

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 789b5cc was 389f41e, checked in by Martin Decky <martin@…>, 20 years ago

new build system almost finished

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