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
RevLine 
[d969a9a]1#include <arch/arch.h>
2
[fa024ce]3ENTRY(start)
4
[960f8476]5SECTIONS {
[d969a9a]6 . = BOOT_BASE;
[4872160]7 .text : {
[63a045c]8 loader_start = .;
[c89ae25]9 KEEP(*(BOOTSTRAP));
10 *(.text .text.*);
[4872160]11 }
[d969a9a]12 . = BOOT_BASE + 0x8000;
[4872160]13 .data : {
14 *(BOOTPT); /* bootstrap page table */
15 *(BOOTSTACK); /* bootstrap stack */
[c89ae25]16 *(.data .data.*); /* initialized data */
17 *(.rodata .rodata.*);
18 *(.sdata .sdata.*);
19 *(.sbss .sbss.*);
20 *(.scommon .scommon.*);
21 *(.bss .bss.*); /* uninitialized static variables */
[fa024ce]22 *(COMMON); /* global variables */
[63a045c]23 loader_end = .;
24 payload_start = .;
[c89ae25]25 KEEP(*(.payload));
[63a045c]26 payload_end = .;
[960f8476]27 }
[bfb6576]28
[e731b0d]29 /DISCARD/ : {
[4872160]30 *(.gnu.*);
31 *(.ARM.*);
32 *(.mdebug*);
33 *(.pdr);
[e731b0d]34 *(.comment);
[4872160]35 *(.note.*);
[e731b0d]36 }
[960f8476]37}
Note: See TracBrowser for help on using the repository browser.