From 1a01473065e37bd362227d58309b3d5c20590ddf Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 15 Jan 2023 20:35:52 +0100 Subject: [PATCH] boot: Remove -O1 workaround Now that we have ukify and mkosi has been updated to use it, we have a solution in place to make sure that PE sections don't overlap in a UKI so let's drop the workaround to avoid overlapping PE sections. --- src/boot/efi/meson.build | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index fb8ec26564f..10ab5ce5ce0 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -198,15 +198,6 @@ efi_cflags = [ ] ) -# Our code size has increased enough to possibly create overlapping PE sections -# at sd-stub runtime, which will often enough prevent the image from booting. -# This only happens because the usual instructions for assembling a unified -# kernel image contain hardcoded addresses for section VMAs added in. Until a -# proper solution is in place, we can at least compile with as least -O1 to -# reduce the likelihood of this happening. -# https://github.com/systemd/systemd/issues/24202 -efi_cflags += '-O1' - efi_cflags += cc.get_supported_arguments({ 'ia32': ['-mno-sse', '-mno-mmx'], 'x86_64': ['-mno-red-zone', '-mno-sse', '-mno-mmx'], -- 2.47.3