[LLVMbugs] [Bug 9337] New: ARM: misaligned data

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 26 13:34:58 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=9337

           Summary: ARM: misaligned data
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: mans at mansr.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6245)
 --> (http://llvm.org/bugs/attachment.cgi?id=6245)
Reduced test case

When targeting ARM, data objects sometimes get misaligned leading to runtime
crashes.  In the attached file, a uint32_t array is placed at offset 1 in bss
even though the minimum alignment for uint32_t is 4. The misalignment seems
connected to the static variable in decode_init().

This test case is reduced from mpegaudiodec.c in FFmpeg.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list