[llvm-commits] [PATCH] lli memory manager does not ensure proper alignment

Amara Emerson amara.emerson at arm.com
Fri Oct 12 05:36:31 PDT 2012


Hi,

 

The allocateDataSection() function in the default lli memory manager does
not properly align the memory address it receives from calloc in accordance
with the caller's requirements. This obviously creates problems as the data
in the section assumes a certain alignment, causing segfaults on ARM.

 

Please review the attached patch.

 

Amara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121012/ab7b06e8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lli-align-datasection.patch
Type: application/octet-stream
Size: 1146 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121012/ab7b06e8/attachment.obj>


More information about the llvm-commits mailing list