]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
llvm: make sure to use ELFv2 ABI on powerpc64
authorPiotr Kubaj <pkubaj@FreeBSD.org>
Thu, 16 Feb 2023 23:49:43 +0000 (00:49 +0100)
committerPiotr Kubaj <pkubaj@FreeBSD.org>
Tue, 21 Feb 2023 13:38:43 +0000 (14:38 +0100)
commit50796dea719a4ca2e26376eaab67eafd94532fee
tree1ec9f09931ce8237aaab4e28b3adea67ea20e2b3
parente28e779b1f4ebef32070e06854336cdf15ad095d
llvm: make sure to use ELFv2 ABI on powerpc64

Currently LLVM is more or less set up to use ELFv2, but it still defaults to
ELFv1 in some places. This causes lld to generate broken binaries when used
with LTO.

PR: 269455
Approved by: dim, re (cpercival)
MFC after: 3 days

(cherry picked from commit a1ffc2fe9ce54a498c410dcab86495569dbaa7cc)
(cherry picked from commit 8f39cbf4f30c9a8cd3f593dc2b373a289785d4b6)
contrib/llvm-project/clang/lib/Basic/Targets/PPC.h
contrib/llvm-project/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp