Open Bug 1876653 (arm64e) Opened 8 months ago Updated 1 month ago

Support building for arm64 with pointer authentication for macOS

Categories

(Firefox Build System :: General, task)

task

Tracking

(Not tracked)

People

(Reporter: glandium, Assigned: glandium)

References

(Blocks 2 open bugs)

Details

(Keywords: leave-open)

Attachments

(1 file)

No description provided.

Status:

I have PoC patches for the first three.
I got a build on try using a custom rust compiler with -Z build-std and cctools, and the resulting build gets into a rust panic on startup, where the function call originates from NS_InvokeByIndex. Chances are xptcall needs adjustments, but I haven't dug into what's going wrong yet.

Alias: arm64e
Keywords: leave-open

Currently, it's handled as if it were a 32-bits arm triplet.

Depends on: 1877546

It's not entirely clear if the ABI is stabilitized in LLVM

The ABI has changed, and open-source LLVM doesn't support the (presumably) final ABI, which also means Rust, even with what it has in 1.76, doesn't actually support it either. (https://github.com/llvm/llvm-project/issues/80200)

I got a build on try using a custom rust compiler with -Z build-std and cctools, and the resulting build gets into a rust panic on startup, where the function call originates from NS_InvokeByIndex. Chances are xptcall needs adjustments, but I haven't dug into what's going wrong yet.

It was a red herring, probably from bug 1877389.

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:glandium, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(mh+mozilla)
Flags: needinfo?(ahochheiden)
Flags: needinfo?(ahochheiden)
Depends on: 1888283
Depends on: 1889822

This is also blocking the testing of iOS builds on-device (we're not able to locally install an app using BrowserEngineKit without arm64e)

Flags: needinfo?(mh+mozilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: