[Qemu-devel] Finding first TranslationBlock in user mode emulation

2013-04-05 Thread Ivan Jovanovic
Hello everyone, For the student project that I am working on I am executing a program in user mode emulation in qemu. 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

Re: [Qemu-devel] Finding first TranslationBlock in user mode emulation

2013-04-05 Thread Peter Maydell
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

Re: [Qemu-devel] Finding first TranslationBlock in user mode emulation

2013-04-05 Thread Laurent Desnogues
On Fri, Apr 5, 2013 at 4:15 PM, Peter Maydell peter.mayd...@linaro.org wrote: 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

Re: [Qemu-devel] Finding first TranslationBlock in user mode emulation

2013-04-05 Thread Ivan Jovanovic
Thank you for your reply! The thing is that, for one particular binary I can determine the address of main() in the way that you've described, or even by compiling the program with debug information and observing the in_asm log. What I need is this to work in a general case, for every binary,