@@ -91,27 +91,30 @@ let function_sections = %%FUNCTION_SECTIONS%%
91
91
let probes = %%PROBES%%
92
92
let afl_instrument = %%AFL_INSTRUMENT%%
93
93
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) *)
94
97
let exec_magic_number = "Caml1999X029"
95
98
(* 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 "
99
102
and cmx_magic_number =
100
103
if flambda || flambda2 then
101
- "Caml2021y029 "
104
+ "Caml2021y500 "
102
105
else
103
- "Caml2021Y029 "
106
+ "Caml2021Y500 "
104
107
and cmxa_magic_number =
105
108
if flambda || flambda2 then
106
- "Caml2021z029 "
109
+ "Caml2021z500 "
107
110
else
108
- "Caml2021Z029 "
111
+ "Caml2021Z500 "
109
112
and ast_impl_magic_number = "Caml1999M029"
110
113
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 "
115
118
116
119
let interface_suffix = ref ".mli"
117
120
0 commit comments