Skip to content

Commit

Permalink
Fix a broken file header on ia32
Browse files Browse the repository at this point in the history
Commit c6281c6 needs to have included a ". = ALIGN(4096)"
directive before .reloc, but fails to do so.

As a result, binutils, which does not care about the actual binary
format's constraints in any way, does not enforce the section alignment,
and it will not load.

Signed-off-by: Peter Jones <pjones@redhat.com>
  • Loading branch information
vathpela committed Apr 9, 2021
1 parent a0f7015 commit 5b3ca0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elf_ia32_efi.lds
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ SECTIONS
*(.gnu.linkonce.t.*)
_etext = .;
}
. = ALIGN(4096);
.reloc :
{
*(.reloc)
Expand Down

0 comments on commit 5b3ca0d

Please sign in to comment.