[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] build: silence future GNU ld warning about executable stacks


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 6 May 2022 15:38:17 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=f8GNy0NWX6iFubC+WKy9yx2VYFaxzWyaihBYAh3/6F0=; b=N2wVBOF+SrwaLkKmD/1hQc80JsMm46mnESls1GhlFtXo+bmFRutpZ1FvcHqPrfnIJZTeo7b9bJw3IGWtTjWhuE8I0L+MzeeONYw9WlQIfTX5aMQXcWC3Xabq3eJGPL3/K8eMqkxDahMy+f0O0GAkxIQ4vlhzgVm0E3snyfUhOVncfQJDm0NS8Q63b8kpcjdAMN9WgV0WBJ2940r5h7TFon7nUmBS1oFIMGyEHLqZNzC/3Nwqpe2UNR4X4HjZkymmxqrZtA6z/jGimh2cBL++TtllKd+ZZx5mW6I8IXSncEXILhJ7RmgsTF2POZD8kgW4bf/3VWKQpKBOFq1HczbdaA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MLwUsErMnGmApkLGb8SqvxqUEmGM0fhi73v+xETWkCkbf3lexPWT9grTdKKGsjLFPgxaPUXTt2kRUzZmnhA3ApG4D31vIVMpBMxofyoUqPOU0tXncwZBo3jzfixN5wnwrz05LxJVLvpyZkbYZ/q/UXpSx6pvsRM6hyyAs0E7d/OjIG66l4kyvjXk3UhcihXsgIazEHkvYbOOjD1TNnM+tlfqOPFe75D0Aft96VQfUqWnmW6nptxQErjmj8YSZhgGVWKdcwu3df8mfJViQFpo75U/bz4aCqlMEH7XL/rKg4ArxnP+pXRBDfrwqKTvs1+w6tJdJxoRmL48ACk5c1KUdQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Fri, 06 May 2022 13:38:25 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

While for C files the compiler is supposed to arrange for emitting
respective information, for assembly sources we're responsible ourselves.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/Makefile
+++ b/xen/Makefile
@@ -397,6 +397,8 @@ endif
 
 AFLAGS += -D__ASSEMBLY__
 
+$(call cc-option-add,AFLAGS,CC,-Wa$(comma)--noexecstack)
+
 LDFLAGS-$(call ld-option,--warn-rwx-segments) += --no-warn-rwx-segments
 
 CFLAGS += $(CFLAGS-y)




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.