source: mainline/boot/arch/riscv64/_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: 731 bytes
RevLine 
[ae8d7b0]1#include <arch/arch.h>
2
[8b6aa39]3ENTRY(start)
4
5SECTIONS {
[ae8d7b0]6 . = PHYSMEM_START;
[f1380b7]7
[8b6aa39]8 .text : {
[63a045c]9 loader_start = .;
[c89ae25]10 KEEP(*(BOOTSTRAP));
11 *(.text .text.*);
[8b6aa39]12 }
[f1380b7]13
[ae8d7b0]14 . = ALIGN(0x1000);
15 .htif : {
16 htif_page = .;
17 *(.htif)
18 }
19 . = ALIGN(0x1000);
[f1380b7]20
[ae8d7b0]21 . = ALIGN(0x1000);
22 .pt : {
23 pt_page = .;
24 *(.pt)
25 }
26 . = ALIGN(0x1000);
[f1380b7]27
[8b6aa39]28 .data : {
[c89ae25]29 *(.data .data.*); /* initialized data */
30 *(.rodata .rodata.*);
31 *(.sdata .sdata.*);
32 *(.sbss .sbss.*);
33 *(.scommon .scommon.*);
34 *(.bss .bss.*); /* uninitialized static variables */
[8b6aa39]35 *(COMMON); /* global variables */
[63a045c]36 loader_end = .;
37 payload_start = .;
[c89ae25]38 KEEP(*(.payload));
[63a045c]39 payload_end = .;
[8b6aa39]40 }
[f1380b7]41
[8b6aa39]42 /DISCARD/ : {
43 *(.gnu.*);
44 *(.mdebug*);
45 *(.pdr);
46 *(.comment);
47 *(.note);
48 }
49}
Note: See TracBrowser for help on using the repository browser.