1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
2011-07-27 07:17:02 -07:00
|
|
|
(* OCaml *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
(* Link a set of .cmx/.o files and produce an executable or a plugin *)
|
1995-07-02 09:41:48 -07:00
|
|
|
|
2000-04-21 01:13:22 -07:00
|
|
|
open Format
|
|
|
|
|
2012-01-20 06:23:34 -08:00
|
|
|
val link: formatter -> string list -> string -> unit
|
1995-07-02 09:41:48 -07:00
|
|
|
|
2012-01-20 06:23:34 -08:00
|
|
|
val link_shared: formatter -> string list -> string -> unit
|
2007-11-06 07:16:56 -08:00
|
|
|
|
|
|
|
val call_linker_shared: string list -> string -> unit
|
|
|
|
|
2010-05-19 04:29:38 -07:00
|
|
|
val check_consistency: string -> Cmx_format.unit_infos -> Digest.t -> unit
|
2014-05-01 23:19:55 -07:00
|
|
|
val extract_crc_interfaces: unit -> (string * Digest.t) list
|
|
|
|
val extract_crc_implementations: unit -> (string * Digest.t) list
|
2002-02-08 08:55:44 -08:00
|
|
|
|
1995-07-02 09:41:48 -07:00
|
|
|
type error =
|
|
|
|
File_not_found of string
|
|
|
|
| Not_an_object_file of string
|
2000-04-10 08:01:30 -07:00
|
|
|
| Missing_implementations of (string * string list) list
|
1995-07-02 09:41:48 -07:00
|
|
|
| Inconsistent_interface of string * string * string
|
|
|
|
| Inconsistent_implementation of string * string * string
|
|
|
|
| Assembler_error of string
|
|
|
|
| Linking_error
|
2002-01-04 07:57:19 -08:00
|
|
|
| Multiple_definition of string * string * string
|
2006-10-17 05:33:58 -07:00
|
|
|
| Missing_cmx of string * string
|
1995-07-02 09:41:48 -07:00
|
|
|
|
|
|
|
exception Error of error
|
|
|
|
|
2000-04-21 01:13:22 -07:00
|
|
|
val report_error: formatter -> error -> unit
|