|
From: Yeshurun, M. <mei...@in...> - 2005-07-29 17:44:05
|
Oops, forgot to CC valgrind-users
-----Original Message-----
From: Yeshurun, Meir=20
Sent: Friday, July 29, 2005 8:43 PM
To: 'Tom Hughes'
Subject: RE: [Valgrind-users] Running Valgrind on large programs
So are you saying it would make sense with the non-PIE version?
Thanks,
Meir
-----Original Message-----
From: val...@li...
[mailto:val...@li...] On Behalf Of Tom
Hughes
Sent: Friday, July 29, 2005 8:01 PM
To: val...@li...
Subject: Re: [Valgrind-users] Running Valgrind on large programs
In message
<942...@ha...>
"Yeshurun, Meir" <mei...@in...> wrote:
> I googled this error and saw that someone suggested the following:
>=20
> The crude hack is to change in coregrind/vg_main.c
>=20
> case AT_PHDR:
> VG_(valgrind_base) =3D PGROUNDDN(auxv->u.a_val);
> break;
>=20
> to
>=20
> case AT_PHDR:
> VG_(valgrind_base) =3D 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
--=20
Tom Hughes (to...@co...)
http://www.compton.nu/
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. =
http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclick
_______________________________________________
Valgrind-users mailing list
Val...@li...
https://lists.sourceforge.net/lists/listinfo/valgrind-users
|
|
From: Yeshurun, M. <mei...@in...> - 2005-07-29 18:10:13
|
-----Original Message----- From: Tom Hughes [mailto:to...@co...]=20 Sent: Friday, July 29, 2005 8:54 PM To: Yeshurun, Meir Subject: RE: [Valgrind-users] Running Valgrind on large programs In message <942...@ha...> you wrote: > So are you saying it would make sense with the non-PIE version? Not really, the way to do it in the non-PIE version would be to alter the value of KICKSTART_BASE for amd64 in the configuration script. Tom --=20 Tom Hughes (to...@co...) http://www.compton.nu/ |