From 31a5a10f4858096751329b5a9b8a671ba819b1ea Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Wed, 9 Nov 2022 16:21:12 +0800 Subject: [PATCH] scripts,linker.ld: supress waring about RWX segment from ld * `xxx has a LOAD segment with RWX permissions` --- scripts/linker.ld | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/linker.ld b/scripts/linker.ld index 7b4a91d..8dfe8d7 100644 --- a/scripts/linker.ld +++ b/scripts/linker.ld @@ -1,4 +1,5 @@ ENTRY(_start) +PHDRS { text PT_LOAD; data PT_LOAD; } SECTIONS { /* _pmem_start and _entry_offset are defined in LDFLAGS */ @@ -6,7 +7,7 @@ SECTIONS { .text : { *(entry) *(.text*) - } + } : text etext = .; _etext = .; .rodata : { @@ -14,7 +15,7 @@ SECTIONS { } .data : { *(.data) - } + } : data edata = .; _data = .; .bss : {