pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ocaml Fix attributes and entry size for the .roda...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/27385f4ba39c
branches:  trunk
changeset: 310547:27385f4ba39c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jul 18 00:09:12 2018 +0000

description:
Fix attributes and entry size for the .rodata mergable constant section.

diffstat:

 lang/ocaml/distinfo                             |   4 +++-
 lang/ocaml/patches/patch-asmcomp_amd64_emit.mlp |  22 ++++++++++++++++++++++
 lang/ocaml/patches/patch-asmrun_amd64.S         |  13 +++++++++++++
 3 files changed, 38 insertions(+), 1 deletions(-)

diffs (62 lines):

diff -r 0fb482b06d4c -r 27385f4ba39c lang/ocaml/distinfo
--- a/lang/ocaml/distinfo       Wed Jul 18 00:07:51 2018 +0000
+++ b/lang/ocaml/distinfo       Wed Jul 18 00:09:12 2018 +0000
@@ -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 -r 0fb482b06d4c -r 27385f4ba39c lang/ocaml/patches/patch-asmcomp_amd64_emit.mlp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ocaml/patches/patch-asmcomp_amd64_emit.mlp   Wed Jul 18 00:09:12 2018 +0000
@@ -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 -r 0fb482b06d4c -r 27385f4ba39c lang/ocaml/patches/patch-asmrun_amd64.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ocaml/patches/patch-asmrun_amd64.S   Wed Jul 18 00:09:12 2018 +0000
@@ -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



Home | Main Index | Thread Index | Old Index