mirror of
https://github.com/systemd/systemd.git
synced 2025-01-06 17:18:12 +03:00
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.
This commit is contained in:
parent
9d2e4ceee5
commit
1a01473065
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user