mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2024-09-20 06:51:49 +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>
46 lines
577 B
ArmAsm
46 lines
577 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2022, Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
|
|
*/
|
|
|
|
OUTPUT_FORMAT("elf64-littleaarch64")
|
|
OUTPUT_ARCH(aarch64)
|
|
TARGET(binary)
|
|
|
|
INPUT(KERNEL_PATH)
|
|
INPUT(DTB_PATH)
|
|
|
|
SECTIONS
|
|
{
|
|
.boot : {
|
|
arch/aarch64/start.o
|
|
}
|
|
|
|
.text : {
|
|
*(.text)
|
|
}
|
|
|
|
.bss ALIGN(4096) : {
|
|
_bss_start = .;
|
|
. = . + 4096;
|
|
_bss_end = .;
|
|
}
|
|
|
|
.stack ALIGN(4096) : {
|
|
. = . + 4096;
|
|
_stack_end = .;
|
|
}
|
|
|
|
.dtb ALIGN(4096) : {
|
|
dtb = .;
|
|
DTB_PATH
|
|
}
|
|
|
|
.kernel ALIGN(4096) : {
|
|
kernel = .;
|
|
KERNEL_PATH
|
|
}
|
|
|
|
kernel_size = SIZEOF(.kernel);
|
|
}
|