qt5base-lts/mkspecs/macx-ios-clang
Tor Arne Vestbø c937bbb4fe iOS: Use LC_MAIN to wrap user main() instead of mangling object files
With iOS 6.0 and above the LC_MAIN load command is available, which allows
dyld to call the application entrypoint directly instead of going through
_start in crt.o. By passing -e to the linker we can change this entrypoint
to our wrapper that sets up the separate stack before entering the native
iOS runloop through UIApplicationMain. As before, we call the user's main()
from applicationDidFinishLaunching.

By using LC_MAIN instead of messing with the object files we open up the
possibility of generating Bitcode instead of object code, which can be
useful for link-time optimizations, either locally or by Apple.

Change-Id: If2153bc919581cd93dfa10fb6ff1c305b3e39a52
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
2015-06-29 12:39:50 +00:00
..
features iOS: Use LC_MAIN to wrap user main() instead of mangling object files 2015-06-29 12:39:50 +00:00
Default-568h@2x.png iOS: Provide default launch image for 4-inch devices 2013-11-29 09:55:23 +01:00
Info.plist.app Remove exec bits from files that should not be executable 2015-06-07 22:50:19 +00:00
Info.plist.lib Add CFBundleVersion to the Info.plist files. 2014-10-01 10:56:41 +02:00
LaunchScreen.xib iOS: let qmake generate default LaunchScreen.xib 2014-11-11 20:43:05 +01:00
qmake.conf iOS: Use LC_MAIN to wrap user main() instead of mangling object files 2015-06-29 12:39:50 +00:00
qplatformdefs.h Update copyright headers 2015-02-11 06:49:51 +00:00