]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix bad undefined value error, thanks to Tom.
authorNicholas Nethercote <n.nethercote@gmail.com>
Tue, 26 Oct 2004 17:03:54 +0000 (17:03 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Tue, 26 Oct 2004 17:03:54 +0000 (17:03 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2857

coregrind/stage1.c

index 9d66d20af8ced515b6e902bb3f79d0a91e945871..3bb9e708b93b908acbf9cc30181f263cb212f530 100644 (file)
@@ -259,6 +259,7 @@ static void main2(void)
    int *esp;
    char buf[strlen(valgrind_lib) + sizeof(stage2) + 16];
 
+   info.exe_end  = PGROUNDDN(init_sp);
 #ifdef HAVE_PIE
    info.exe_base = ROUNDDN(info.exe_end - 0x02000000, 0x10000000);
    assert(info.exe_base >= PGROUNDUP(&_end));
@@ -270,7 +271,6 @@ static void main2(void)
    info.exe_base = PGROUNDUP(&_end);
    info.map_base = KICKSTART_BASE + 0x01000000;
 #endif
-   info.exe_end  = PGROUNDDN(init_sp);
 
    info.argv = NULL;