From nobody Sun Mar 27 01:14:50 2022 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 8D3441A44406; Sun, 27 Mar 2022 01:14:50 +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 4KQyY62rg9z4sgH; Sun, 27 Mar 2022 01:14:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648343690; 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=ip/Dt9It/Vrg/zFyMbXwhUU7E5kKkVkkKAMV2cdJbBw=; b=hUzkePiJzqJAJ08DJES6ofHSXvj4o34mPiQC+9uvwrVMPm+s8SNCqXtc0GBWCECHY9c+GU 6EofBw7crh+6jmzYq8vS4sfvWKipsnRJBcm0igricV0iusE5GJU+nrTm5lxnqT1wgXaAs1 3YHDT+9GyZtbfJwNl/fXew26ceqwG+254M/bFF2mJJSpJOJ2rjO8o5Dep1JBM/Cy/CyeQ0 XmlEJjVgah9GgLJDwgzgCRNJc8QjgM3L57httHkdqLQNh9zKB1pooRwRk8lxVwyQwf5zVM qLFYjoF/5ugf2ycF+xf+sG6E9CxBz0W8rbULagYLQicQmiHBLJSpcqMZuMzAHA== 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 40B5B3DD6; Sun, 27 Mar 2022 01:14:50 +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 22R1EoNw002133; Sun, 27 Mar 2022 01:14:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22R1Eoa3002132; Sun, 27 Mar 2022 01:14:50 GMT (envelope-from git) Date: Sun, 27 Mar 2022 01:14:50 GMT Message-Id: <202203270114.22R1Eoa3002132@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Piotr Kubaj Subject: git: 56a4f560d429 - stable/13 - Merge LLVM commit c03fdd340356 to fix lang/rust on powerpc 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: pkubaj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 56a4f560d429188625de4075983ec380bf8f7057 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648343690; 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=ip/Dt9It/Vrg/zFyMbXwhUU7E5kKkVkkKAMV2cdJbBw=; b=urjebqzBggRNLsY0Box8+I27/h5IYDZejcpEI0KuB+w+v0nwacEWADgFEUpVWDg78nBCGk IKWHuCwagcWNaRWBhsNLDXSlb5Y54nO8R6+zNtUIq3e/Wm0QrZP/gNsSno1zzQfJO2Y+gQ 6hljBb1mDJKHcrt4rXXchpGC8AiRIxyumY96gyotQOuIiDCu/skmxpYZUs7o35K4Hu98xw CaRfL+YO6qpaCNruTkNILLf/re+tcQVp9gxvXaOzdYSWgHcP3sk0sxp3rvUqGNs/IMXG5u KjT7H6LOtdTZH5S04nGOZyL5EqZ4F0Ah7Wb79xeJpNmWK92nbO+SoX6m6XZ6Ig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648343690; a=rsa-sha256; cv=none; b=xAsQBiHkYR33HQolAMeTWytxb2ZQ7LVh8Y3atcEOu6c1PYydgXGV/nFxQBevZpk/xtPP8j m2yxpHQhj92FOGacFhuVqE+NLgULRg5R3zJLT/GOnsE9hqdRBd6aDudpPfZYR7bDyMUrHh RsITF62Ql6ZB+YH0/a1yG55UefVPbTZHvXR8d3GPBmE8ZI3547lUQhC7LrGCJSk7XndRad wUWPP4270uvmVCcWNRSyW1HX7ZShssEoP5HUYXF2PVUqUuqhuW5Xhbnw1XaAKEtjc0esFd 1GxHGwPsn/1WV6ilHBekg/FDKGtMaOpCUQLX5N+OrdxvhivmaBMtEJiOGSbEww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by pkubaj (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=56a4f560d429188625de4075983ec380bf8f7057 commit 56a4f560d429188625de4075983ec380bf8f7057 Author: Piotr Kubaj AuthorDate: 2022-03-24 00:30:44 +0000 Commit: Piotr Kubaj CommitDate: 2022-03-27 01:14:34 +0000 Merge LLVM commit c03fdd340356 to fix lang/rust on powerpc Summary: Without it building rust fails with: ld: error: CallSiteSplitting.cpp:(function llvm::SmallVectorImpl, 2u> > >::operator=(llvm::SmallVectorImpl, 2u> > >&&): .text._ZN4llvm15SmallVectorImplINSt3__14pairIPNS_10BasicBlockENS_11SmallVectorINS2_IPNS_8ICmpInstEjEELj2EEEEEEaSEOSB_+0xB0): relocation R_PPC_PLTREL24 out of range: -33582208 is not in [-33554432, 33554431] Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D34652 MFC after: 3 days (cherry picked from commit 9b597132aea7d75810ca90258022f81d07971444) --- contrib/llvm-project/lld/ELF/Relocations.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/llvm-project/lld/ELF/Relocations.cpp b/contrib/llvm-project/lld/ELF/Relocations.cpp index 537859f9e0b5..eb3d115266a6 100644 --- a/contrib/llvm-project/lld/ELF/Relocations.cpp +++ b/contrib/llvm-project/lld/ELF/Relocations.cpp @@ -1966,7 +1966,8 @@ std::pair ThunkCreator::getThunk(InputSection *isec, // out in the relocation addend. We compensate for the PC bias so that // an Arm and Thumb relocation to the same destination get the same keyAddend, // which is usually 0. - int64_t keyAddend = rel.addend + getPCBias(rel.type); + const int64_t pcBias = getPCBias(rel.type); + const int64_t keyAddend = rel.addend + pcBias; // We use a ((section, offset), addend) pair to find the thunk position if // possible so that we create only one thunk for aliased symbols or ICFed @@ -1985,7 +1986,7 @@ std::pair ThunkCreator::getThunk(InputSection *isec, if (isThunkSectionCompatible(isec, t->getThunkTargetSym()->section) && t->isCompatibleWith(*isec, rel) && target->inBranchRange(rel.type, src, - t->getThunkTargetSym()->getVA(rel.addend))) + t->getThunkTargetSym()->getVA(-pcBias))) return std::make_pair(t, false); // No existing compatible Thunk in range, create a new one