mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8019929: PPC64 (part 107): Extend ELF-decoder to support PPC64 function descriptor tables
Extend ELF-decoder to support PPC64 function descriptor tables Reviewed-by: kvn, zgu
This commit is contained in:
parent
ecca1bcc72
commit
d767bd2dfd
12 changed files with 350 additions and 29 deletions
|
@ -32,6 +32,12 @@ bool ElfDecoder::demangle(const char* symbol, char *buf, int buflen) {
|
|||
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'.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue