LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Tool to track api from binary (https://www.linuxquestions.org/questions/linux-software-2/tool-to-track-api-from-binary-4175535123/)

answerme 02-26-2015 12:46 AM

Tool to track api from binary
 
Hi
Is there any tool to track api's from vxwork binary . i.e. I have a binary that are using multiple api's but don't know which one are we using ,is there any way we can track these api's from a binary

Thanks

rtmistler 02-26-2015 07:18 AM

No tool that I'm aware of excepting something like the debugger where you enter it and put a breakpoint at each given API function and see if it's ever used; however that's empirical and there may be uses of any given API function which only happen under certain circumstances. The only real ways to determine this are to:
  1. Search the source code
  2. Rebuild the code iteratively removing API functions and seeing if the build succeeds
I'd start with option (1) and to prove my findings I'd next do option (2), with probably my whole intention being reduction in size, or increase in performance, or both. But those are probably the only reasons I'd look to determine which API's were in use versus not, to reduce my binary size.


All times are GMT -5. The time now is 07:32 AM.