Skip to contentSkip to conversation

build: correct gas --noexecstack check

PATCH In review Jan Beulich 2 participants 2 messages Jul 12, 2023 – Aug 11, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: correct gas --noexecstack check

The check was missing an escape for the inner $, thus breaking things in the unlikely event that the underlying assembler doesn't support this option.

Fixes 62d22296a95d ("build: silence GNU ld warning about executable stacks")
xen/Makefile +1 -1
@@ -397,7 +397,7 @@ endif
 
 AFLAGS += -D__ASSEMBLY__
 
-$(call cc-option-add,AFLAGS,CC,-Wa$(comma)--noexecstack)
+$(call cc-option-add,AFLAGS,CC,-Wa$$(comma)--noexecstack)
 
 LDFLAGS-$(call ld-option,--warn-rwx-segments) += --no-warn-rwx-segments
 
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Jan Beulich

The check was missing an escape for the inner $, thus breaking things in the unlikely event that the underlying assembler doesn't support this option.

Fixes 62d22296a95d ("build: silence GNU ld warning about executable stacks")

Thanks,

Signature · 1 line
Anthony PERARD