Skip to content

Commit bd61170

Browse files
authored
Bump magic numbers (#5)
(+ Bootstrap)
1 parent c50c47d commit bd61170

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

boot/ocamlc

5.35 KB
Binary file not shown.

boot/ocamllex

-92 Bytes
Binary file not shown.

utils/config.mlp

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,27 +91,30 @@ let function_sections = %%FUNCTION_SECTIONS%%
9191
let probes = %%PROBES%%
9292
let afl_instrument = %%AFL_INSTRUMENT%%
9393

94+
(* When artifacts are incompatible with upstream OCaml, ocaml-jst uses
95+
magic numbers ending in 5xx. (The AST and bytecode executables remain
96+
compatible, so use upstream numbers) *)
9497
let exec_magic_number = "Caml1999X029"
9598
(* exec_magic_number is duplicated in runtime/caml/exec.h *)
96-
and cmi_magic_number = "Caml1999I029"
97-
and cmo_magic_number = "Caml1999O029"
98-
and cma_magic_number = "Caml1999A029"
99+
and cmi_magic_number = "Caml1999I500"
100+
and cmo_magic_number = "Caml1999O500"
101+
and cma_magic_number = "Caml1999A500"
99102
and cmx_magic_number =
100103
if flambda || flambda2 then
101-
"Caml2021y029"
104+
"Caml2021y500"
102105
else
103-
"Caml2021Y029"
106+
"Caml2021Y500"
104107
and cmxa_magic_number =
105108
if flambda || flambda2 then
106-
"Caml2021z029"
109+
"Caml2021z500"
107110
else
108-
"Caml2021Z029"
111+
"Caml2021Z500"
109112
and ast_impl_magic_number = "Caml1999M029"
110113
and ast_intf_magic_number = "Caml1999N029"
111-
and cmxs_magic_number = "Caml1999D029"
112-
and cmt_magic_number = "Caml1999T029"
113-
and linear_magic_number = "Caml1999L029"
114-
and cfg_magic_number = "Caml2021G029"
114+
and cmxs_magic_number = "Caml1999D500"
115+
and cmt_magic_number = "Caml1999T500"
116+
and linear_magic_number = "Caml1999L500"
117+
and cfg_magic_number = "Caml2021G500"
115118

116119
let interface_suffix = ref ".mli"
117120

0 commit comments

Comments
 (0)