diff options
author | Zach van Rijn <me@zv.io> | 2024-12-06 19:22:35 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2024-12-06 19:22:37 +0000 |
commit | 57762abcbf59410fc77ac48a3027bdee08c9291f (patch) | |
tree | 089c78d5e2738f92acc7dd22fbc18daa53bfd480 /bootstrap/llvm18/musl-ppc64-elfv2.patch | |
parent | cf1b9041544c3a70181778535ba310653593e9c3 (diff) | |
download | packages-57762abcbf59410fc77ac48a3027bdee08c9291f.tar.gz packages-57762abcbf59410fc77ac48a3027bdee08c9291f.tar.bz2 packages-57762abcbf59410fc77ac48a3027bdee08c9291f.tar.xz packages-57762abcbf59410fc77ac48a3027bdee08c9291f.zip |
bootstrap/llvm18: replace symlink with files.
Note: default_llvm="no"
Effectively reverts 1c7549b7bb4dcf1142d6c19876841ccc93fcafd5
since 'abuild' uses readlink to derive repository information.
The user/llvm18 package is free to be updated independently.
Diffstat (limited to 'bootstrap/llvm18/musl-ppc64-elfv2.patch')
-rw-r--r-- | bootstrap/llvm18/musl-ppc64-elfv2.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/bootstrap/llvm18/musl-ppc64-elfv2.patch b/bootstrap/llvm18/musl-ppc64-elfv2.patch new file mode 100644 index 000000000..49f6e5702 --- /dev/null +++ b/bootstrap/llvm18/musl-ppc64-elfv2.patch @@ -0,0 +1,28 @@ +From 750d323a6060ad92c3d247f85d6555041f55b4a5 Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" <AWilcox@Wilcox-Tech.com> +Date: Thu, 4 Oct 2018 15:26:59 -0500 +Subject: [PATCH] Add support for powerpc64-*-linux-musl targets + +This patch ensures that 64-bit PowerPC musl targets use ELFv2 ABI on both +endians. It additionally adds a test that big endian PPC64 uses ELFv2 on +musl. +--- + lib/Target/PowerPC/PPCTargetMachine.cpp | 4 ++++ + test/CodeGen/PowerPC/ppc64-elf-abi.ll | 1 + + 2 files changed, 5 insertions(+) + +diff --git a/test/CodeGen/PowerPC/ppc64-elf-abi.ll b/test/CodeGen/PowerPC/ppc64-elf-abi.ll +index 1e17930304b..aa594b37b47 100644 +--- a/test/CodeGen/PowerPC/ppc64-elf-abi.ll ++++ b/test/CodeGen/PowerPC/ppc64-elf-abi.ll +@@ -1,6 +1,7 @@ + ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s -check-prefix=CHECK-ELFv1 + ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -target-abi elfv1 < %s | FileCheck %s -check-prefix=CHECK-ELFv1 + ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -target-abi elfv2 < %s | FileCheck %s -check-prefix=CHECK-ELFv2 ++; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-musl < %s | FileCheck %s -check-prefix=CHECK-ELFv2 + ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -check-prefix=CHECK-ELFv2 + ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -target-abi elfv1 < %s | FileCheck %s -check-prefix=CHECK-ELFv1 + ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -target-abi elfv2 < %s | FileCheck %s -check-prefix=CHECK-ELFv2 +-- +2.18.0 + |