]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Patch 2 in a series of cleanup patches from Will Schmidt
authorCarl Love <cel@us.ibm.com>
Wed, 6 May 2015 19:44:14 +0000 (19:44 +0000)
committerCarl Love <cel@us.ibm.com>
Wed, 6 May 2015 19:44:14 +0000 (19:44 +0000)
Adjust the badjump2 test for ppc64le/ABIV2. Under the ABIV2 there
is no function descriptor, so the fn[] setup does not apply.
This fixes the badjump2 test failure as seen on ppc64le.

This patch fixes Vagrind bugzilla 347322.

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

memcheck/tests/badjump2.c

index ad7329f63b90f6fd9fbd51dd79a6c9c0dfa365e0..7e09af52e1ff4ef13667e9b0299ba973bc4a243b 100644 (file)
@@ -35,7 +35,7 @@ int main(void)
 
    if (setjmp(myjmpbuf) == 0) {
       // Jump to zero; will cause seg fault
-#if defined(__powerpc64__)
+#if defined(__powerpc64__) && (_CALL_ELF != 2)
       unsigned long int fn[3];
       fn[0] = 0;
       fn[1] = 0;