source: mainline/arch/mips32/_link.ld.in@ 1a70350

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

sparc64 infrastructure.

  • 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)
12
13OUTPUT_ARCH(mips)
14
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 /* Unfortunately IRIX does not allow us
37 * to include this as a last section :-(
38 * BSS/SBSS addresses will be wrong */
39 symbol_table = .;
40 *(symtab.*);
41 }
42 _gp = . + 0x8000;
43 .lit8 : { *(.lit8) }
44 .lit4 : { *(.lit4) }
45 .sbss : {
46 *(.sbss);
47 *(.scommon);
48 }
49 .bss : {
50 *(.bss); /* uninitialized static variables */
51 *(COMMON); /* global variables */
52 }
53
54 kdata_end = .;
55
56 /DISCARD/ : {
57 *(.mdebug*);
58 *(.pdr);
59 *(.comment);
60 *(.note);
61 }
62}
Note: See TracBrowser for help on using the repository browser.