Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] ld doesn't support ppc #119

Open
ChrisNonyminus opened this issue Mar 4, 2022 · 4 comments
Open

[bug] ld doesn't support ppc #119

ChrisNonyminus opened this issue Mar 4, 2022 · 4 comments

Comments

@ChrisNonyminus
Copy link

ChrisNonyminus commented Mar 4, 2022

When cctools is configured to target powerpc-apple-darwin, as assembles powerpc assembly without issue, but ld will not link it.

chrisnonyminus@DESKTOP-JLMSNKL:~/test/helloworld$ powerpc-apple-darwin-ld a.out -o test -arch ppc
ld: unknown/unsupported architecture name for: -arch ppc
chrisnonyminus@DESKTOP-JLMSNKL:~/test/helloworld$ powerpc-apple-darwin-ld -v
@(#)PROGRAM:ld  PROJECT:ld64-609
BUILD 17:46:02 Mar  3 2022
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS)
LTO support using: LLVM version 10.0.0 (static support for 26, runtime is 26)```
@Gcenx
Copy link

Gcenx commented Mar 18, 2022

ld64-127 was the last version from Apple to support ppc

@Wohlstand
Copy link

Recently I attempted to review the difference between the current ld64 and the ld64-127.2, and I attempted to backport PowerPC-related parts but hadn't completed that yet. On another side, I want to get a shot to make the ld64-127 work here. How much the modded ld64 is different from the official ld64?

@Wohlstand
Copy link

P.S. I attempting to make a cross-compiler toolchain to run my experimental stuff on my Mac Mini G4, however, it's a pain to build the code on it because of a very weak processor, and therefore a cross-compiler for modern Linux should simplify this. I built everything except GCC: it fails to build the thing because of the ld64...

@Wohlstand
Copy link

I made the first attempt here: master...Wohlstand:cctools-port:ppc-revive
I had to compare two versions: 127.2 and 128.2 to see what parts of the code were changed in order to remove PowerPC support. So, I attempted to restore that code to the latest version (which appears in this repository here). Trying some to verify its work and make the thing work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants