summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qtimezone.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-06-17 14:39:02 +0200
committerTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-06-29 12:39:50 +0000
commitc937bbb4fe708f7f873ca630c6ff225f9a3f9ace (patch)
tree99b4e9191a887458b92de08f2ff72903ec89cd70 /src/corelib/tools/qtimezone.cpp
parent7b0cb2ffa3e4a1fec6ac716f7c82c42e2bacbb2a (diff)
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>
Diffstat (limited to 'src/corelib/tools/qtimezone.cpp')
0 files changed, 0 insertions, 0 deletions