]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Remove -O1 workaround
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 15 Jan 2023 19:35:52 +0000 (20:35 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 15 Jan 2023 19:45:22 +0000 (20:45 +0100)
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

index fb8ec26564fafcf9fa4a9a1ba133ca75d3077deb..10ab5ce5ce0a4241083e086cdbc4fb2ba7e7cebd 100644 (file)
@@ -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'],