aboutsummaryrefslogtreecommitdiffstats
path: root/checklink/PPC_utils.ml
diff options
context:
space:
mode:
authorFrançois Pottier <francois.pottier@inria.fr>2015-10-23 15:08:33 +0200
committerFrançois Pottier <francois.pottier@inria.fr>2015-10-23 15:17:50 +0200
commit136986c204af19341aeb455d72fe817b16fa6fff (patch)
tree02e9178d9f2cf942bd32366891d480ff161406f6 /checklink/PPC_utils.ml
parentc46723c0169145d41d1879c236f53314456f1ba1 (diff)
parent1cb3d93ff278ebbd0c6967c5f9401a97f9b618b4 (diff)
downloadcompcert-136986c204af19341aeb455d72fe817b16fa6fff.tar.gz
compcert-136986c204af19341aeb455d72fe817b16fa6fff.zip
Merge remote branch 'upstream/master' into clean
Conflicts: Makefile.extr
Diffstat (limited to 'checklink/PPC_utils.ml')
-rw-r--r--checklink/PPC_utils.ml26
1 files changed, 0 insertions, 26 deletions
diff --git a/checklink/PPC_utils.ml b/checklink/PPC_utils.ml
deleted file mode 100644
index 6c865dd0..00000000
--- a/checklink/PPC_utils.ml
+++ /dev/null
@@ -1,26 +0,0 @@
-open ELF_types
-open ELF_utils
-open Library
-open PPC_parsers
-open PPC_types
-
-let code_at_vaddr (e: elf)(vaddr: int32)(nb_instr: int): ecode option =
- begin match bitstring_at_vaddr e vaddr (Safe32.of_int (4 * nb_instr)) with
- | None -> None
- | Some(code_bs, _, _) -> Some (parse_code_as_list code_bs)
- end
-
-let code_of_sym (e: elf) (sym: elf32_sym): ecode option =
- begin match bitstring_at_vaddr e sym.st_value sym.st_size with
- | None -> None
- | Some(bs, _, _) -> Some(parse_code_as_list bs)
- end
-
-let code_of_sym_ndx (e: elf) (ndx: int): ecode option =
- code_of_sym e e.e_symtab.(ndx)
-
-let code_of_sym_name (e: elf) (name: string): ecode option =
- begin match ndx_of_sym_name e name with
- | Some ndx -> code_of_sym_ndx e ndx
- | None -> None
- end