Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool to extract CPU instructions from binary #4

Open
HenrikBengtsson opened this issue Jun 24, 2022 · 0 comments
Open

Tool to extract CPU instructions from binary #4

HenrikBengtsson opened this issue Jun 24, 2022 · 0 comments

Comments

@HenrikBengtsson
Copy link
Contributor

(scribbling down an old idea of mine)

Background

Occasionally, we run into binaries that use CPU op codes that are not available on the machine it's running. Sometime this happens because we download and install pre-compiled binaries, sometimes because we build on a modern CPU architecture but then run on an older one. In the past, we've seen "illegal instruction" core dumps due to for instance a machine to supporting the AVX2 instruction.

Idea

Troubleshooting these problems can be tricky. Sometimes it's due to a dependency, you built years ago. It would be useful if one could at least use scan known binaries and libraries for CPU opcodes and print out a summary. It does not have to be perfect - only good enough to give suggestions.

Tools that can be useful for this:

  • ldd
  • objdump -d
  • ...?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant