All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] efi: arm,arm64: Fix relocations from not being loaded
@ 2022-10-31 20:01 Patrick Zacharias
  2022-11-06  9:20 ` Heinrich Schuchardt
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick Zacharias @ 2022-10-31 20:01 UTC (permalink / raw)
  To: u-boot

Prior to this commit, the relocations would not get loaded by the efi 
loader.

This lead to none of the relocations being applied.

Signed-off-by: Fighter19 <1475802+Fighter19@users.noreply.github.com>
---
  arch/arm/lib/elf_aarch64_efi.lds | 2 +-
  arch/arm/lib/elf_arm_efi.lds     | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/lib/elf_aarch64_efi.lds 
b/arch/arm/lib/elf_aarch64_efi.lds
index c0604dad46..1982864d17 100644
--- a/arch/arm/lib/elf_aarch64_efi.lds
+++ b/arch/arm/lib/elf_aarch64_efi.lds
@@ -46,12 +46,12 @@ SECTIONS
          *(COMMON)
          . = ALIGN(512);
          _bss_end = .;
-        _edata = .;
      }
      .rela.dyn : { *(.rela.dyn) }
      .rela.plt : { *(.rela.plt) }
      .rela.got : { *(.rela.got) }
      .rela.data : { *(.rela.data) *(.rela.data*) }
+    _edata = .;
      _data_size = . - _etext;

      . = ALIGN(4096);
diff --git a/arch/arm/lib/elf_arm_efi.lds b/arch/arm/lib/elf_arm_efi.lds
index 767ebda635..c1b58a8033 100644
--- a/arch/arm/lib/elf_arm_efi.lds
+++ b/arch/arm/lib/elf_arm_efi.lds
@@ -46,12 +46,12 @@ SECTIONS
          *(COMMON)
          . = ALIGN(512);
          _bss_end = .;
-        _edata = .;
      }
      .rel.dyn : { *(.rel.dyn) }
      .rel.plt : { *(.rel.plt) }
      .rel.got : { *(.rel.got) }
      .rel.data : { *(.rel.data) *(.rel.data*) }
+    _edata = .;
      _data_size = . - _etext;

      /DISCARD/ : {
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-11-07 16:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-31 20:01 [PATCH] efi: arm,arm64: Fix relocations from not being loaded Patrick Zacharias
2022-11-06  9:20 ` Heinrich Schuchardt
2022-11-06 17:03   ` Patrick Zacharias
2022-11-06 18:36     ` Patrick Zacharias
2022-11-06 22:02       ` Heinrich Schuchardt
2022-11-06 21:37     ` Heinrich Schuchardt
2022-11-07 16:47       ` Patrick Zacharias

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.