mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2024-11-25 05:30:08 +00:00
9c60b66f71
This actually breaks the armv7 port. It has to be revisited in the future, since it not only is not compilable right now, but also cannot boot linux properly. TODO Also introduce a new C-based __memcpy_optimized that does not cause an exception on some devices when copying the initramfs. This issue has to be debugged further. Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
53 lines
703 B
ArmAsm
53 lines
703 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)
|
|
INPUT(RAMDISK_PATH)
|
|
|
|
SECTIONS
|
|
{
|
|
.boot : {
|
|
arch/aarch64/start.o
|
|
}
|
|
|
|
.text ALIGN(4096) : {
|
|
*(.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
|
|
}
|
|
|
|
.ramdisk ALIGN(4096) : {
|
|
ramdisk = .;
|
|
RAMDISK_PATH
|
|
}
|
|
|
|
kernel_size = SIZEOF(.kernel);
|
|
ramdisk_size = SIZEOF(.ramdisk);
|
|
}
|