|
From: Stephen T. <st...@to...> - 2006-11-17 17:25:00
|
On Fri, 2006-11-17 at 08:32 +0000, Tom Hughes wrote: > > Ok. So how does valgrind handle loading the programs its going to test > > at their expected address? > > That all starts with VG_(do_exec) in coregrind/m_ume.c but basically > we just implement an ELF loader. This confirms my suspicions that I will need to create a loader. The framework I am building is written in C++. I need the functionality that you have in aspacemgr for creating the space at the desire location using the mmap2 system call. Since this coregrind functionality is not available from the installed headers I will either need to copy the code from the copy I checked out and use it or create it myself. What do you recommend that I do? Stephen |