]> git.ipfire.org Git - thirdparty/u-boot.git/commit
riscv: separate .data and .text sections of EFI binaries
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 25 Jan 2024 08:38:15 +0000 (09:38 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 29 Jan 2024 10:30:10 +0000 (11:30 +0100)
commit3e911b74199451fb79922515881fed8f01ac3621
treea706c88e4afde35bfccde6515160f7a5ee0f728d
parenta5c3c1ba8af8b1077e08ee4c8d1374a99782ccd2
riscv: 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

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
arch/riscv/lib/crt0_riscv_efi.S
arch/riscv/lib/elf_riscv32_efi.lds
arch/riscv/lib/elf_riscv64_efi.lds