LouisBrunner / LouisBrunner/valgrind-macos

macOS 12 arm64 build issues

Open
#176 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
1.4k
Forks
72
Avg merge
6h 40m
Merged PRs (30d)
1

Description

This small change is needed

diff --git a/include/vki/vki-scnums-darwin.h b/include/vki/vki-scnums-darwin.h
index d0747cee2..5ae44626c 100644
--- a/include/vki/vki-scnums-darwin.h
+++ b/include/vki/vki-scnums-darwin.h
@@ -203,7 +203,7 @@
#define __NR_task_for_pid VG_DARWIN_SYSCALL_CONSTRUCT_MACH(45)
#define __NR_pid_for_task VG_DARWIN_SYSCALL_CONSTRUCT_MACH(46)

-#if DARWIN_VERS >= DARWIN_13_00
+#if DARWIN_VERS >= DARWIN_12_00
#define __NR_mach_msg2_trap VG_DARWIN_SYSCALL_CONSTRUCT_MACH(47)
#endif

After that I get

ld: ARM64 ADRP out of range (4304269312 max is +/-4GB): from _iselCondCode_R_wrk (0x158179C14) to _vex_traceflags (0x258A5824C) in '_iselCondCode_R_wrk' from ../VEX/libvex-arm64-darwin.a(libvex_arm64_darwin_a-host_arm64_isel.o)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with include/vki/vki-scnums-darwin.h and reproduce the macOS 12 arm64 build using the proposed DARWIN_VERS change. Investigate the reported ARM64 ADRP out-of-range linker error involving _iselCondCode_R_wrk and _vex_traceflags. Done means the macOS 12 arm64 build links successfully without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, macos
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.