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
  • Issues
  • #1409
Closed
Open
Issue created Nov 28, 2014 by Derek Bruening@derekbrueningContributor

create syscall and module libc-independent utils lib for proper NOT_CORE_PROPER sharing, including with tests

From [email protected] on April 01, 2014 01:08:58

suite/tests/tools.c should share DR's raw syscalls: tools.c has a series of nolibc_*() routines and currently duplicates the asm routine dynamorio_syscall as nolibc_syscall. We should have a separate .asm file core/x86/syscall.asm that we can share.

Better to compile + link that one file in both dynamorio and test targets to avoid code duplication. We could additionally make it a static library to A) avoid duplicate compilation and B) ensure a clean interface.

While at it, split x86.asm and win32/ files to get rid of NOT_CORE_PROPER. Xref issue #1079 (closed) along with a lot of historic discussion but I don't think there was any issue filed until now.

Note that drfrontendlib pulls in module_{macho,elf}.c now, plus (the non-core-only part) of os.c, for os_open(), etc. drinjectlib is similar.

**** TODO where put isolated utils?

Keep in core/ in general, as everything that goes into the core should be there.

Candidates:

  • core/lib/unix/module_macho.c, core/lib/x86/syscall.asm
  • core/unix/lib_module_macho.c, core/lib/x86/lib_syscall.asm
  • core/unix/module_macho_lib.c, core/lib/x86/syscall_lib.asm

Original issue: http://code.google.com/p/dynamorio/issues/detail?id=1409

Assignee
Assign to
Time tracking