Searched hist:"98 f1250742bbe3d91a7aaf5d66cc2cb4bdb3c0dd" (Results 1 – 1 of 1) sorted by relevance
/DragonStub/gnuefi/ |
H A D | elf_riscv64_efi.lds | 98f1250742bbe3d91a7aaf5d66cc2cb4bdb3c0dd Mon Oct 10 08:40:04 UTC 2022 Letu Ren <fantasquex@gmail.com> riscv: Fix ld RWX warning
The current ld script places .dynamic section right after .text, which results in that one LOAD segment contains both data and code. Binutils 2.39 and later will throw a warning if RWX segments exist. Code and data should be placed in different LOAD segments with different permissions. This patch adds a gap between data and code sections which is taken from the default ld script in riscv64.
Co-developed-by: Moody Liu <mooodyhunter@outlook.com> Signed-off-by: Moody Liu <mooodyhunter@outlook.com> Signed-off-by: Letu Ren <fantasquex@gmail.com>
|