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
  • !2293

i#1568: add initial support for TLS on MacOS 64-bit

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge i1568-mac64-tls into project-mac64 Mar 15, 2017
  • Overview 18
  • Commits 5
  • Pipelines 0
  • Changes 19

Created by: shawndenbow

For 64-bit MacOS, there is no way to set the %fs base which stops us from using DR's scheme used on other unix platforms. This commit provides initial support to MacOS 64-bit by stealing a TLS slot from the app for DR's TLS base.

  • implement is_thread_tls_initialized for MacOS 64-bit
  • implement tls_thread_init and tls_thread_free
  • set MACOS64 define in cmake script
  • add WRITE_TLS_SLOT_IMM etc. for MacOS 64-bit
  • add read_thread_register for MacOS 64-bit to get pthread_t base
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i1568-mac64-tls