mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
build/x86: suppress GNU ld 2.39 warning about RWX load segments
Commit68f5aac012("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@citrix.com> Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com> master commit:3eb1865ae3master date: 2022-08-11 17:45:12 +0200
This commit is contained in:
1 parent
104a54a307
commit
a075900cf7
1 file changed
+3
@@ -8,6 +8,9 @@ CFLAGS += -Werror -fno-builtin -g0 -msoft-float
|
||||
CFLAGS += -I$(BASEDIR)/include
|
||||
CFLAGS := $(filter-out -flto,$(CFLAGS))
|
||||
|
||||
LDFLAGS_DIRECT-$(shell $(LD) -v --warn-rwx-segments >/dev/null 2>&1 && echo y) := --no-warn-rwx-segments
|
||||
LDFLAGS_DIRECT += $(LDFLAGS_DIRECT-y)
|
||||
|
||||
# NB. awk invocation is a portable alternative to 'head -n -1'
|
||||
%.S: %.bin
|
||||
(od -v -t x $< | tr -s ' ' | awk 'NR > 1 {print s} {s=$$0}' | \
|
||||
|
||||