[Libguestfs] [PATCH 1/2] tools: Link OCaml programs with -runtime-variant _pic if available.

Pino Toscano ptoscano at redhat.com
Fri Sep 21 08:37:41 UTC 2018


On Thursday, 20 September 2018 14:16:15 CEST Richard W.M. Jones wrote:
> OCaml has a small runtime which is statically linked into the virt
> tools (providing things like GC and primitives).  Since OCaml 4.03 it
> has been possible to select variants of this runtime, one of which is
> compiled with -fPIC, using ‘ocamlopt -runtime-variant _pic’.
> 
> This has performance implications on i686, but is relatively free on
> other architectures.  Since it (in theory) adds to the security of the
> final binary this commit enables it whenever it is available.
> ---

LGTM.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20180921/8c8bcb3e/attachment.sig>


More information about the Libguestfs mailing list