summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2017-05-11 18:14:47 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2017-05-11 18:31:44 +0800
commit094a752a1561b5cb8640648b0882cea97831226c (patch)
tree536e1a41fb38e9c40a24142dbda3c99454958480 /rts
parentb5ca082d297bc6306f445cb672a07b907dff8b18 (diff)
downloadhaskell-094a752a1561b5cb8640648b0882cea97831226c.tar.gz
Fix iossimulator
The introduction of the aarch64 linker for iOS forgot that the ios simulator was still using the x86_64/mach-o linker, which requires the use of symbol extras. Until this is overhauled (see #13678), we should revert to the symbol extras logic for x86_64-apple-ios Reviewers: austin, bgamari, erikd, simonmar Reviewed By: simonmar Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3556
Diffstat (limited to 'rts')
-rw-r--r--rts/LinkerInternals.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rts/LinkerInternals.h b/rts/LinkerInternals.h
index a884561138..b8c411d22a 100644
--- a/rts/LinkerInternals.h
+++ b/rts/LinkerInternals.h
@@ -109,6 +109,11 @@ typedef struct ForeignExportStablePtr_ {
#endif /* ios_HOST_OS */
#endif
+/* iOS Simulator however, needs symbol extras for now (#13678) */
+#if defined(ios_HOST_OS) && defined(x86_64_HOST_ARCH)
+#define NEED_SYMBOL_EXTRAS 1
+#endif
+
/* Jump Islands are sniplets of machine code required for relative
* address relocations on the PowerPC, x86_64 and ARM.
*/