mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2024-11-10 06:00:07 +00:00
54d3d93a92
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>
32 lines
619 B
ArmAsm
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);
|
|
}
|