|
From: <sv...@va...> - 2015-05-06 19:44:22
|
Author: carll
Date: Wed May 6 20:44:14 2015
New Revision: 15184
Log:
Patch 2 in a series of cleanup patches from Will Schmidt
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.
Modified:
trunk/memcheck/tests/badjump2.c
Modified: trunk/memcheck/tests/badjump2.c
==============================================================================
--- trunk/memcheck/tests/badjump2.c (original)
+++ trunk/memcheck/tests/badjump2.c Wed May 6 20:44:14 2015
@@ -35,7 +35,7 @@
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;
|