binaryninja-api
binaryninja-api copied to clipboard
Allow adding platform types through API
At the moment platform types / syscalls can be added through files in types/platform
folder, but would be nice if it was possible to add them through API as well.
My use case is that I have a custom architecture where the syscall numbers differ from one binary to another, but they contain debug info that tells you what the syscalls correspond to. I would like to add these syscalls based on the debug info via the API.
We've got a planned change coming to dev in the next few days that will allow you to do this (though not using a platform type, but through some new changes in the type library system)
As soon as that code lands @rssor will chime in with the way you can solve this.
Any updates on this? Been more than a few days 😛
Sorry about the delay, was writing up the example code for how this can be accomplished with ephemeral typelibraries and realized it makes more sense for me to just plumb this through directly as a new set of methods on BinaryView objects. I'll follow up with the interim workaround using typelibraries shortly, but I'd recommend not using it since the new methods won't be far behind.
Related to https://github.com/Vector35/binaryninja-api/issues/2773