Comments (6)
Thank you @eschulte. I will probably start working on some small binary rewriting examples w.r.t x86 backend to get accustomed to ddisasm. And then try looking into RiscV backend.
-Sai
from ddisasm.
We do not have any support for Risc-V binaries yet.
But we are open to contributions and Capstone does support Risc-V so the external dependency for Risc-V is satisfied.
from ddisasm.
Hello @eschulte
Is there any docs or any pointers to extend ddisasm? Also, does GTIRB support Risc-V backend?
Thanking you
Sai
from ddisasm.
The changes on the GTIRB side should be minimal, basically just adding RISC-V to the ISA enum in our protobuf module definition and to the corresponding ISA enums in our Python, Java, and Common Lisp APIs. That part should be trivial.
On the DDisasm side I'd look under src/datalog/arch
and src/gtirb-decoder/arch
and then mimic what you see for another ISA, e.g. arm64. We try to keep the ddisasm code largely segregated by ISA so each ISA's implementation is in its own file. Probably @kwarrick would have more advice here.
Also, if you're considering this (which would be awesome!), do be aware of our code of conduct and the fact that we ask all contributors to DDisasm to sign our contributor license agreement which give GrammaTech rights to your contributions to DDisasm so that we can maintain our GPL.
from ddisasm.
@SaiVK you will probably want to extend gtirb-pprinter (https://github.com/grammatech/gtirb-pprinter) as well, so it can print RISC-V gtirb files. Similarly to ddisasm, you might want to look at how other ISAs are implemented there, such as ARM64 https://github.com/GrammaTech/gtirb-pprinter/blob/master/src/gtirb_pprinter/Arm64PrettyPrinter.cpp to get an idea of what is needed.
from ddisasm.
Thanks, @aeflores for the pointers. I will look into it.
-Sai
from ddisasm.
Related Issues (20)
- How to get instruction boundaries for binaries compiled by icc ? HOT 1
- Several reassembly error cases on Ddisasm HOT 9
- [BINARY] fails disassembly MSVC dll HOT 2
- "Lib.exe: command not found" when reassembling PE binaries HOT 1
- ls binary fails reassembly on Ubuntu 22 HOT 7
- [ls] fails reassembly HOT 6
- `gcc ls.s -o ls-out -l selinux -nostartfiles -O0` does not products exactly the same code signature as the original file HOT 10
- [non-pie] fails to disassemble on ubuntu-20.04.6 : process killed HOT 13
- [Question] Any simple way to get function entries? HOT 2
- gnu linker script? HOT 4
- remove fake plt/got in windows PE files HOT 2
- document the usage of pkg-config --libs libselinux on Linux HOT 2
- binary disassembly got warning , when recompile to binary got error HOT 3
- NASHTA fails disassembly HOT 12
- Where can I find the latest release of this extension? When I go to the "Release" section it is empty. HOT 1
- connect ddisasm to proof of useful work HOT 2
- optimize ram HOT 1
- Profiling mode may create inaccurate running time information. HOT 2
- Use PDB files in rewriting process HOT 3
- Incorrect disassembly of binary 'FADD ST(n1) ST(n2)' instructions HOT 10
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 ddisasm.