On Wed, Jun 25, 2008 at 08:51:31AM -0400, Anderson Lizardo wrote: > Do you have any suggestions on how to reliably calculate absolute > addresses? An alternative approach I have in mind is to peek directly at > the linker structures, like it's done by GDB. Is that the only feasible > general solution to the issue?
I'm not sure I understand what you're doing. Don't you already have the run-time linker's offsets? If you assume that any file you've opened is the same as the one running in the target process, then all it takes is combining the two; p_vaddr plus the offset from the link map. It's much trickier in GDB because we support remote debugging and core dumps; the library may have been re-prelinked to a different address. -- Daniel Jacobowitz CodeSourcery _______________________________________________ Libunwind-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/libunwind-devel
