* Memory alignment bug under iOS @ 2012-08-15 2:28 cowwoc 2012-08-15 7:41 ` Andrew Haley 0 siblings, 1 reply; 3+ messages in thread From: cowwoc @ 2012-08-15 2:28 UTC (permalink / raw) To: libffi-discuss Hi, 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. Thanks, Gili -- View this message in context: http://old.nabble.com/Memory-alignment-bug-under-iOS-tp34299787p34299787.html Sent from the Sourceware - libffi-discuss mailing list archive at Nabble.com. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Memory alignment bug under iOS 2012-08-15 2:28 Memory alignment bug under iOS cowwoc @ 2012-08-15 7:41 ` Andrew Haley 2012-08-15 13:29 ` cowwoc 0 siblings, 1 reply; 3+ messages in thread From: Andrew Haley @ 2012-08-15 7:41 UTC (permalink / raw) To: cowwoc; +Cc: libffi-discuss 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. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Memory alignment bug under iOS 2012-08-15 7:41 ` Andrew Haley @ 2012-08-15 13:29 ` cowwoc 0 siblings, 0 replies; 3+ messages in thread From: cowwoc @ 2012-08-15 13:29 UTC (permalink / raw) To: libffi-discuss Hi Andrew, I'm going to merge this discussion with http://old.nabble.com/please%2C-help-me-with-libffi-on-iOS-porting-td34250621.html#a34300375 Thanks, Gili Andrew Haley wrote: > > 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. > > > > -- View this message in context: http://old.nabble.com/Memory-alignment-bug-under-iOS-tp34299787p34301780.html Sent from the Sourceware - libffi-discuss mailing list archive at Nabble.com. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-15 13:29 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-08-15 2:28 Memory alignment bug under iOS cowwoc 2012-08-15 7:41 ` Andrew Haley 2012-08-15 13:29 ` cowwoc
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).