Open Bug 1658385 Opened 5 years ago Updated 3 months ago

add arm64 support to xpcom/build/mach_override.c

Categories

(Core :: XPCOM, enhancement)

ARM64
macOS
enhancement

Tracking

()

REOPENED
81 Branch
Tracking Status
firefox81 --- affected

People

(Reporter: froydnj, Assigned: glandium)

References

(Blocks 3 open bugs)

Details

Attachments

(1 file)

I really hope some motivated people from upstream have fixed this already.

(In reply to Nathan Froyd [:froydnj] from comment #0)

I really hope some motivated people from upstream have fixed this already.

No, upstream is essentially dead.
Copy/paste from me on matrix:

it strikes me that mach_override is essentially the same thing as what we use to intercept function calls on windows (mozglue/misc/interceptor), which already has code for arm64. I wonder how much work it would be to make the mozglue thing cross-platform.

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/c878b0fb16c7 Exclude mach_override code on aarch64 builds for now. r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch

Forgot to mark leave-open before the merge.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Switching over to an enhancement.

:glandium, is this something which we should continue tracking? It seems unfortunate to not have the IO interposer on m1 macs (which is what it seems like this might do? I'm unsure)

Type: defect → enhancement
Flags: needinfo?(mh+mozilla)

I'm unclear if this would still work on modern macOS, regardless of arch: https://stackoverflow.com/questions/51266646/mach-override-function-is-failing-in-mojave-osx-10-14

(In reply to Gian-Carlo Pascutto [:gcp] from comment #7)

I'm unclear if this would still work on modern macOS, regardless of arch: https://stackoverflow.com/questions/51266646/mach-override-function-is-failing-in-mojave-osx-10-14

Looks like this is talking about a kernel extension, these have different restrictions than userspace.

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: