Skip to content

Commit

Permalink
elfloader: move the data of ELFloader together
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mro-github-12345 authored and Andy Bui committed Feb 25, 2024
1 parent dea6924 commit 65b49ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions elfloader-tool/src/binaries/efi/gnuefi/elf_aarch64_efi.lds
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ SECTIONS
*(.data)
*(.data1)
*(.data.*)
__start__driver_list = .;
*(_driver_list)
__stop__driver_list = .;
*(.got.plt)
*(.got)

Expand Down

0 comments on commit 65b49ae

Please sign in to comment.