[llvm-bugs] [Bug 48901] New: Disassembly of x86-64 GD TLS code sequence is incorrect

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 27 08:44:40 PST 2021


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

            Bug ID: 48901
           Summary: Disassembly of x86-64 GD TLS code sequence is
                    incorrect
           Product: tools
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-objdump
          Assignee: unassignedbugs at nondot.org
          Reporter: anng.sw at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 24426
  --> https://bugs.llvm.org/attachment.cgi?id=24426&action=edit
Test to reproduce issue.

The following x86-64 GD TLS code sequence does not disassemble correctly:

 data16
 leaq   tdata at TLSGD(%rip),%rdi
 data16
 data16
 rex64
 callq  __tls_get_addr at PLT

Instead of the expected callq, you end up with callw + addb. Attached is a test
to reproduce the issue.

This issue seems to be somewhat related to bug 38537 and the fix committed in
https://github.com/llvm/llvm-project/commit/cade635c77004ddfabe97a0bbefefcf90d322ed8.
That commit message suggests that this disassembly case was known to be broken.

-- 
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/20210127/8008d9dd/attachment.html>


More information about the llvm-bugs mailing list