[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] build/x86: suppress GNU ld 2.39 warning about RWX load segments
commit 3eb1865ae305772b558757904d81951e31de43de Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Thu Aug 11 17:45:12 2022 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu Aug 11 17:45:12 2022 +0200 build/x86: suppress GNU ld 2.39 warning about RWX load segments Commit 68f5aac012b9 ("build: suppress future GNU ld warning about RWX load segments") didn't quite cover all the cases: Apparently I missed ones in the building of 32-bit helper objects because of only looking at incremental builds (where those wouldn't normally be re-built). Clone the workaround there to the specific Makefile in question. Reported-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/boot/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/x86/boot/Makefile b/xen/arch/x86/boot/Makefile index a5dd094836..1fb0ca02e8 100644 --- a/xen/arch/x86/boot/Makefile +++ b/xen/arch/x86/boot/Makefile @@ -24,6 +24,9 @@ CFLAGS_x86_32 += -I$(srctree)/include $(head-srcs:.S=.o): CFLAGS_stack_boundary := $(head-srcs:.S=.o): XEN_CFLAGS := $(CFLAGS_x86_32) -fpic +LDFLAGS_DIRECT-$(call ld-option,--warn-rwx-segments) := --no-warn-rwx-segments +LDFLAGS_DIRECT += $(LDFLAGS_DIRECT-y) + $(head-srcs): %.S: %.bin (od -v -t x $< | tr -s ' ' | awk 'NR > 1 {print s} {s=$$0}' | \ sed 's/ /,0x/g' | sed 's/,0x$$//' | sed 's/^[0-9]*,/ .long /') >$@ -- generated by git-patchbot for /home/xen/git/xen.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |