Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Merge requests
  • !5497

i#5383: build on macos m1

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/heyitsanthony/i5383-m1 into master May 22, 2022
  • Overview 110
  • Commits 2
  • Pipelines 0
  • Changes 49

Created by: heyitsanthony

Good morning dynamo devs.

This PR adds support for running a "hello world" program (printf and read()) on my M1 macbook. It is by no means perfect but it's enough of a first cut that it can be refined / stabilized for more cases. My apologies for the large-ish first time contributor patch set.

Most of the changes in this PR are related to:

  • macos aarch64 TLS
  • untangling macos64 = x86 / aarch64 = linux assumptions
  • macho symbols / minor assembler differences
  • MacOS's MAP_JIT flag
  • v8.3 PAC pointers / arm64e

Rough edges:

  • segfaults on heap cleanup when exiting in debug builds (release builds are OK)
  • returning from signals not seriously attempted
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/heyitsanthony/i5383-m1