1
0
Fork 0
mirror of https://gitlab.com/bztsrc/bootboot.git synced 2023-02-13 20:54:32 -05:00
bztsrc--bootboot/aarch64-rpi/link.ld

37 lines
834 B
Text
Raw Normal View History

2018-06-05 14:34:03 -04:00
SECTIONS
{
. = 0x80000;
.text : { KEEP(*(.text.boot)) *(.text .text.* .gnu.linkonce.t*) }
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r*) }
PROVIDE(_data = .);
.data : { *(.data .data.* .gnu.linkonce.d*) }
.bss (NOLOAD) : {
. = ALIGN(16);
__bss_start = .;
*(.bss .bss.*)
*(COMMON)
d = ALIGN(16);
/* place these manually, gcc would otherwise waste lots of memory */
. = ALIGN(4096);
__bootboot = .;
. += 4096;
__environment = .;
. += 4096;
__paging = .;
. += (23*4096);
__corestack = .;
. += 4096;
__bss_end = .;
}
_end = .;
/DISCARD/ :
{
*(.comment)
*(.gnu*)
*(.note*)
*(.eh_frame*)
}
}
__bss_size = (__bss_end - __bss_start)>>3;