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.

34 lines
738 B
Plaintext

/* SPDX-License-Identifier: MIT OR Apache-2.0
*
* Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
*/
/* The physical address at which the the kernel binary will be loaded by the Raspberry's firmware */
__rpi_phys_binary_load_addr = 0x80000;
ENTRY(__rpi_phys_binary_load_addr)
/* Flags:
* 4 == R
* 5 == RX
* 6 == RW
*/
PHDRS
{
segment_code PT_LOAD FLAGS(5);
}
SECTIONS
{
. = __rpi_phys_binary_load_addr;
/***********************************************************************************************
* Code
***********************************************************************************************/
.text :
{
KEEP(*(.text._start))
} :segment_code
}