Browse thread
Native executable symtable
-
Alex Baretta
- Nicolas Cannasse
- David Brown
- Xavier Leroy
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-11-11 (10:40) |
From: | Nicolas Cannasse <warplayer@f...> |
Subject: | Re: [Caml-list] Native executable symtable |
> We have found that the md5sum can be fetced directly from the executable > file associated to the process. This technique is documented nowhere, as > far as I can see, but the source code of Symtable.init_toplevel is very > informative as to how to do this for bytecode executables. What I would > like to know is how to implement this technique for native code > executables. Essentially, how am I supposed to parse the binary > executable to extract the symtable information. Also, how am I supposed > to figure out at runtime whether I must use the bytecode method or the > native code method? Equivalently, how do I know at runtime if the > process is running a bytecode executable or a native one? > > Thank you very much. > > Alex I would say this is very difficult since it depends on linker used to produce executable. For bytecode things are always very easy since the CMO/CMA are just Marshalled data of some ocaml data structure. As always, it get complicated when you deal with system specificity issues. Regards, Nicolas Cannasse