Message ID | 20250318173547.59475-8-roger.pau@citrix.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | x86: generate xen.efi image with no write-execute sections | expand |
On 18/03/2025 5:35 pm, Roger Pau Monne wrote: > After having removed the -N option from the linker script invocation, and > also having removed the merging of the .init.text and .init.data sections > on x86, there should be no remaining RWX load segments. Do not silence the > GNU LD warning. > > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
diff --git a/xen/Makefile b/xen/Makefile index 58fafab33d6f..989285df276e 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -415,8 +415,6 @@ AFLAGS += -D__ASSEMBLY__ $(call cc-option-add,AFLAGS,CC,-Wa$$(comma)--noexecstack) -LDFLAGS-$(call ld-option,--warn-rwx-segments) += --no-warn-rwx-segments - CFLAGS += $(CFLAGS-y) # allow extra CFLAGS externally via EXTRA_CFLAGS_XEN_CORE CFLAGS += $(EXTRA_CFLAGS_XEN_CORE)
After having removed the -N option from the linker script invocation, and also having removed the merging of the .init.text and .init.data sections on x86, there should be no remaining RWX load segments. Do not silence the GNU LD warning. Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> --- xen/Makefile | 2 -- 1 file changed, 2 deletions(-)