summaryrefslogtreecommitdiff
path: root/lib/elf.sail
diff options
context:
space:
mode:
authorAlasdair Armstrong2018-02-21 21:00:40 +0000
committerAlasdair Armstrong2018-02-21 21:03:26 +0000
commitc63741a21b5a1f77f85987f15f6aac3321a91f0a (patch)
tree3894269108112a0569573213954a3dcc53528ddf /lib/elf.sail
parent4f0214a06ff70a9486fc1d47049f04d894a102e9 (diff)
Can now compile aarch64/no_vector into C
Now compiles to C and builds a working executable. Just need to correctly implement all the library builtins (some are still stubs), and it should work.
Diffstat (limited to 'lib/elf.sail')
-rw-r--r--lib/elf.sail10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/elf.sail b/lib/elf.sail
index f158fbad..e953839d 100644
--- a/lib/elf.sail
+++ b/lib/elf.sail
@@ -1,8 +1,14 @@
$ifndef _ELF
$define _ELF
-val elf_entry = "Elf_loader.elf_entry" : unit -> int
+val elf_entry = {
+ ocaml: "Elf_loader.elf_entry",
+ c: "elf_entry"
+} : unit -> int
-val elf_tohost = "Elf_loader.elf_tohost" : unit -> int
+val elf_tohost = {
+ ocaml: "Elf_loader.elf_tohost",
+ c: "elf_tohost"
+} : unit -> int
$endif