From nobody Wed May 22 08:32:07 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vkl0R6CWgz5LDG6; Wed, 22 May 2024 08:32:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vkl0R3r3mz4jJn; Wed, 22 May 2024 08:32:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716366727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2gNh/uno41hhGPE7GnddiFK92Yd98I7R5lYZYo5Dkxc=; b=f7eZw8VRwptshIjU1NDD10LSE0i+pfzx+EnnYZfutFUyBGROTBUWqfpsXeMDKHU+KkWJjm ix/SRwK+8ypWF0slYtilPkDfskJ3qPbunkrIK6SnH9gsSCSA3ApYaHfc41yE2eO6ueN5M5 lmvkLScTtwWgBm70xRUX4LKKla5fTicOJdu0IuDXI6lIBvkH3/No3nsklMw+sdOKvorzsp k/telwLc6GGfrTKsKvJoske3k/vQhkz0HZ0LoSSkU7jqOWZwZ5/S2i507gFQ2cfHO4Ryx7 IrSuGs3l2FJd2lnDpiaoPT4QYwu72mdbJL24rmlEnTYOsKtgTeSy/ZTDMonGWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716366727; a=rsa-sha256; cv=none; b=JmJ8M+YQotL8ZxAMMSg5Tecm+2qPUUDNo198+1MeStsRo/s8qoxDPlhAI4OmJhKOi/3d+B v6af5ex+XTEUnmQha1INhqsSDLy4Dw/gOzt5wiTh9im5IxtxSgsJ6FklkFG7ZvMAnYfEU9 wpjJMzgfQJH+xiMNeOU5lqAgD5xoNAjs0+xGJlBnDLWf0n7vH/Wz96Le0EhdCyjdcT1PFq 12NWcexb3kF6fzA7uWmDe0p7NDCR68sGzKudYGQV0AiiUN9wPAKw9/7RnaQ6kr23Rbw1eM E2eRz97ayWeHS0uYJYLg7FDFaEGaO8nb5pfkO9SBht28vudX9auRXbGREH7SJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716366727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2gNh/uno41hhGPE7GnddiFK92Yd98I7R5lYZYo5Dkxc=; b=PzMs0BZbh4oGCrUFksRvoCL8+Gl5as6QxJ+NfdH1R7ZCC5uh99ogDL9wEtDrQk4p0Z0CaX 3zrVG08/8M2Nw9tt1QspE9FZCsfwxdtW7RAscPGgkLujyeK1KnfiwjlDfIELkm2QogHqZF EHhcUjq6c3PKBNxUXzLtdLuIqoXroDALnBuECLrpy851rElSFiywV5NhZdJc9YuWZ+z6O3 3zYHUgZ2D/jQ1TfP9vvC3FvbZS51MacwcngTabYIOAEWyBFVDyXhTWH4txtim6XK5N3o3g advJ+TCI7RpIFzcr3cM05MPFQPrgo0bd4iHHJl5GLoCgb0sDil72OySkUWDVSw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Vkl0R3SVmzxZk; Wed, 22 May 2024 08:32:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44M8W7ei009163; Wed, 22 May 2024 08:32:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44M8W7iK009160; Wed, 22 May 2024 08:32:07 GMT (envelope-from git) Date: Wed, 22 May 2024 08:32:07 GMT Message-Id: <202405220832.44M8W7iK009160@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: c2628accc029 - main - sys: Build arm64 per-thread SSP with GCC List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c2628accc029a07eb8ff73b6df7f7d6af194ca2d Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=c2628accc029a07eb8ff73b6df7f7d6af194ca2d commit c2628accc029a07eb8ff73b6df7f7d6af194ca2d Author: Andrew Turner AuthorDate: 2024-05-22 08:20:01 +0000 Commit: Andrew Turner CommitDate: 2024-05-22 08:20:01 +0000 sys: Build arm64 per-thread SSP with GCC It has been supported since GCC 9. It is unlikely anything older than that will build the kernel so mark it as supported by GCC. Reviewed by: brooks, jhb Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D45267 --- sys/conf/Makefile.arm64 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/conf/Makefile.arm64 b/sys/conf/Makefile.arm64 index 1505b6c2a45b..52f0f9052db3 100644 --- a/sys/conf/Makefile.arm64 +++ b/sys/conf/Makefile.arm64 @@ -30,7 +30,8 @@ CFLAGS += -DLINUX_DTS_VERSION=\"${LINUX_DTS_VERSION}\" PERTHREAD_SSP_ENABLED!= grep PERTHREAD_SSP opt_global.h || true ; echo .if !empty(PERTHREAD_SSP_ENABLED) -. if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000 +. if (${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000) || \ + ${COMPILER_TYPE} == "gcc" ARM64_SSP_CFLAGS = -mstack-protector-guard=sysreg ARM64_SSP_CFLAGS += -mstack-protector-guard-reg=sp_el0 ARM64_SSP_CFLAGS += -mstack-protector-guard-offset=0