jon.recoil.org

Module Linker_script

Generate linker scripts for the dissector.

This module generates a linker script that places partition sections in the correct output sections. It optionally incorporates an existing linker script provided via --script= on the linker command line.

In addition, if -assume-lld-without-64-bit-eh-frames was passed to ocamlopt, this generates a custom .eh_frame section with __EH_FRAME_BEGIN__ symbol and an empty .eh_frame_hdr section to work around LLD's inability to generate 64-bit .eh_frame_hdr tables.

val write : output_file:string -> existing_script:string option -> partitions:Partition.Linked.t list -> unit

write ~output_file ~existing_script ~partitions generates a linker script and writes it to the specified file.