Hi all,
I am cross compiling for an ARM device and don't have access to the dloopen/dlsym etc functions to manipulate shared ELF libraries - what I do have is access to libelf.
I am wondering if anyone has experience with libelf, or manually resolving symbols in shared libraries?
I have a simple shared library (for testing) with two simple functions in it, and no external dependencies. The 'add' function just adds one to the number that you pass it and returns it, and the 'subtract' function returns the input minus one.
After I have loaded the .text and .data section to memory, how can I find out the addresses of the two functions (similar to the dlsym( lib, 'subtract'); type call that would be used if dlopen was available).
Any help greatly appreciated.
Pea