-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Open
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.O-PowerPCTarget: PowerPC processorsTarget: PowerPC processorsO-freebsdOperating system: FreeBSDOperating system: FreeBSDT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
The packaged version of rust in FreeBSD patches their release with
--- compiler/rustc_target/src/abi/call/powerpc64.rs.orig 2020-03-09 22:11:17 UTC
+++ compiler/rustc_target/src/abi/call/powerpc64.rs
@@ -123,7 +123,7 @@ where
ELFv2
} else {
match cx.data_layout().endian {
- Endian::Big => ELFv1,
+ Endian::Big => ELFv2,
Endian::Little => ELFv2,
}
};Immediately before that we have the following:
let abi = if cx.target_spec().env == "musl" {
ELFv2
} else {
We can add yet another check for them there so that powerpc64-unknown-freebsd always uses ELFv2. The platform list page shows this one as "PPC64 FreeBSD (ELFv1 and ELFv2)" on Tier 3.
I do not know if doing this change would cause other issues, maybe with lowest FreeBSD version support?
They've been carrying this patch since 2019.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.O-PowerPCTarget: PowerPC processorsTarget: PowerPC processorsO-freebsdOperating system: FreeBSDOperating system: FreeBSDT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.