Comments (5)
I am not sure what is going on, but I strongly recommend migrating to anvill. I just compiled coremark for macOS, and opened up Binary Ninja on this specific function. I produced the attached files.
Archive.zip. Anvill was able to identify the indirect call (because Binary Ninja can recognize it, and anvill's Python scripts for interfacing with Binary Ninja can encode call site specific types).
%123 = inttoptr i64 %1 to i32 (i64, i64, i64, i64*)*, !pc !44
%124 = call i32 %123(i64 %119, i64 %122, i64 %2, i64* %117) #3, !pc !44
from mcsema.
Otherwise, what it looks like mcsema is doing is seeing the indirect call, and then casting it to a generic N
-integer-argument function. The N
in this case is derived from --explicit_args
and --explicit_args_count N
(defaults to 8 or so). Then, it would probably try to identify that the comparator of the merge sort has its address taken, and alter references to that comparator to be native-to-lifted entrypoint callbacks (created by this function).
from mcsema.
@pgoodman thank you very much! In my opinion anvill and mcsema both are lifting_tools , and mcsema is stronger than anvil? (i see in the mcsema program anvil is part of it) Maybe my understanding is not enough. And thank you for telling me which part of the mcsema is response to this problem, I am now studying the Callback.cpp
in mcsema and trying to figure out the reason why
from mcsema.
mcsema hasn't been maintained in a long time, and is pinned on an older, less capable version of anvill and remill. Anvill has evolved substantially since then. However, Anvill still does not lift "whole programs" whereas mcsema does. Getting a working lifted program out of mcsema is a challenge.
from mcsema.
@pgoodman Thanks! My aim is to translate a whole program, so l am trying to fix the mcsema. And sorry to disturb you that now I want to see the log information of mcsesa-lift (with the --log option), but there seems some mistake with my operation, and I cant generate a log file just like mcsema-dias . I
ve searched the issue list and l can`t find a solution, would you mind telling me the right operation? thank you very much!
my operation is as follows:
mcsema-lift-11.0 --arch amd64 --os linux --cfg ***/***.cfg --output ***/***.bc --explicit_args --merge_segments --name_lifted_sections --log ***/***.log
i use the typing module just like mcsema-dias, but no log file is generated. with the introduction of --help
-log (Output log filename for lifter.) type: string default: ""
i am not sure why.
from mcsema.
Related Issues (20)
- Docker build error HOT 1
- dyninst frontend is not gettting built on Linux HOT 4
- Segfault while running lifted binary HOT 1
- How not to be explicit about "runtime's memory" HOT 4
- Decompiling Windows binaries (32bit and 64bit) does not work at all HOT 3
- Building mcsema with clang12 error HOT 10
- Official support for running mcsema with rizin/cutter HOT 2
- build error on ubuntu 20.04
- Dockerfile is not up-to-date with remill dependency HOT 2
- Feature request: Improve installation process with precompiled binaries HOT 1
- to see details in the generated 'xxx.cfg'
- fatal error: 'anvill/Program.h' file not found HOT 1
- Can you walk through the example on docs/McSemaWalkthrough.md and check if it still works?
- Unable to build the docker image
- wsl-1.0 ubuntu20+win ida7.5 counter a error of
- Converting 64 bit program to 32 bit HOT 2
- Use mcsema with IDA Home
- Issue in disassembling binaries
- how to make llvm ir "store" volatile? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcsema.