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

i#2751: fix crash in private lib relocs accessing TLS

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i2751-reloc-ifunc-tls into master Mar 05, 2018
  • Overview 1
  • Commits 2
  • Pipelines 0
  • Changes 7

Because relocating can invoke an ifunc which accesses TLS, for UNIX we move loader_init() to after thread init. The custom delayed init function calling is moved back to privload finalization. The ELF TLS block setup for the primary thread is moved up to TLS block discovery time and is moved to after relocation (but before init function calling). Windows remains unchanged as it has other ordering requirements (i#338).

Fixes #2751 (closed) Issue: #338 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i2751-reloc-ifunc-tls