source: mainline/boot/arch/mips32/_link.ld.in

Last change on this file was c89ae25, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 21 months ago

Fix and enable —gc-sections in /kernel and /boot

  • Property mode set to 100644
File size: 664 bytes
Line 
1ENTRY(start)
2
3SECTIONS {
4#if defined(MACHINE_msim)
5 . = 0xbfc00000;
6#elif defined(MACHINE_lmalta) || defined(MACHINE_bmalta)
7 . = 0x80103000;
8#endif
9 .text : {
10 loader_start = .;
11 KEEP(*(BOOTSTRAP));
12 *(.text .text.*);
13 }
14 .data : {
15 *(.data .data.*); /* initialized data */
16 *(.rodata .rodata.*);
17 *(.sdata .sdata.*);
18 *(.reginfo);
19 *(.sbss .sbss.*);
20 *(.scommon .scommon.*);
21 *(.bss .bss.*); /* uninitialized static variables */
22 *(COMMON); /* global variables */
23 loader_end = .;
24 payload_start = .;
25 KEEP(*(.payload));
26 payload_end = .;
27 }
28
29 /DISCARD/ : {
30 *(.gnu.*);
31 *(.mdebug*);
32 *(.pdr);
33 *(.comment);
34 *(.note);
35 }
36}
Note: See TracBrowser for help on using the repository browser.