]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Change the default PIE load address from 0x100000 (1MB) to 0x108000,
authorJulian Seward <jseward@acm.org>
Mon, 20 Oct 2008 22:24:31 +0000 (22:24 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 20 Oct 2008 22:24:31 +0000 (22:24 +0000)
to keep ppc32-linux happy.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8684

coregrind/m_ume.c

index 93d79a9a434686a79f1a5fb13bf0ebc16a91f322..9e13a8e751d285f3b3594fe20181ddecb466d849 100644 (file)
@@ -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;