On 5 April 2013 15:06, Ivan Jovanovic <jovanovic.d.i...@gmail.com> wrote:
> When I examine in_asm and out_asm logs I notice that before my program
> starts emulating, dynamic linker code is being emulated, which is, of
> course, expected.
>
> My question is, is there a way in qemu (a flag or something similar) to
> determine during emulation when the dl code finishes executing and execution
> of the first TranslationBlock of my code starts?

No, because QEMU doesn't care what your program does -- it just
emulates code and doesn't need to know whether it is in the
dynamic linker or the main program binary or a shared library
or even code your program has dynamically generated at runtime.

I suggest you look at the symbols for your guest binary (with
'nm' or 'objdump', for example) and match up the addresses in
them with your code. (In particular this should let you find out
which TB corresponds to the main() function.) You can either do
this by hand or you could probably write a script to annotate
the logs for you.

-- PMM

Reply via email to