From 6c2ca888ee0b748daa380201530113cff727dc31 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 21 Feb 2026 23:18:22 +0000 Subject: [PATCH] x86_64: remove kernel image post-build ELF32 patch this patch must now be done by the wider OS build system, to avoid interference with any bootloaders that don't support this kind of patching (e.g GRUB i386-pc) --- arch/x86_64/config.cmake | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/x86_64/config.cmake b/arch/x86_64/config.cmake index 3c91d6a..759e594 100644 --- a/arch/x86_64/config.cmake +++ b/arch/x86_64/config.cmake @@ -2,9 +2,3 @@ target_compile_options(${kernel_exe_name} PRIVATE -z max-page-size=0x1000 -m64 -mcmodel=large -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -D_64BIT -DBYTE_ORDER=1234) target_link_libraries(${kernel_exe_name} "-z max-page-size=0x1000" "-T ${CMAKE_CURRENT_SOURCE_DIR}/arch/x86_64/layout.ld") - -add_custom_command(TARGET ${kernel_exe_name} POST_BUILD - COMMAND ${BUILD_TOOLS_DIR}/e64patch $ - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - COMMENT "Patching kernel elf64 image" -)