[LLVMbugs] [Bug 18693] New: Misaligned memory access in RuntimeDyldELF
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Feb 1 21:02:50 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18693
Bug ID: 18693
Summary: Misaligned memory access in RuntimeDyldELF
Product: libraries
Version: trunk
Hardware: Sun
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Generic Execution Engine Support
Assignee: unassignedbugs at nondot.org
Reporter: venkatra at cs.wisc.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The function RuntimeDyldELF::resolveX86_64Relocation() contains code similar to
the following code pattern
uint64_t *Target = reinterpret_cast<uint64_t*>(Section.Address + Offset);
*Target = Value + Addend;
Since the pointer "Target" is not guaranteed to be 64 bit aligned, it causes
bus error in Sparc.
This causes the following unit cases to fail in SPARC.
LLVM :: DebugInfo/debuglineinfo.test
LLVM :: MC/COFF/seh-align2.s
LLVM :: MC/COFF/seh-align3.s
--
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/20140202/20b56808/attachment.html>
More information about the llvm-bugs
mailing list