From nobody Sat Dec 25 11:55:48 2021 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 1851818F325B; Sat, 25 Dec 2021 11:55:54 +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 4JLj7B0XS5z4lD4; Sat, 25 Dec 2021 11:55:50 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 4806A16B57; Sat, 25 Dec 2021 11:55:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BPBtmeN006804; Sat, 25 Dec 2021 11:55:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BPBtmeS006803; Sat, 25 Dec 2021 11:55:48 GMT (envelope-from git) Date: Sat, 25 Dec 2021 11:55:48 GMT Message-Id: <202112251155.1BPBtmeS006803@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: ece3eda9478d - stable/12 - llvm/powerpc64*: fix broken binaries generated by clang12 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: ece3eda9478d23eb9f0339e1b3152914c3236191 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640433351; 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=+DRUc2//QiddJxt9U/hw40Dh3K3K3oeWWH3Dl1/lQyc=; b=eJ6MkTKM73rpYyWuSTFiF2J5uJ7RrfamI6PG0kgpewCadt1ERIuyXIlFDIEeDEsxebtzvJ ScSo2YN0dekaecc1Sl1VYg5ZdzLk7tygXsis4NlKxJQmTpgRtjdO/ipS9FovBdGNze0lt9 nGt1+XFqazREdv+N5YLxd4JMtg10SSEc848nDYXVgcg5x6l05JUEEcVuxWb5WCNvpPZ3Y1 qXy72NLRdiwrmIaTSayI/Z1qEjfVLlTUf/GOVhlPiYy9YNA/UtluwzCVgbRn2bOenBS9vW qN7njbQqMJSjobQeyejpMJw0A5Qw0g5Dol+VbuzhjJG78hvQ1TB9ZE1tvFQ+HA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640433351; a=rsa-sha256; cv=none; b=lpi/Mu+TxTgK0ntwRsY4PMZiyylc+f/gEmEPhwtNgkbdgZYZlXyHp8k8TuOF5AYnDH8wPU qy5El8AtZ14vQ3oDVmHt244vRij/CLT3XK1QBE1DQ/2ThzidWGzncZZW1VXjNJdeywaobs wXkSt8pyxdoRBfrBqL2yBLHMyz1CBHoIgA/7jNrghJQibPLAtpRCZtSwc69t4+GyuNpSCx 4aRJQzzBvgkdeBzAEU6bMo6NdSYuPtbi2VgMYP/qZGZvO9eh1eDPZNCA9ig+MbK0MX6bsW yHeLDBLFjF6x4esHhTl82eUZgBPd7/FiKzwQRooMLvtTF7ukBk/WX9pe1dNynw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=ece3eda9478d23eb9f0339e1b3152914c3236191 commit ece3eda9478d23eb9f0339e1b3152914c3236191 Author: Alfredo Dal'Ava Junior AuthorDate: 2021-08-27 14:47:11 +0000 Commit: Dimitry Andric CommitDate: 2021-12-25 11:51:20 +0000 llvm/powerpc64*: fix broken binaries generated by clang12 Amends LLVM commit 2518433f861fcb877d0a7bdd9aec1aec1f77505a that was pointed as the source of regression on LLVM12. This affects powerpc64*, making binaries crash with segmentation fault due to bad code generation around "__stack_chk_guard" Root cause and/or proper fix is under investigation by: https://bugs.llvm.org/show_bug.cgi?id=51590 Reviewed by: dim MFC after: 2 days Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br) Differential Revision: https://reviews.freebsd.org/D31698 (cherry picked from commit 9a4d48a645a7a3ebee05fae25afd154a132b638a) --- contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp b/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp index 28c8bd0a7ded..74fea674f962 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -1961,7 +1961,8 @@ void TargetLoweringBase::insertSSPDeclarations(Module &M) const { GlobalVariable::ExternalLinkage, nullptr, "__stack_chk_guard"); if (TM.getRelocationModel() == Reloc::Static && - !TM.getTargetTriple().isWindowsGNUEnvironment()) + !TM.getTargetTriple().isWindowsGNUEnvironment() && + !(TM.getTargetTriple().isPPC64() && TM.getTargetTriple().isOSFreeBSD())) GV->setDSOLocal(true); } }