Re: [PATCH] OSX: Mach-O object file output

  • From: Adam Strzelecki <ono@xxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 3 Nov 2012 20:22:31 +0100

This patch version makes "arm" produce FAT .o file that can be linked with 
Xcode iOS project for both device & simulator.

Note it uses FAT architecture slices overlap trick, that seems to be allowed by 
ld (not complaining about that), so we can share single Lua BC section for all 
slices, file is just little bigger than single arch non-FAT .o.

[FAT header][x86 slice ... [armv6 slice ... [armv7 slice ... [armv7s slice ... 
{symbol table}{Lua BC}]]]]

Cheers,
-- 
Adam Strzelecki | nanoant.com | twitter.com/nanoant


Other related posts: