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
RevLine 
[f761f1eb]1/*
[2a99fa8]2 * MIPS32 linker script
[f761f1eb]3 *
4 * kernel text
5 * kernel data
6 *
7 */
[ffc277e]8#undef mips
9#define mips mips
[f761f1eb]10
[ffc277e]11OUTPUT_FORMAT(BFD)
12OUTPUT_ARCH(mips)
[38de8a5]13
[e3f41b6]14ENTRY(kernel_image_start)
[f761f1eb]15
16SECTIONS {
[24241cf]17 . = KERNEL_LOAD_ADDRESS;
[ffc277e]18 .text : {
[ac5d02b]19 ktext_start = .;
20 *(.text);
21 ktext_end = .;
[ffc277e]22 }
23 .data : {
[ac5d02b]24 kdata_start = .;
25 *(.data); /* initialized data */
[c832cc0a]26 hardcoded_ktext_size = .;
27 LONG(ktext_end - ktext_start);
28 hardcoded_kdata_size = .;
29 LONG(kdata_end - kdata_start);
30 hardcoded_load_address = .;
[24241cf]31 LONG(KERNEL_LOAD_ADDRESS);
32 *(.rodata*);
33 *(.sdata);
34 *(.reginfo);
[3156582]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.*);
[ffc277e]40 }
41 _gp = . + 0x8000;
42 .lit8 : { *(.lit8) }
43 .lit4 : { *(.lit4) }
44 .sbss : {
45 *(.sbss);
[ac5d02b]46 *(.scommon);
[ffc277e]47 }
48 .bss : {
49 *(.bss); /* uninitialized static variables */
[ac5d02b]50 *(COMMON); /* global variables */
[ffc277e]51 }
[24241cf]52
[ffc277e]53 kdata_end = .;
54
[24241cf]55 /DISCARD/ : {
56 *(.mdebug*);
57 *(.pdr);
58 *(.comment);
59 *(.note);
60 }
[f761f1eb]61}
Note: See TracBrowser for help on using the repository browser.