Skip to content

Commit

Permalink
overlay/patches: update weak and common patch
Browse files Browse the repository at this point in the history
  • Loading branch information
shumvgolove authored and angerman committed Nov 29, 2022
1 parent 1258709 commit 4b20b23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions overlays/patches/ghc/ghc-8.10.7-linker-weak-and-common.patch
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ index fdfe87a..c3f9110 100644
+ oc->common_mem = NULL;
+ oc->common_size = common_size;
if(common_size > 0) {
- common_mem = mmapAnonForLinker(common_size);
- common_mem = mmapAnonForLinker(common_size, true, "anon:common_mem");
- if (common_mem == NULL) {
+ oc->common_mem = mmapAnonForLinker(common_size);
+ oc->common_mem = mmapAnonForLinker(common_size, true, "anon:common_mem");
+ if (oc->common_mem == NULL) {
barf("ocGetNames_ELF: Failed to allocate memory for SHN_COMMONs");
}
Expand Down Expand Up @@ -186,4 +186,4 @@ index fdfe87a..c3f9110 100644
+ }
}
}
}
}

0 comments on commit 4b20b23

Please sign in to comment.