Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#73137 - [gnu-efi] Better CFLAGS (for systemd-boot)
Attached to Project:
Arch Linux
Opened by Jan (medhefgo) - Friday, 24 December 2021, 10:52 GMT
Last edited by David Runge (dvzrv) - Friday, 08 April 2022, 18:45 GMT
Opened by Jan (medhefgo) - Friday, 24 December 2021, 10:52 GMT
Last edited by David Runge (dvzrv) - Friday, 08 April 2022, 18:45 GMT
|
DetailsWith v250 systemd-boot gained support for LTO builds (which already works for the current build in testing). But it could benefit even more if gnu-efi was built with LTO too…
Additionally, while looking at the PKGBUILD, I noticed that we currently pass our userspace CFLAGS as-is to make. I consider this a bad idea for gnu-efi as it's not your typical userspace program. It's a freestanding compilation and as such, the compile flags should be heavily restricted. One example that could easily break things is '-march=x86_64-v3': This would allow the compiler to use instructions that may not be available *yet* at the time the boot loader runs because they might need to be enabled explicitly or because the firmware APIs that are called aren't prepared to save relevant CPU states. As such, I would strongly suggest to only use these CFLAGS in PKGBUILD and let gnu-efi decide on anything else it wants: export CFLAGS="-O2 -flto -ffat-lto-objects" |
This task depends upon
Closed by David Runge (dvzrv)
Friday, 08 April 2022, 18:45 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with gnu-efi 3.0.14-3
Friday, 08 April 2022, 18:45 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with gnu-efi 3.0.14-3
I'll look into this! :)