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

alltogether: Handle missing target information more gracefully #1

Open
dtzWill opened this issue Feb 14, 2018 · 0 comments
Open

alltogether: Handle missing target information more gracefully #1

dtzWill opened this issue Feb 14, 2018 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@dtzWill
Copy link
Member

dtzWill commented Feb 14, 2018

Currently, an error like the following is printed:

Combining referenced modules in allexe
  Input: /home/will/allvm-nixpkgs/allvm/tmp/binary-decompilation-6efd921/test/decompilation/test_0/Output/test_0.clang.trans.allexe
  Output: test_0.clang.trans.unified.allexe
Extracting and merging modules...
  main.bc:
    Loading...Adding...Success.
  Output//ELF_64_linux.bc:
    Loading...Assertion failed: T && T->hasMCAsmParser() (/tmp/nix-build-llvm-all-master-df71b60.drv-0/llvm/lib/Object/ModuleSymbolTable.cpp: CollectAsmSymbols: 68)
Segmentation fault

Which is not very helpful.

Ideas for solution:

  • Detect missing data layout/triple information, print nice error. Perhaps check for this in bc2allvm.
  • Detect missing data layout/triple information, print warning, set triple to native target.

Example will be submitted shortly.

@dtzWill dtzWill added bug Something isn't working help wanted Extra attention is needed labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant