diff src/os/linux/vm/decoder_linux.cpp @ 14441:e7cbc95179c4

8019929: PPC64 (part 107): Extend ELF-decoder to support PPC64 function descriptor tables Summary: Extend ELF-decoder to support PPC64 function descriptor tables Reviewed-by: kvn, zgu
author simonis
date Thu, 05 Dec 2013 19:19:09 +0100
parents b9a9ed0f8eeb
children 4ca6dc0799b6
line wrap: on
line diff
--- a/src/os/linux/vm/decoder_linux.cpp	Wed Nov 27 16:16:21 2013 -0800
+++ b/src/os/linux/vm/decoder_linux.cpp	Thu Dec 05 19:19:09 2013 +0100
@@ -32,6 +32,12 @@
   char* result;
   size_t size = (size_t)buflen;
 
+#ifdef PPC64
+  // On PPC64 ElfDecoder::decode() may return a dot (.) prefixed name
+  // (see elfFuncDescTable.hpp for details)
+  if (symbol && *symbol == '.') symbol += 1;
+#endif
+
   // Don't pass buf to __cxa_demangle. In case of the 'buf' is too small,
   // __cxa_demangle will call system "realloc" for additional memory, which
   // may use different malloc/realloc mechanism that allocates 'buf'.