[lldb-dev] [Bug 37301] New: Unable to display statically initialized pointers on arm64 (linux?) without a running process
lldb-dev at lists.llvm.org
Tue May 1 02:58:55 PDT 2018
Bug ID: 37301
Summary: Unable to display statically initialized pointers on
arm64 (linux?) without a running process
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: labath at google.com
CC: llvm-bugs at lists.llvm.org
This happens because the pointer, even though "initialized" statically, will
leave behind a runtime relocation (at least for PIC) to be fixed up by the
dynamic linker. When lldb goes to read the value of the variable from the
object file, it just sees a zero.
On other architectures this works, though mostly by luck as the linker uses a
relocation without an explicit addend, so the value in the object file happens
to be the right pointer without the relocation applied (this applies mainly to
ELF, I don't know whether we have better relocation handling for MachO).
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev