From d7a2f2581bc193c49d0bf7eeaeb53598802f7543 Mon Sep 17 00:00:00 2001 From: Callum Farmer Date: Tue, 28 Nov 2023 16:40:16 +0000 Subject: [PATCH] arm64 lds: move 64K gap to reloc The PE32 header means code ends at end of text, unlike ELF where its mostly dynamic Signed-off-by: Callum Farmer --- efi/lds/elf_aarch64_efi.lds | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/efi/lds/elf_aarch64_efi.lds b/efi/lds/elf_aarch64_efi.lds index 4bf9708..782afd4 100644 --- a/efi/lds/elf_aarch64_efi.lds +++ b/efi/lds/elf_aarch64_efi.lds @@ -18,7 +18,7 @@ SECTIONS } =0 _text_vsize = _evtext - _text; _text_size = _etext - _text; - . = ALIGN(4096); + . = ALIGN(65536); _reloc = .; .reloc : { *(.reloc) @@ -28,7 +28,7 @@ SECTIONS } =0 _reloc_vsize = _evreloc - _reloc; _reloc_size = _ereloc - _reloc; - . = ALIGN(65536); + . = ALIGN(4096); _data = .; .dynamic : { *(.dynamic) } . = ALIGN(4096);