From 65b49ae06483a221b269b622bb3d9c748b7890d6 Mon Sep 17 00:00:00 2001 From: Matthias Rosenfelder Date: Wed, 23 Aug 2023 22:53:00 +0200 Subject: [PATCH] elfloader: move the data of ELFloader together The driver list section was part of the "*(COMMON)" section that was placed *after* the image payload (kernel, rootserver etc.). The driver list is data and should be placed adjacent to other data belonging to the ELFloader. This is clearly visible in the mapfile (which you don't generate). The driver list entry is present in the aarch32 linker script for EFI, why was it missing for 64 bit? No functional change. Signed-off-by: Matthias Rosenfelder --- elfloader-tool/src/binaries/efi/gnuefi/elf_aarch64_efi.lds | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elfloader-tool/src/binaries/efi/gnuefi/elf_aarch64_efi.lds b/elfloader-tool/src/binaries/efi/gnuefi/elf_aarch64_efi.lds index 33513349..5ee11d7e 100644 --- a/elfloader-tool/src/binaries/efi/gnuefi/elf_aarch64_efi.lds +++ b/elfloader-tool/src/binaries/efi/gnuefi/elf_aarch64_efi.lds @@ -31,6 +31,9 @@ SECTIONS *(.data) *(.data1) *(.data.*) + __start__driver_list = .; + *(_driver_list) + __stop__driver_list = .; *(.got.plt) *(.got)