summaryrefslogtreecommitdiff
path: root/rts/package.conf.in
diff options
context:
space:
mode:
authorMarios Titas <geopoul@gmail.com>2014-12-10 04:17:22 -0600
committerAustin Seipp <austin@well-typed.com>2014-12-10 04:20:08 -0600
commit7ca5bb090ff78141fbe275b058a9e35ee496bd58 (patch)
tree8c2c9f635746ad42f40e216f1fdea5ae4deea3ac /rts/package.conf.in
parent4d1c452daf54e0ed04ee66d6d3ea9078924afd51 (diff)
downloadhaskell-7ca5bb090ff78141fbe275b058a9e35ee496bd58.tar.gz
compiler: fix trac issue #9817
Summary: When we call runHandlers, we must pass it a ForeignPtr. To ensure that this happens, we introduce a wrapper that receives a plain Ptr and converts it into a ForeignPtr. Then we adjust startSignalHandlers in rts/posix/Signals.c to call the wrapper instead of calling runHandlers directly. Reviewers: hvr, austin, rwbarton, simonmar Reviewed By: austin, simonmar Subscribers: simonmar, thomie, carter Differential Revision: https://phabricator.haskell.org/D515 GHC Trac Issues: #9817
Diffstat (limited to 'rts/package.conf.in')
-rw-r--r--rts/package.conf.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/package.conf.in b/rts/package.conf.in
index ce44a09651..2670faeb57 100644
--- a/rts/package.conf.in
+++ b/rts/package.conf.in
@@ -109,7 +109,7 @@ ld-options:
, "-Wl,-u,_base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
, "-Wl,-u,_base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
, "-Wl,-u,_base_GHCziConcziSync_runSparks_closure"
- , "-Wl,-u,_base_GHCziConcziSignal_runHandlers_closure"
+ , "-Wl,-u,_base_GHCziConcziSignal_runHandlersPtr_closure"
#else
"-Wl,-u,ghczmprim_GHCziTypes_Izh_static_info"
, "-Wl,-u,ghczmprim_GHCziTypes_Czh_static_info"
@@ -151,7 +151,7 @@ ld-options:
, "-Wl,-u,base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
, "-Wl,-u,base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
, "-Wl,-u,base_GHCziConcziSync_runSparks_closure"
- , "-Wl,-u,base_GHCziConcziSignal_runHandlers_closure"
+ , "-Wl,-u,base_GHCziConcziSignal_runHandlersPtr_closure"
#endif
/* Pick up static libraries in preference over dynamic if in earlier search