[PATCH 1/1] riscv: separate .data and .text sections of EFI binaries
Tom Rini
trini at konsulko.com
Thu Jan 25 00:23:45 CET 2024
On Thu, Jan 25, 2024 at 12:08:57AM +0100, Heinrich Schuchardt wrote:
> EFI binaries should not contain sections that are both writable and
> executable. Separate the RX .text section from the RW .data section
>
> Adjust the section alignment to 4096 bytes.
>
> Fix conflicting SPDX license information in linker scripts introduced by
> commit 7215787c4ea4 ("SPDX: Convert single license tags to Linux Kernel
> style").
>
> Fixes: 7215787c4ea4 ("SPDX: Convert single license tags to Linux Kernel style")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> 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(-)
Lets not do two distinct changes like this in a single commit, thanks.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240124/a020ba1d/attachment.sig>
More information about the U-Boot
mailing list