summaryrefslogtreecommitdiff
path: root/output/outobj.c
diff options
context:
space:
mode:
authorDavid DeHaven <dave@sagetv.com>2008-12-09 00:18:43 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-12-18 14:58:24 -0800
commit74a8755fe3ea755183c2a70a9fcf1a478dda2d68 (patch)
tree434653e7a948375fa1cd714f882867a89da8ea05 /output/outobj.c
parent352fe06e02034394107e2ad625018eff731a9b01 (diff)
downloadnasm-74a8755fe3ea755183c2a70a9fcf1a478dda2d68.tar.gz
nasm-74a8755fe3ea755183c2a70a9fcf1a478dda2d68.tar.bz2
nasm-74a8755fe3ea755183c2a70a9fcf1a478dda2d68.zip
Mach-O alignment fix
Several projects have taken to using .text to store read-only data when building on Mac OS X due to crashes in SSE code from the .rodata section being mis-aligned. It seems there was a misunderstanding about how ld/ld64 handles section alignment in outmacho.c so I wrote a patch to fix it. I tested it against x264 git, modified it to use ".rodata align=16" for the data section and use movdqa instructions (guaranteed to crash when built with unpatched nasm) and it passed all tests in its checkasm tool. If you want more data I can provide, but it's late and I've had a couple glasses of mulled wine :) -DrD-
Diffstat (limited to 'output/outobj.c')
0 files changed, 0 insertions, 0 deletions