[PR #10] [MERGED] Force ELF on macOS #9

Closed
opened 2026-02-18 19:21:07 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RPCS3/llvm-mirror/pull/10
Author: @nastys
Created: 12/31/2021
Status: Merged
Merged: 12/31/2021
Merged by: @undefined

Base: masterHead: master


📝 Commits (1)

📊 Changes

1 file changed (+7 additions, -3 deletions)

View changed files

📝 lib/Support/Triple.cpp (+7 -3)

📄 Description

Fixes PPU LLVM in RPCS3.

A few days ago, I realized only system calls were actually causing the PPU crashes. After digging deep into LLVM's code with a lot of help from GalCiv, we came to the conclusion that LLVM wasn't setting up trampolines for imported symbols correctly. Nekotekina suggested forcing LLVM to generate ELF objects instead of Mach-O, and it actually worked!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/RPCS3/llvm-mirror/pull/10 **Author:** [@nastys](https://github.com/nastys) **Created:** 12/31/2021 **Status:** ✅ Merged **Merged:** 12/31/2021 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`2ccae63`](https://github.com/RPCS3/llvm-mirror/commit/2ccae63a85b1a845a087b355366ee2c9b05c6d4c) Force ELF on macOS ### 📊 Changes **1 file changed** (+7 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `lib/Support/Triple.cpp` (+7 -3) </details> ### 📄 Description Fixes PPU LLVM in RPCS3. A few days ago, I realized only system calls were actually causing the PPU crashes. After digging deep into LLVM's code with a lot of help from GalCiv, we came to the conclusion that LLVM wasn't setting up trampolines for imported symbols correctly. Nekotekina suggested forcing LLVM to generate ELF objects instead of Mach-O, and it actually worked! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-18 19:21:07 -05:00
yindo closed this issue 2026-02-18 19:21:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RPCS3/llvm-mirror#9