From: Julian Seward Date: Mon, 20 Oct 2008 22:24:31 +0000 (+0000) Subject: Change the default PIE load address from 0x100000 (1MB) to 0x108000, X-Git-Tag: svn/VALGRIND_3_4_0~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44d2f617a546b36df4fb9463a20d7f9986f79936;p=thirdparty%2Fvalgrind.git Change the default PIE load address from 0x100000 (1MB) to 0x108000, to keep ppc32-linux happy. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8684 --- diff --git a/coregrind/m_ume.c b/coregrind/m_ume.c index 93d79a9a43..9e13a8e751 100644 --- a/coregrind/m_ume.c +++ b/coregrind/m_ume.c @@ -362,8 +362,12 @@ static Int load_ELF(Int fd, const HChar* name, /*MOD*/ExeInfo* info) become legit, which is really bad) and causes problems for exp-ptrcheck, which assumes all numbers below 1MB are nonpointers. So, hackily, move it above 1MB. */ - if (ebase < 0x100000) - ebase = 0x100000; + /* Later .. is appears ppc32-linux tries to put [vdso] at 1MB, + which totally screws things up, because nothing else can go + there. So bump the hacky load addess along by 0x8000, to + 0x108000. */ + if (ebase < 0x108000) + ebase = 0x108000; } info->phnum = e->e.e_phnum;