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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to