mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 23:47:24 +00:00
efi_loader: make .data section of *_efi.so files RW
When building with binutils 2.39 warnings *_efi.so has a LOAD segment with RWX permissions occur. Use SHF_WRITE | SHF_ALLOC as section flags for the .data section. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
06d514d77c
commit
4bba71ff83
1 changed files with 7 additions and 1 deletions
|
@ -7,6 +7,12 @@
|
||||||
|
|
||||||
OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64")
|
OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64")
|
||||||
OUTPUT_ARCH(aarch64)
|
OUTPUT_ARCH(aarch64)
|
||||||
|
|
||||||
|
PHDRS
|
||||||
|
{
|
||||||
|
data PT_LOAD FLAGS(3); /* SHF_WRITE | SHF_ALLOC */
|
||||||
|
}
|
||||||
|
|
||||||
ENTRY(_start)
|
ENTRY(_start)
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
|
@ -49,7 +55,7 @@ SECTIONS
|
||||||
. = ALIGN(512);
|
. = ALIGN(512);
|
||||||
_bss_end = .;
|
_bss_end = .;
|
||||||
_edata = .;
|
_edata = .;
|
||||||
}
|
} :data
|
||||||
_data_size = _edata - _data;
|
_data_size = _edata - _data;
|
||||||
.rela.dyn : { *(.rela.dyn) }
|
.rela.dyn : { *(.rela.dyn) }
|
||||||
.rela.plt : { *(.rela.plt) }
|
.rela.plt : { *(.rela.plt) }
|
||||||
|
|
Loading…
Reference in a new issue