From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1528E15800F for ; Thu, 2 Feb 2023 17:40:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2CEC8E077A; Thu, 2 Feb 2023 17:40:31 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 16300E077A for ; Thu, 2 Feb 2023 17:40:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 129A033C1EA for ; Thu, 2 Feb 2023 17:40:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 60308531 for ; Thu, 2 Feb 2023 17:40:28 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1675357433.47c9af8ca53f3612be6e4ddfb0090644cde4d94a.sam@gentoo> Subject: [gentoo-commits] proj/crossdev:master commit in: / X-VCS-Repository: proj/crossdev X-VCS-Files: crossdev X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 47c9af8ca53f3612be6e4ddfb0090644cde4d94a X-VCS-Branch: master Date: Thu, 2 Feb 2023 17:40:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fad573d6-82ae-45c0-912f-c3e179e5f47f X-Archives-Hash: 43f6b80723af6421c0d50478239dc70c commit: 47c9af8ca53f3612be6e4ddfb0090644cde4d94a Author: Sam James gentoo org> AuthorDate: Thu Feb 2 17:03:53 2023 +0000 Commit: Sam James gentoo org> CommitDate: Thu Feb 2 17:03:53 2023 +0000 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=47c9af8c crossdev: disable SSP for freestanding/no libc targets Otherwise, we end up with a mess like: ``` [...] /usr/libexec/gcc/arm-none-eabi/ld: /usr/lib/gcc/arm-none-eabi/12/../../../../arm-none-eabi/lib/libg.a(libc_a-stack_protector.o): in function `__stack_chk_fail': stack_protector.c:(.text.__stack_chk_fail+0x60): undefined reference to `_exit' [...] ``` Signed-off-by: Sam James gentoo.org> crossdev | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crossdev b/crossdev index 902d9dc..bd13f7f 100755 --- a/crossdev +++ b/crossdev @@ -334,10 +334,11 @@ parse_target() { LPKG="newlib" KPKG="[none]" STAGE_DEFAULT=${STAGE_LIBC} - GMASK+=" hardened" + GMASK+=" default-stack-clash-protection hardened ssp" GUSE+=" cxx -openmp" #489798 GUSE+=" -fortran" #589672, needs syscalls GUSE+=" -hardened" #687598, needs -fstack-check=specific support + GUSE+=" -default-stack-clash-protection -ssp" # SSP isn't supported for freestanding anyway MULTILIB_USE="yes" #407275 WITH_DEF_HEADERS="no" ;;