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

            Bug ID: 46414
           Summary: llvm-dwarfdump --eh-frame: Wrong PC offset
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-dwarfdump
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

echo 'int main(void) { return 0; }'|clang -x c -;(readelf -wf
a.out;llvm-dwarfdump --eh-frame)|less

readelf:
00000018 0000000000000010 0000001c FDE cie=00000000
pc=0000000000401020..000000000040104f
                                                      
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  DW_CFA_advance_loc: 4 to 0000000000401024
  DW_CFA_undefined: r16 (rip)

llvm-dwarfdump:
00000018 00000010 0000001c FDE cie=00000000
pc=ffffffffffffefb8...ffffffffffffefe7
                                              
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  Format:       DWARF32
  DW_CFA_advance_loc: 4
  DW_CFA_undefined: reg16

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to