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

Allow adding platform types through API #1936

Open
SlidyBat opened this issue Aug 28, 2020 · 4 comments
Open

Allow adding platform types through API #1936

SlidyBat opened this issue Aug 28, 2020 · 4 comments
Labels
Component: Type Libraries Effort: Medium Issue should take < 1 month Impact: Low Issue is a papercut or has a good, supported workaround Type: Enhancement Issue is a small enhancement to existing functionality

Comments

@SlidyBat
Copy link

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.

@psifertex psifertex added the Type: Enhancement Issue is a small enhancement to existing functionality label Oct 5, 2020
@psifertex
Copy link
Member

psifertex commented Oct 5, 2020

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.

@SlidyBat
Copy link
Author

SlidyBat commented Dec 3, 2020

Any updates on this? Been more than a few days 😛

@rssor
Copy link
Member

rssor commented Dec 9, 2020

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.

@plafosse plafosse added Effort: Medium Issue should take < 1 month Impact: Low Issue is a papercut or has a good, supported workaround labels May 12, 2021
@xusheng6
Copy link
Member

Related to #2773

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Type Libraries Effort: Medium Issue should take < 1 month Impact: Low Issue is a papercut or has a good, supported workaround Type: Enhancement Issue is a small enhancement to existing functionality
Projects
None yet
Development

No branches or pull requests

5 participants