Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
78 lines
925 B
ArmAsm
78 lines
925 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* realmode.lds.S
|
|
*
|
|
* Linker script for the real-mode code
|
|
*/
|
|
|
|
#include <asm/page_types.h>
|
|
|
|
#undef i386
|
|
|
|
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
|
|
OUTPUT_ARCH(i386)
|
|
|
|
SECTIONS
|
|
{
|
|
real_mode_seg = 0;
|
|
|
|
. = 0;
|
|
.header : {
|
|
pa_real_mode_base = .;
|
|
*(.header)
|
|
}
|
|
|
|
. = ALIGN(4);
|
|
.rodata : {
|
|
*(.rodata)
|
|
*(.rodata.*)
|
|
. = ALIGN(16);
|
|
video_cards = .;
|
|
*(.videocards)
|
|
video_cards_end = .;
|
|
}
|
|
|
|
. = ALIGN(PAGE_SIZE);
|
|
pa_text_start = .;
|
|
.text : {
|
|
*(.text)
|
|
*(.text.*)
|
|
}
|
|
|
|
.text32 : {
|
|
*(.text32)
|
|
*(.text32.*)
|
|
}
|
|
|
|
.text64 : {
|
|
*(.text64)
|
|
*(.text64.*)
|
|
}
|
|
pa_ro_end = .;
|
|
|
|
. = ALIGN(PAGE_SIZE);
|
|
.data : {
|
|
*(.data)
|
|
*(.data.*)
|
|
}
|
|
|
|
. = ALIGN(128);
|
|
.bss : {
|
|
*(.bss*)
|
|
}
|
|
|
|
/* End signature for integrity checking */
|
|
. = ALIGN(4);
|
|
.signature : {
|
|
*(.signature)
|
|
}
|
|
|
|
/DISCARD/ : {
|
|
*(.note*)
|
|
*(.debug*)
|
|
*(.eh_frame*)
|
|
}
|
|
|
|
#include "pasyms.h"
|
|
}
|