aboutsummaryrefslogtreecommitdiff
path: root/ldc-druntime-finiTLSRanges.patch
diff options
context:
space:
mode:
authorpjotrp2017-02-02 08:15:18 +0000
committerpjotrp2017-02-02 08:15:18 +0000
commitea1ce997a5e43e1993864464e1a1d45e9b20c8db (patch)
tree09f8c17e96d86ef3ef9602da4ce05ce6f44a2abb /ldc-druntime-finiTLSRanges.patch
parent0c6ee6e845def194d50021eec528059671e04cd3 (diff)
downloadguix-bioinformatics-ea1ce997a5e43e1993864464e1a1d45e9b20c8db.tar.gz
Patching Druntime for sambamba
Diffstat (limited to 'ldc-druntime-finiTLSRanges.patch')
-rw-r--r--ldc-druntime-finiTLSRanges.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/ldc-druntime-finiTLSRanges.patch b/ldc-druntime-finiTLSRanges.patch
new file mode 100644
index 0000000..152f341
--- /dev/null
+++ b/ldc-druntime-finiTLSRanges.patch
@@ -0,0 +1,24 @@
+diff --git a/src/rt/sections_elf_shared.d b/src/rt/sections_elf_shared.d
+index a1ea73a..243e3f6 100644
+--- a/src/rt/sections_elf_shared.d
++++ b/src/rt/sections_elf_shared.d
+@@ -149,7 +149,8 @@ version (Shared)
+
+ void finiTLSRanges(Array!(ThreadDSO)* tdsos)
+ {
+- tdsos.reset();
++ // Disabling like static version - not sure this one is misbehaving though
++ // tdsos.reset();
+ }
+
+ void scanTLSRanges(Array!(ThreadDSO)* tdsos, scope ScanDG dg) nothrow
+@@ -234,7 +235,8 @@ else
+
+ void finiTLSRanges(Array!(void[])* rngs)
+ {
+- rngs.reset();
++ // Throws exception, see https://github.com/lomereiter/sambamba/issues/219#issuecomment-275838455
++ // rngs.reset();
+ }
+
+ void scanTLSRanges(Array!(void[])* rngs, scope ScanDG dg) nothrow