]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: separate .data and .text sections of EFI binaries
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 26 Feb 2024 21:24:08 +0000 (22:24 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 28 Feb 2024 13:39:27 +0000 (14:39 +0100)
commit97da9aea78ab71e92778649bf9d1071f30e260f0
treef64a6b033ce93277c8458d3f5ca577f5620486a5
parent3b3d61df3b2b31b0491c67090a30cd67e44c342a
arm: separate .data and .text sections of EFI binaries

EFI binaries should not contain sections that are both writable and
executable. Separate the RX .text section from the RW .data section.

We currently don't created relocation sections (.rel.*) for our EFI
binaries. Anyway these would have to be converted to PE/COFF relocations.
Enumerate them under DISCARD and add a comment.

Correct the characteristics of the sections.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
arch/arm/lib/crt0_arm_efi.S
arch/arm/lib/elf_arm_efi.lds