Skip to content

Commit

Permalink
arm64 lds: move 64K gap to reloc
Browse files Browse the repository at this point in the history
The PE32 header means code ends at end of text, unlike
ELF where its mostly dynamic

Signed-off-by: Callum Farmer <[email protected]>
  • Loading branch information
gmbr3 authored and superm1 committed Dec 16, 2023
1 parent 43b5866 commit d7a2f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions efi/lds/elf_aarch64_efi.lds
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SECTIONS
} =0
_text_vsize = _evtext - _text;
_text_size = _etext - _text;
. = ALIGN(4096);
. = ALIGN(65536);
_reloc = .;
.reloc : {
*(.reloc)
Expand All @@ -28,7 +28,7 @@ SECTIONS
} =0
_reloc_vsize = _evreloc - _reloc;
_reloc_size = _ereloc - _reloc;
. = ALIGN(65536);
. = ALIGN(4096);
_data = .;
.dynamic : { *(.dynamic) }
. = ALIGN(4096);
Expand Down

0 comments on commit d7a2f25

Please sign in to comment.