This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: Memory alignment bug under iOS
- From: Andrew Haley <aph at redhat dot com>
- To: cowwoc <cowwoc at bbs dot darktech dot org>
- Cc: libffi-discuss at sourceware dot org
- Date: Wed, 15 Aug 2012 08:41:11 +0100
- Subject: Re: Memory alignment bug under iOS
- References: <34299787.post@talk.nabble.com>
On 08/15/2012 03:28 AM, cowwoc wrote:
> I believe there is a bug in sysv.S's usage of .align 0 under ARM. It
> wrongfully assumes that Apple's Assembler interprets .align 0 as .align 2.
> GNU's Assembler certainly does this:
> http://sourceware.org/binutils/docs/as/ARM-Directives.html
>
> but Apple's does not:
> https://developer.apple.com/library/mac/#documentation/developertools/Reference/Assembler/040-Assembler_Directives/asm_directives.html
>
> As a result, the generated code does not align memory correctly. I look
> forward to your response.
Can you submit a patch?
Thanks,
Andrew.