-
Bug
-
Resolution: Done-Errata
-
Major
-
CentOS Stream 9
-
None
-
systemd-252-30.el9_4
-
None
-
None
-
sst_cs_plumbers
-
ssg_core_services
-
28
-
29
-
5
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
Approved Exception
-
-
x86_64
-
None
The PE spec says the minimum file alignment is 512 (0x200).
See https://learn.microsoft.com/en-us/windows/win32/debug/pe-format?redirectedfrom=MSDN (search for FileAlignment)
This is not the case for the systemd efi stub:
kraxel@rhel-9 ~# pe-inspect /usr/lib/systemd/boot/efi/linuxx64.efi.stub # file: /usr/lib/systemd/boot/efi/linuxx64.efi.stub # header: size=0x2d0 imagesize=0x1a300 nx-compat=no # section: file 0x000002d0 +0x0000c200 virt 0x00004000 +0x0000c1e0 r-x (.text) # section: file 0x0000c4d0 +0x00000210 virt 0x00011000 +0x0000000a r-- (.reloc) # section: file 0x0000c6e0 +0x00003400 virt 0x00012000 +0x00003358 rw- (.data) # section: file 0x0000fae0 +0x00000200 virt 0x00016000 +0x00000100 rw- (.dynamic) # section: file 0x0000fce0 +0x00001000 virt 0x00017000 +0x00000f60 r-- (.rela) # section: file 0x00010ce0 +0x00000200 virt 0x00018000 +0x00000018 r-- (.dynsym) # section: file 0x00010ee0 +0x00000200 virt 0x0001a000 +0x000000e4 r-- (.sbat) # sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md # systemd,1,The systemd Developers,systemd,252,https://systemd.io/ # systemd.rhel,1,Red Hat Enterprise Linux,systemd,252-26.el9,mailto:secalert@redhat.com # section: file 0x000110e0 +0x00000200 virt 0x0001a100 +0x0000002e r-- (.sdmagic) # #### LoaderInfo: systemd-stub 252-26.el9 ####
On Fedora 39 this is correct.
I guess some elf2efi fixes must be backported.
- account is impacted by
-
RHEL-30268 objcopy doesn't align sections with --section-alignment/--set-section-alignment
- Release Pending
- links to
-
RHSA-2023:125388 systemd bug fix and enhancement update