source: mainline/boot/arch/arm64/_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: 632 bytes
Line 
1#include <arch/arch.h>
2
3ENTRY(start)
4
5SECTIONS {
6 . = 0x0;
7 .text : {
8 HIDDEN(loader_start = .);
9 KEEP(*(BOOTSTRAP));
10 *(.text .text.*);
11 }
12 .dynamic : { *(.dynamic); }
13 .rela.got : { *(.rela.got); }
14 .hash : { *(.hash); }
15 .dynsym : { *(.dynsym); }
16 .dynstr : { *(.dynstr); }
17 . = 0x8000;
18 .data : {
19 *(.data .data.*); /* initialized data */
20 *(.rodata .rodata.*);
21 *(.bss .bss.*); /* uninitialized static variables */
22 *(COMMON); /* global variables */
23 *(.got .got.*);
24 HIDDEN(loader_end = .);
25 HIDDEN(payload_start = .);
26 KEEP(*(.payload));
27 HIDDEN(payload_end = .);
28 }
29
30 /DISCARD/ : {
31 *(*);
32 }
33}
Note: See TracBrowser for help on using the repository browser.