|
From: Tom H. <to...@co...> - 2005-07-29 17:02:10
|
In message <942...@ha...>
"Yeshurun, Meir" <mei...@in...> wrote:
> I googled this error and saw that someone suggested the following:
>
> The crude hack is to change in coregrind/vg_main.c
>
> case AT_PHDR:
> VG_(valgrind_base) = PGROUNDDN(auxv->u.a_val);
> break;
>
> to
>
> case AT_PHDR:
> VG_(valgrind_base) = 0xa0000000; /* boooo! */
> break
I think that will pretty much entirely defeat the purpose of using
the PIE build... You might as well just not bother.
> Is this a good idea?
Not really, you're forcing valgrind to load at an address in the
lower 2Gb of memory so you're back to having the same sort of
address space limitations as the non-PIE build.
Actually, what you're doing is slightly more wierd than that because
valgrind itself will still be loaded at a high address but the client
program will be limited to using memory below 0xa0000000.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|