uniLoader/arch/arm/linker.lds.S
Ivaylo Ivanov 54d3d93a92 arch: aarch64: Set up Stack Pointer
Introduce stack and bss memory regions, rename Start.S to start.S
This commit should allow jumping out of assembly code for certain
SoCs that had issues with SP like MTK and QCOM.

Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
2024-08-06 19:23:47 +03:00

32 lines
619 B
ArmAsm

ENTRY(_start);
OUTPUT_FORMAT("elf32-littlearm")
OUTPUT_ARCH(arm)
TARGET(binary)
INPUT(KERNEL_PATH)
INPUT(DTB_PATH)
SECTIONS
{
/* The default TEXT_BASE address is 0x0 if not specified otherwise, so compare it to 0x1 */
__start_address = (TEXT_BASE > 0x1) ? TEXT_BASE : 0x80008000;
. = __start_address;
.boot : {
arch/arm/start.o
}
.dtb ALIGN(0x1000) : {
dtb = .;
DTB_PATH
}
.kernel ALIGN(0x1000) : {
kernel = .;
KERNEL_PATH
}
kernel_size = SIZEOF(.kernel);
}