diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-01-08 19:00:47 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-01-13 09:09:07 +0100 |
commit | 7e808fcc97ff3fe2f16d178e34f9811368696276 (patch) | |
tree | 96e287a417aee3981923c0325376c3d2e7d05ccd | |
parent | 0763c02eee5ee2be4d291719e7d72f7ce5ef33bd (diff) | |
download | u-boot-7e808fcc97ff3fe2f16d178e34f9811368696276.tar.gz |
efi_loader: add .rela sections to .text on arm64
_relocate() needs the information in .rela* for self relocation
of the EFI binary.
Fixes: d7ddeb66a6ce ("efi_loader: fix building aarch64 EFI binaries")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r-- | arch/arm/lib/elf_aarch64_efi.lds | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/lib/elf_aarch64_efi.lds b/arch/arm/lib/elf_aarch64_efi.lds index 3e3da47d6a9..5dd98091698 100644 --- a/arch/arm/lib/elf_aarch64_efi.lds +++ b/arch/arm/lib/elf_aarch64_efi.lds @@ -28,6 +28,10 @@ SECTIONS *(.dynamic); . = ALIGN(512); } + .rela.dyn : { *(.rela.dyn) } + .rela.plt : { *(.rela.plt) } + .rela.got : { *(.rela.got) } + .rela.data : { *(.rela.data) *(.rela.data*) } _etext = .; _text_size = . - _text; . = ALIGN(4096); @@ -57,10 +61,6 @@ SECTIONS _edata = .; } :data _data_size = _edata - _data; - .rela.dyn : { *(.rela.dyn) } - .rela.plt : { *(.rela.plt) } - .rela.got : { *(.rela.got) } - .rela.data : { *(.rela.data) *(.rela.data*) } . = ALIGN(4096); .dynsym : { *(.dynsym) } |