source: mainline/arch/mips32/_link.ld.in@ 51a7dc1

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

link kernel in ARCH's native format first, then use objcopy to create output format

  • 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_ARCH(mips)
12
13ENTRY(kernel_image_start)
14
15SECTIONS {
16 . = KERNEL_LOAD_ADDRESS;
17 .text : {
18 ktext_start = .;
19 *(.text);
20 ktext_end = .;
21 }
22 .data : {
23 kdata_start = .;
24 *(.data); /* initialized data */
25 hardcoded_ktext_size = .;
26 LONG(ktext_end - ktext_start);
27 hardcoded_kdata_size = .;
28 LONG(kdata_end - kdata_start);
29 hardcoded_load_address = .;
30 LONG(KERNEL_LOAD_ADDRESS);
31 *(.rodata*);
32 *(.sdata);
33 *(.reginfo);
34 /* Unfortunately IRIX does not allow us
35 * to include this as a last section :-(
36 * BSS/SBSS addresses will be wrong */
37 symbol_table = .;
38 *(symtab.*);
39 }
40 _gp = . + 0x8000;
41 .lit8 : { *(.lit8) }
42 .lit4 : { *(.lit4) }
43 .sbss : {
44 *(.sbss);
45 *(.scommon);
46 }
47 .bss : {
48 *(.bss); /* uninitialized static variables */
49 *(COMMON); /* global variables */
50 }
51
52 kdata_end = .;
53
54 /DISCARD/ : {
55 *(.mdebug*);
56 *(.pdr);
57 *(.comment);
58 *(.note);
59 }
60}
Note: See TracBrowser for help on using the repository browser.