source: mainline/boot/arch/arm32/_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: 690 bytes
Line 
1#include <arch/arch.h>
2
3ENTRY(start)
4
5SECTIONS {
6 . = BOOT_BASE;
7 .text : {
8 loader_start = .;
9 KEEP(*(BOOTSTRAP));
10 *(.text .text.*);
11 }
12 . = BOOT_BASE + 0x8000;
13 .data : {
14 *(BOOTPT); /* bootstrap page table */
15 *(BOOTSTACK); /* bootstrap stack */
16 *(.data .data.*); /* initialized data */
17 *(.rodata .rodata.*);
18 *(.sdata .sdata.*);
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 *(.ARM.*);
32 *(.mdebug*);
33 *(.pdr);
34 *(.comment);
35 *(.note.*);
36 }
37}
Note: See TracBrowser for help on using the repository browser.