[llvm-bugs] [Bug 37301] New: Unable to display statically initialized pointers on arm64 (linux?) without a running process

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 1 02:58:55 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37301

            Bug ID: 37301
           Summary: Unable to display statically initialized pointers on
                    arm64 (linux?) without a running process
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         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 on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180501/85b40476/attachment.html>


More information about the llvm-bugs mailing list