[Lldb-commits] [lldb] [lldb] Fix address to read segment data (PR #120655)

via lldb-commits lldb-commits at lists.llvm.org
Fri Dec 27 13:59:58 PST 2024


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


More information about the lldb-commits mailing list