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

i#5250: Add alt-bitwidth DR lib path config param

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i5250-alt-width-config into master Apr 04, 2022
  • Overview 12
  • Commits 7
  • Pipelines 0
  • Changes 9

Adds a new config parameter DYNAMORIO_ALTINJECT for specifying the path to the alternate-bitwidth DR library for cross-bitwidth execve.

If the parameter is set, DR uses it; otherwise it falls back to the current hardcoded path assumptions.

drrun and friends automatically set the parameter if the other bitwidth library is found.

Adds an automated test by augmenting the "linux.execve{32,64}" test from a 64-bit build which does a test-and-build. The renamed "linux.xarch" test now does one build (for efficiency) and runs a script which executes both (32<->64) directions for each of the existing assumed-layout strategy and the new config-points-at-alt-bitwidth strategy.

Also tested manually: $ bin64/drrun -v -use_alt_dll ~/dr/releases/DynamoRIO-Linux-9.0.0/lib32/debug/libdynamorio.so -trace_threshold 51 -- suite/tests/bin/linux.execve64 ~/dr/git/build_x86_dbg_tests/suite/tests/bin/linux.execve-sub32

Fixes #5250 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i5250-alt-width-config