You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/* SPDX-License-Identifier: MIT OR Apache-2.0
|
|
|
|
*
|
|
|
|
* Copyright (c) 2018-2020 Andre Richter <andre.o.richter@gmail.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
/* Set the link address to 32 MiB */
|
|
|
|
. = 0x2000000;
|
|
|
|
|
|
|
|
__binary_start = .;
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
*(.text._start) *(.text*)
|
|
|
|
}
|
|
|
|
|
|
|
|
.rodata :
|
|
|
|
{
|
|
|
|
*(.rodata*)
|
|
|
|
}
|
|
|
|
|
|
|
|
.data :
|
|
|
|
{
|
|
|
|
*(.data*)
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Section is zeroed in u64 chunks, align start and end to 8 bytes */
|
|
|
|
.bss ALIGN(8):
|
|
|
|
{
|
|
|
|
__bss_start = .;
|
|
|
|
*(.bss*);
|
|
|
|
. = ALIGN(8);
|
|
|
|
__bss_end_inclusive = . - 8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.got :
|
|
|
|
{
|
|
|
|
*(.got*)
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Fill up to 8 byte, b/c relocating the binary is done in u64 chunks */
|
|
|
|
. = ALIGN(8);
|
|
|
|
__binary_end_inclusive = . - 8;
|
|
|
|
|
|
|
|
/DISCARD/ : { *(.comment*) }
|
|
|
|
}
|