From 1e99a3f4a97a4d1204c5fdb55a67c5a8c3da6df2 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Wed, 15 Oct 2025 21:03:03 +0200 Subject: [PATCH] Set fixed alignment and base address to allow execution under BIOS --- boot/xtldr/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boot/xtldr/CMakeLists.txt b/boot/xtldr/CMakeLists.txt index d9eb60e..4d1d0ff 100644 --- a/boot/xtldr/CMakeLists.txt +++ b/boot/xtldr/CMakeLists.txt @@ -39,6 +39,9 @@ add_executable(xtldr ${XTLDR_SOURCE}) # Add linker libraries target_link_libraries(xtldr libxtos) +# Add linker options +target_link_options(xtldr PRIVATE /ALIGN:512 /DYNAMICBASE:NO /FIXED) + # Set proper binary name and install target if(ARCH STREQUAL "i686") set(BINARY_NAME "bootia32")