]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Discard .pci_devlist.* sections for EFI images
authorMarvin Häuser <mhaeuser@posteo.de>
Thu, 8 Apr 2021 17:58:35 +0000 (19:58 +0200)
committerMichael Brown <mcb30@ipxe.org>
Sat, 10 Apr 2021 12:22:31 +0000 (13:22 +0100)
As per https://github.com/ipxe/ipxe/pull/313#issuecomment-816018398,
these sections are not required for EFI execution.  Discard them to
avoid implementation-defined alignment malforming binaries.

Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
src/scripts/efi.lds

index f1049f24b007040688b4bc9a518329cf7b292cb5..36022545d22a9ab1baad567286f7384419c7169e 100644 (file)
@@ -106,5 +106,6 @@ SECTIONS {
        *(.einfo.*)
        *(.discard)
        *(.discard.*)
+       *(.pci_devlist.*)
     }
 }