[LLVMbugs] [Bug 23020] New: MC misassembles data in .eh_frame with big endian aarch64

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 25 07:29:40 PDT 2015


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

            Bug ID: 23020
           Summary: MC misassembles data in .eh_frame with big endian
                    aarch64
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, renato.golin at linaro.org
    Classification: Unclassified

given
-----------------------------
        .section .eh_frame
d:
        .section foo
        .long d - e + 4

        .section .eh_frame
e:
--------------------------------

"llvm-mc -triple=aarch64_be-linux-gnu" produces a foo section with

Hex dump of section 'foo':
  0x00000000 00000004 

but gas compiled for the same triple produces

Hex dump of section 'foo':
  0x00000000 04000000

The error is that we flip any fixup that touches the .eh_frame section. The
code handling the .cfi_* directives should instead be marking which fixup need
this.

-- 
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/20150325/9fa5fb49/attachment.html>


More information about the llvm-bugs mailing list