|
From: Tom H. <to...@co...> - 2006-11-17 08:32:20
|
In message <116...@ba...>
Stephen Torri <st...@to...> wrote:
> On Thu, 2006-11-16 at 15:11 +0000, Tom Hughes wrote:
>> In message <116...@ba...>
>> Stephen Torri <st...@to...> wrote:
>>
>> > How does valgrind load itself at address 0x38000000? I see the make
>> > variable VALT_LOAD_ADDRESS. What I cannot determine is how that is used.
>>
>> By passing -Wl,-defsym,valt_load_address=... to the linker when
>> linking each of the static tool binaries.
>
> 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.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|