summaryrefslogtreecommitdiff
path: root/rts/package.conf.in
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2018-05-09 13:37:30 +0100
committerSimon Marlow <marlowsd@gmail.com>2018-05-16 09:24:38 +0100
commita18e7dfabd234af8b55d3280f9375e5e83facca1 (patch)
treefc75f2fa94bd2190386e73f56736b6704c9a0904 /rts/package.conf.in
parentbb3fa2d18686d0c08b57c66a90a9ea1b4e4482ee (diff)
downloadhaskell-a18e7dfabd234af8b55d3280f9375e5e83facca1.tar.gz
Force findPtr to be included in the binary
Summary: A better alternative to D4657. Test Plan: ``` cd testsuite/tests/codeGen/should_run ../../../../inplace/bin/ghc-stage2 -debug cgrun001 nm cgrun001 | grep findPtr ``` Reviewers: bgamari, Phyx, erikd Subscribers: rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4683
Diffstat (limited to 'rts/package.conf.in')
-rw-r--r--rts/package.conf.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/rts/package.conf.in b/rts/package.conf.in
index af5c282852..b5ed26d39e 100644
--- a/rts/package.conf.in
+++ b/rts/package.conf.in
@@ -174,6 +174,11 @@ ld-options:
#if WORD_SIZE_IN_BITS == 64
, "-Wl,-u,_hs_atomicwrite64"
#endif
+#if defined(DEBUG)
+ /* This symbol is useful in gdb, but not referred to anywhere,
+ * so we need to force it to be included in the binary. */
+ , "-Wl,-u,_findPtr"
+#endif
#else
"-Wl,-u,base_GHCziTopHandler_runIO_closure"
, "-Wl,-u,base_GHCziTopHandler_runNonIO_closure"
@@ -272,6 +277,11 @@ ld-options:
#if WORD_SIZE_IN_BITS == 64
, "-Wl,-u,hs_atomicwrite64"
#endif
+#if defined(DEBUG)
+ /* This symbol is useful in gdb, but not referred to anywhere,
+ * so we need to force it to be included in the binary. */
+ , "-Wl,-u,findPtr"
+#endif
#endif
/* Pick up static libraries in preference over dynamic if in earlier search