Skip to content

FreeBSD: add powerpc64 support#5141

Open
pkubaj wants to merge 1 commit into
ldc-developers:masterfrom
pkubaj:add_freebsd_ppc64
Open

FreeBSD: add powerpc64 support#5141
pkubaj wants to merge 1 commit into
ldc-developers:masterfrom
pkubaj:add_freebsd_ppc64

Conversation

@pkubaj

@pkubaj pkubaj commented Jun 11, 2026

Copy link
Copy Markdown

Use ELFv2 on powerpc64 - FreeBSD switched to ELFv2 in 13.0-RELEASE.

powerpc64 has switched to ELFv2 in FreeBSD 13.0-RELEASE.
@kinke

kinke commented Jun 12, 2026

Copy link
Copy Markdown
Member

Thx for the work! Cirrus is unfortunately dead: #5138

@pkubaj pkubaj force-pushed the add_freebsd_ppc64 branch from 308b0d4 to 9c3a028 Compare June 12, 2026 12:49
@pkubaj

pkubaj commented Jun 12, 2026

Copy link
Copy Markdown
Author

I updated the PR to only contain the first commit. The CI-related one will have a new PR once you decide on the successor.

@pkubaj pkubaj changed the title FreeBSD: add powerpc64 and powerpc64le support FreeBSD: add powerpc64 support Jun 12, 2026
@kinke

kinke commented Jun 12, 2026

Copy link
Copy Markdown
Member

FreeBSD switched to ELFv2 in 13.0-RELEASE

Do you think we should check the OS major then (triple.getOSMajorVersion()), or do we not expect anyone to target FreeBSD < 13 these days?

@pkubaj

pkubaj commented Jun 12, 2026

Copy link
Copy Markdown
Author

12.x went EOL 31.12.2023. Apart from using ELFv1 on powerpc64, it was also limited to GCC 4.2 as a base compiler. It always had issues with LLVM from ports, because LLVM has assumed for many years that FreeBSD uses libc++, because that's what amd64 had been doing. So no, there's no point in supporting ELFv1 on FreeBSD.

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

Successfully merging this pull request may close these issues.

2 participants