GeorgeHuyubo wrote: > > Updated the commit to address @labath's comment. > > Can you explain how you did that? The new implementation does something > completely different (and wrong on several levels) from the one I pointed you > to. > [Here](https://android.googlesource.com/platform/bionic/+/android-4.2_r1/linker/linker_phdr.c#34) > is a description of elf loading from a linker POV that might be helpful.
Hope I got this right this time. Now it's trying to find the p_vaddr of the first PT_LOAD segment as the base_addr. And then subtract this base_addr from the vaddr I am trying to read from. https://github.com/llvm/llvm-project/pull/120655 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits