Skip to content

Commit fc0cf16

Browse files
committed
psm: Use OpenPOWER ABI on BE PowerPC 64/musl
The musl libc uses ELFv2 (OpenPOWER ABI) on both big and little endian 64-bit PowerPC targets. Before this change, running `cargo test` on a powerpc64-foxkit-linux-musl host showed a SIGSEGV. Now all tests pass.
1 parent b36b2a0 commit fc0cf16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

psm/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ fn find_assembly(
3939
("arm", _, _, _) => Some(("src/arch/arm_aapcs.s", true)),
4040
("aarch64", _, _, _) => Some(("src/arch/aarch_aapcs64.s", true)),
4141
("powerpc", _, _, _) => Some(("src/arch/powerpc32.s", true)),
42+
("powerpc64", _, _, "musl") => Some(("src/arch/powerpc64_openpower.s", true)),
4243
("powerpc64", "little", _, _) => Some(("src/arch/powerpc64_openpower.s", true)),
4344
("powerpc64", _, _, _) => Some(("src/arch/powerpc64.s", true)),
4445
("s390x", _, _, _) => Some(("src/arch/zseries_linux.s", true)),

0 commit comments

Comments
 (0)