Blame SOURCES/0001-Fix-a-broken-file-header-on-ia32.patch

c634ca
From 1bea91ba72165d97c3b453cf769cb4bc5c07207a Mon Sep 17 00:00:00 2001
c634ca
From: Peter Jones <pjones@redhat.com>
c634ca
Date: Wed, 31 Mar 2021 14:54:52 -0400
c634ca
Subject: [PATCH] Fix a broken file header on ia32
c634ca
c634ca
Commit c6281c6a195edee61185 needs to have included a ". = ALIGN(4096)"
c634ca
directive before .reloc, but fails to do so.
c634ca
c634ca
As a result, binutils, which does not care about the actual binary
c634ca
format's constraints in any way, does not enforce the section alignment,
c634ca
and it will not load.
c634ca
c634ca
Signed-off-by: Peter Jones <pjones@redhat.com>
c634ca
---
c634ca
 elf_ia32_efi.lds | 1 +
c634ca
 1 file changed, 1 insertion(+)
c634ca
c634ca
diff --git a/elf_ia32_efi.lds b/elf_ia32_efi.lds
c634ca
index 742e0a47a73..497a3a15265 100644
c634ca
--- a/elf_ia32_efi.lds
c634ca
+++ b/elf_ia32_efi.lds
c634ca
@@ -15,6 +15,7 @@ SECTIONS
c634ca
    *(.gnu.linkonce.t.*)
c634ca
    _etext = .;
c634ca
   }
c634ca
+  . = ALIGN(4096);
c634ca
   .reloc :
c634ca
   {
c634ca
    *(.reloc)
c634ca
-- 
c634ca
2.30.2
c634ca