EFI binaries should not contain sections that are both writable and executable. Separate the RX .text section from the RW .data section
Fix conflicting SPDX license information in linker scripts introduced by commit 7215787c4ea4 ("SPDX: Convert single license tags to Linux Kernel style"). Change the alignment of the relocation code in EFI binaries to match page boundaries. v2: split patches Heinrich Schuchardt (3): riscv: conflicting SPDX license linker scripts riscv: page align EFI binary section riscv: separate .data and .text sections of EFI binaries arch/riscv/lib/crt0_riscv_efi.S | 39 ++++++++++++++++++++++-------- arch/riscv/lib/elf_riscv32_efi.lds | 26 ++++++++++++-------- arch/riscv/lib/elf_riscv64_efi.lds | 26 ++++++++++++-------- 3 files changed, 61 insertions(+), 30 deletions(-) -- 2.43.0