[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] hvmloader: suppress GNU ld 2.39 warning about RWX load segments
commit 2d514678a3b6eacfcee2be0aeb0e45547e4d9100 Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Mon Mar 4 10:43:54 2024 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Mar 4 10:43:54 2024 +0100 hvmloader: suppress GNU ld 2.39 warning about RWX load segments This aspect is simply meaningless for this component. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- tools/firmware/hvmloader/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/firmware/hvmloader/Makefile b/tools/firmware/hvmloader/Makefile index e5de1ade17..84cba171cd 100644 --- a/tools/firmware/hvmloader/Makefile +++ b/tools/firmware/hvmloader/Makefile @@ -20,6 +20,8 @@ XEN_ROOT = $(CURDIR)/../../.. include $(XEN_ROOT)/tools/firmware/Rules.mk +ld-option = $(shell if $(LD) -v $(1) >/dev/null 2>&1; then echo y; else echo n; fi) + # SMBIOS spec requires format mm/dd/yyyy SMBIOS_REL_DATE ?= $(shell date +%m/%d/%Y) @@ -59,6 +61,10 @@ ROMBIOS_ROM := $(ROMBIOS_DIR)/BIOS-bochs-latest ROMS += $(ROMBIOS_ROM) $(STDVGA_ROM) $(CIRRUSVGA_ROM) endif +# Suppress the warning about LOAD segments with RWX permissions, as what we +# build isn't a normal user-mode executable. +LDFLAGS-$(call ld-option,--warn-rwx-segments) := --no-warn-rwx-segments + .PHONY: all all: hvmloader @@ -85,7 +91,7 @@ $(DSDT_FILES): acpi build.o: $(DSDT_FILES) hvmloader: $(OBJS) hvmloader.lds - $(LD) $(LDFLAGS_DIRECT) -N -T hvmloader.lds -o $@ $(OBJS) + $(LD) $(LDFLAGS_DIRECT) $(LDFLAGS-y) -N -T hvmloader.lds -o $@ $(OBJS) roms.inc: $(ROMS) echo "/* Autogenerated file. DO NOT EDIT */" > $@.new -- generated by git-patchbot for /home/xen/git/xen.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |