|
From: Will S. <wil...@vn...> - 2015-05-05 22:26:50
|
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.
Signed-off-by: Will Schmidt <wil...@vn...>
---
memcheck/tests/badjump2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/memcheck/tests/badjump2.c b/memcheck/tests/badjump2.c
index ad7329f..7e09af5 100644
--- a/memcheck/tests/badjump2.c
+++ b/memcheck/tests/badjump2.c
@@ -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;
|