mirror of
https://github.com/gperftools/gperftools
synced 2025-01-18 12:51:02 +00:00
Fixed heap checker test.
This patch changes the way that heap checker test identifies the architecture's endianness. The test was using _Call_Elf to know if the machine is Big Endian, but the _Call_Elf not always is defined in ppc64 BE and always is defined in LE machines.
This commit is contained in:
parent
d4d7dda410
commit
6967ae8d5e
@ -1267,8 +1267,7 @@ static void* Mmapper(uintptr_t* addr_after_mmap_call) {
|
||||
// On PPC64 the stacktrace returned by GetStatcTrace contains the function
|
||||
// address from .text segment while function pointers points to ODP entries.
|
||||
// The following code decodes the ODP to get the actual symbol address.
|
||||
#if defined(__linux) && defined(__PPC64__) && (defined(__CALL_ELF) && \
|
||||
(__CALL_ELF == 1))
|
||||
#if defined(__linux) && defined(__PPC64__) && (_CALL_ELF != 2)
|
||||
static inline uintptr_t GetFunctionAddress (void* (*func)(uintptr_t*))
|
||||
{
|
||||
struct odp_entry_t {
|
||||
|
Loading…
Reference in New Issue
Block a user