mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
856664f774
commit
2d514678a3
1 file changed
+7
-1
@@ -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
|
||||
|
||||