Skip to content

Commit e6fe1de

Browse files
shumvgoloveangerman
authored andcommitted
overlay/patches: update weak and common patch
1 parent 638674f commit e6fe1de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

overlays/patches/ghc/ghc-8.10.7-linker-weak-and-common.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ index fdfe87a..c3f9110 100644
8585
+ oc->common_mem = NULL;
8686
+ oc->common_size = common_size;
8787
if(common_size > 0) {
88-
- common_mem = mmapAnonForLinker(common_size);
88+
- common_mem = mmapAnonForLinker(common_size, true, "anon:common_mem");
8989
- if (common_mem == NULL) {
90-
+ oc->common_mem = mmapAnonForLinker(common_size);
90+
+ oc->common_mem = mmapAnonForLinker(common_size, true, "anon:common_mem");
9191
+ if (oc->common_mem == NULL) {
9292
barf("ocGetNames_ELF: Failed to allocate memory for SHN_COMMONs");
9393
}
@@ -186,4 +186,4 @@ index fdfe87a..c3f9110 100644
186186
+ }
187187
}
188188
}
189-
}
189+
}

0 commit comments

Comments
 (0)