Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first steps towards to using llvm 4.0 * minor * minor * minor fix for 3.4 * just stylistic changes * renaming * hide all bap-llvm stuff in oasis * added a llvm version parameter, also rm old (and odd) file x86_llvm_config * mionr * fix oasis and internal modules * minor * mv reloatable to separate plugin * minor * llvm oasis stuff reworked again * minor * edited dockerfile * fix version choosing * minor * minor
- Loading branch information
Showing
22 changed files
with
529 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
open Core_kernel.Std | ||
|
||
let strip_version ver = | ||
if String.length ver <> 5 then ver | ||
else String.sub ver 0 3 | ||
|
||
|
||
module Std = struct | ||
module Llvm_disasm = Bap_llvm_disasm | ||
module Legacy_loader = Bap_llvm_loader | ||
module Ogre_loader = Bap_llvm_ogre_loader | ||
module Scheme = Bap_llvm_ogre_types.Scheme | ||
module Coff_scheme = Bap_llvm_coff_scheme | ||
module Elf_scheme = Bap_llvm_elf_scheme | ||
module Macho_scheme = Bap_llvm_macho_scheme | ||
type x86_syntax = [`att | `intel] [@@deriving sexp] | ||
|
||
let llvm_version = strip_version Bap_llvm_config.version | ||
let init_disassembler = Bap_llvm_disasm.init | ||
let init_loader = Bap_llvm_ogre_loader.init | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
open Core_kernel.Std | ||
|
||
module Std : sig | ||
type x86_syntax = [`att | `intel] [@@deriving sexp] | ||
|
||
val llvm_version : string | ||
val init_disassembler : ?x86_syntax:x86_syntax -> unit -> unit Or_error.t | ||
val init_loader : ?base:int64 -> unit -> unit | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.