scripts,linker.ld: supress waring about RWX segment from ld

* `xxx has a LOAD segment with RWX permissions`
This commit is contained in:
Zihao Yu 2022-11-09 16:21:12 +08:00
parent 024441cbed
commit 31a5a10f48

View file

@ -1,4 +1,5 @@
ENTRY(_start) ENTRY(_start)
PHDRS { text PT_LOAD; data PT_LOAD; }
SECTIONS { SECTIONS {
/* _pmem_start and _entry_offset are defined in LDFLAGS */ /* _pmem_start and _entry_offset are defined in LDFLAGS */
@ -6,7 +7,7 @@ SECTIONS {
.text : { .text : {
*(entry) *(entry)
*(.text*) *(.text*)
} } : text
etext = .; etext = .;
_etext = .; _etext = .;
.rodata : { .rodata : {
@ -14,7 +15,7 @@ SECTIONS {
} }
.data : { .data : {
*(.data) *(.data)
} } : data
edata = .; edata = .;
_data = .; _data = .;
.bss : { .bss : {