Hi,
The attached PPC32 patch came from one of our Fedora packagers:
http://pkgs.fedoraproject.org/cgit/dyninst.git/commit/?id=98878d90
It's roughly the same fix as Matt's commit 913a9116 for PPC64.
Thanks,
Josh
>From fa5d27f442c658f409408d939aa739c5954c4d26 Mon Sep 17 00:00:00 2001
From: Karsten Hopp <karsten@xxxxxxxxxx>
Date: Wed, 15 Aug 2012 15:18:40 +0200
Subject: [PATCH] check if R_PPC_NUM is defined before using it, similar to
R_PPC64_NUM
---
symtabAPI/src/relocationEntry-elf-ppc32.C | 2 ++
1 file changed, 2 insertions(+)
diff --git a/symtabAPI/src/relocationEntry-elf-ppc32.C b/symtabAPI/src/relocationEntry-elf-ppc32.C
index 60f1262..efefaae 100644
--- a/symtabAPI/src/relocationEntry-elf-ppc32.C
+++ b/symtabAPI/src/relocationEntry-elf-ppc32.C
@@ -101,7 +101,9 @@ const char* relocationEntry::relType2Str(unsigned long r, unsigned /*addressWidt
CASE_RETURN_STR(R_PPC_GOT_DTPREL16_LO);
CASE_RETURN_STR(R_PPC_GOT_DTPREL16_HI);
CASE_RETURN_STR(R_PPC_GOT_DTPREL16_HA);
+#if defined(R_PPC_NUM)
CASE_RETURN_STR(R_PPC_NUM);
+#endif
CASE_RETURN_STR(R_PPC_EMB_NADDR32);
CASE_RETURN_STR(R_PPC_EMB_NADDR16);
CASE_RETURN_STR(R_PPC_EMB_NADDR16_LO);
--
1.7.11.2
|