From patchwork Wed May 24 06:44:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 13253375 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 981A4C7EE32 for ; Wed, 24 May 2023 06:46:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239393AbjEXGqs (ORCPT ); Wed, 24 May 2023 02:46:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235788AbjEXGpw (ORCPT ); Wed, 24 May 2023 02:45:52 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0F0C18D; Tue, 23 May 2023 23:44:50 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1684910688; bh=O1oDBEfZrMirjlbecuPJrH574m6Ohdf1ItbhTKlrEjI=; h=From:Subject:Date:To:Cc:From; b=ht2yqTZeKv6LzUZha6EPeYtNgnQRnSMKkCA3G2s4yGzdGgvtCc3O+Wan3e1ulQ83c 5hCznMkRAXJtg0maOrsfdhdZx0HByzK8GLS/YPQs1U7yI3vZkvH5po12GhNTTF+0ze hGWJUTVA8Iz2jNwZPB5fYSbOaIZl8uc9hZNbqPrQ= Subject: [PATCH 0/3] tools/nolibc: stack protector compatibility fixes Date: Wed, 24 May 2023 08:44:41 +0200 Message-Id: <20230523-nolibc-stackprotector-gcc9-v1-0-3e4804235d50@weissschuh.net> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAFmybWQC/x2NQQrCMBAAv1L27EKaorZ+RTwk27VdDEnZjSKU/ t3gceYws4OxChvcuh2UP2JScoP+1AGtIS+MMjcG7/zgzn7AXJJEQquBXpuWylSL4kI04cgc596 F63QZoQViMMaoIdPaEvmdUpOb8lO+/+P9cRw/ZUPgcoEAAAA= To: Willy Tarreau , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Zhangjin Wu , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684910688; l=1233; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=O1oDBEfZrMirjlbecuPJrH574m6Ohdf1ItbhTKlrEjI=; b=/4nb//vyfjDcXpmlXxL6cXxCgsjdFwq/fOL3SDCndBD3Ho39yWGtHbc5aYy8INfLQ+9gqYixE Xdusi0/HrzoBOe0uylH/Trhw7P0CNYYax0D1nidOclWIShxD6GWZrMp X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Two fixes for nolibc to * allow users to explicitly disable (or theoretically enable) when building the tests * fix stackprotectors on GCC < 10. Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (3): Revert "EXP: tools/nolibc: partially revert stackprotector compiler flags" selftests/nolibc: allow disabling of stackprotector support tools/nolibc: fix segfaults on compilers without attribute no_stack_protector tools/include/nolibc/arch-aarch64.h | 2 +- tools/include/nolibc/arch-arm.h | 2 +- tools/include/nolibc/arch-i386.h | 2 +- tools/include/nolibc/arch-loongarch.h | 2 +- tools/include/nolibc/arch-mips.h | 2 +- tools/include/nolibc/arch-riscv.h | 2 +- tools/include/nolibc/arch-x86_64.h | 2 +- tools/include/nolibc/compiler.h | 10 ++++++++++ tools/include/nolibc/stackprotector.h | 2 +- tools/testing/selftests/nolibc/Makefile | 13 ++----------- 10 files changed, 20 insertions(+), 19 deletions(-) --- base-commit: 8213b0cdb51d1f66af713e00fd0dff3c2eb47636 change-id: 20230523-nolibc-stackprotector-gcc9-8eebd10a7968 Best regards,