]> 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 01:19:33 +0000 (02:19 +0100)
commit8f39cbf4f30c9a8cd3f593dc2b373a289785d4b6
treeb5f3469ddd82c06c7bf1267ac0d561669fc4171a
parent13f1d1bd86476393b8a2ec2c79cb0b1637fcdec6
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
MFC after: 3 days

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