summaryrefslogtreecommitdiff
path: root/lang/ocaml
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2018-07-18 00:09:12 +0000
committerjoerg <joerg@pkgsrc.org>2018-07-18 00:09:12 +0000
commit808e92f863136c284182b4efd1d2ae79920cea72 (patch)
treea4070bcdf45b47e974bcf7ba4829dc7b6505702e /lang/ocaml
parentc5a0d289c7fa0a79ba2e1b6148c168c38a260215 (diff)
downloadpkgsrc-808e92f863136c284182b4efd1d2ae79920cea72.tar.gz
Fix attributes and entry size for the .rodata mergable constant section.
Diffstat (limited to 'lang/ocaml')
-rw-r--r--lang/ocaml/distinfo4
-rw-r--r--lang/ocaml/patches/patch-asmcomp_amd64_emit.mlp22
-rw-r--r--lang/ocaml/patches/patch-asmrun_amd64.S13
3 files changed, 38 insertions, 1 deletions
diff --git a/lang/ocaml/distinfo b/lang/ocaml/distinfo
index c9c8bf499c4..ce215dcd3b8 100644
--- a/lang/ocaml/distinfo
+++ b/lang/ocaml/distinfo
@@ -1,12 +1,14 @@
-$NetBSD: distinfo,v 1.120 2018/04/30 10:38:04 wiz Exp $
+$NetBSD: distinfo,v 1.121 2018/07/18 00:09:12 joerg Exp $
SHA1 (ocaml-4.06.1.tar.gz) = 63dc362344f1a7b448336c94c33207c2940be475
RMD160 (ocaml-4.06.1.tar.gz) = ad7a6038544a0d59b72b6fe9e81a4e69c158d397
SHA512 (ocaml-4.06.1.tar.gz) = 42560874ce363212fa4e862138d7260113bc8dff8b39c040332bbd9b039ba938788344ba8ce63ffc0a251bf21a6e493f3c1e505b6f51db6fec4d21578921060e
Size (ocaml-4.06.1.tar.gz) = 4049457 bytes
SHA1 (patch-Makefile) = 7fb492bbc3c44bad1753b8fc6928b7b0cadac436
+SHA1 (patch-asmcomp_amd64_emit.mlp) = 68cc42afd6439347524f2d81c48305dcbc173869
SHA1 (patch-asmcomp_asmlink.ml) = db2b387ea17f41a62c2bce53b91f945d5e29a82f
SHA1 (patch-asmrun_Makefile) = 86c88be262ae1278ca376d7966b496b49c549e72
+SHA1 (patch-asmrun_amd64.S) = 4be1058a241e03ff73cd08d2aa16b0134c4414ca
SHA1 (patch-byterun_Makefile) = 02797b10d685b25c0c6f5aab8eadc324e26826e9
SHA1 (patch-configure) = 0a4e40fb942a3154ca63259df23721e5bac3154c
SHA1 (patch-driver_compenv.ml) = 658e315bb08f8a1093f11c8474ac1e4ad73c8306
diff --git a/lang/ocaml/patches/patch-asmcomp_amd64_emit.mlp b/lang/ocaml/patches/patch-asmcomp_amd64_emit.mlp
new file mode 100644
index 00000000000..7bab5615038
--- /dev/null
+++ b/lang/ocaml/patches/patch-asmcomp_amd64_emit.mlp
@@ -0,0 +1,22 @@
+$NetBSD: patch-asmcomp_amd64_emit.mlp,v 1.3 2018/07/18 00:09:12 joerg Exp $
+
+--- asmcomp/amd64/emit.mlp.orig 2018-07-17 21:17:05.536787953 +0000
++++ asmcomp/amd64/emit.mlp
+@@ -986,7 +986,7 @@ let begin_assembly() =
+ | S_macosx -> D.section ["__TEXT";"__literal16"] None ["16byte_literals"]
+ | S_mingw64 | S_cygwin -> D.section [".rdata"] (Some "dr") []
+ | S_win64 -> D.data ()
+- | _ -> D.section [".rodata.cst8"] (Some "a") ["@progbits"]
++ | _ -> D.section [".rodata.cst8"] (Some "aM") ["@progbits,8"]
+ end;
+ D.align 16;
+ _label (emit_symbol "caml_negf_mask");
+@@ -1046,7 +1046,7 @@ let end_assembly() =
+ | S_macosx -> D.section ["__TEXT";"__literal8"] None ["8byte_literals"]
+ | S_mingw64 | S_cygwin -> D.section [".rdata"] (Some "dr") []
+ | S_win64 -> D.data ()
+- | _ -> D.section [".rodata.cst8"] (Some "a") ["@progbits"]
++ | _ -> D.section [".rodata.cst8"] (Some "aM") ["@progbits,8"]
+ end;
+ List.iter (fun (cst,lbl) -> emit_float_constant cst lbl) !float_constants
+ end;
diff --git a/lang/ocaml/patches/patch-asmrun_amd64.S b/lang/ocaml/patches/patch-asmrun_amd64.S
new file mode 100644
index 00000000000..0dcadcb19c5
--- /dev/null
+++ b/lang/ocaml/patches/patch-asmrun_amd64.S
@@ -0,0 +1,13 @@
+$NetBSD: patch-asmrun_amd64.S,v 1.1 2018/07/18 00:09:12 joerg Exp $
+
+--- asmrun/amd64.S.orig 2018-07-17 21:24:20.027817665 +0000
++++ asmrun/amd64.S
+@@ -724,7 +724,7 @@ G(caml_system__spacetime_shapes):
+ #elif defined(SYS_mingw64) || defined(SYS_cygwin)
+ .section .rdata,"dr"
+ #else
+- .section .rodata.cst8,"a",@progbits
++ .section .rodata.cst8,"aM",@progbits,8
+ #endif
+ .globl G(caml_negf_mask)
+ .align SIXTEEN_ALIGN