-
Notifications
You must be signed in to change notification settings - Fork 34
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
get-bc not working #1
Comments
@ianamason Is the problem specific to binaries? |
not sure. i'm testing it now on linux. took a while to get my vagrant box up and coughing. |
No seems to not work pretty uniformly. try some of the simple examples in
etc |
@ianamason Working on that issue. Bitcode from libraries + objects are extracted fine on Mac, the problem must lie in the method for reading/writing .llvm_bc sections to objects and libraries. As for binaries, I am not surprised. Look here at line 81: https://github.com/SRI-CSL/whole-program-llvm/blob/master/wllvm/compilers.py |
OK I will let you fix the issue. Yes executable binaries get their section from the linker. |
@ianamason No problem for me to build/extract objects/libraries in a Linux Docker machine. Probably you did not install llvm tools (like llvm-ar / llvm-link) in your Vagrant box |
@ianamason My bad, I had to change something in the way the output filename is generated. Checkout the latest commit. |
Nope still doesn't work.
|
@ianamason I was saying that I fixed objects and libraries, not binaries. I've just fixed binaries for *nix only and pushed, you can test. For Mac still not working for some strange reason. Even though I doubt it is related to that, I will try to clean the mess of the extractSectionDarwin function. |
OK gotcha. Still getting the same behaviour, though :-( |
@ianamason My version of objcopy is 2.28. Can you run
|
Yes that is what I was doing. My version is 2.24 and it hasn't got that feature :-(
|
@ianamason We have to make a choice then. Either we revert back to legacy support, which probably means a messy extracting function like the one for Darwin, or we precise the need for a working version of objcopy. |
I think reverting is better. 14.04 is a pretty popular OS. |
Why do we have to deal with legacy dinosaurs... Fine then. Can you try get-bc for Mac? It's working for me in fact |
Yes it seems to work on my mac now. |
@ianamason Fixed. |
Yep looks good here too. |
👍 |
OK I have to do some other things, but I can't get
get-bc
to work on my mac.It took me a while to get
gclang
to work, see f42fbcabut now I canna get the bitcode. To reproduce:
The problem seems to be that
filesToLink
is[]
@loicgelleThe text was updated successfully, but these errors were encountered: