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:
Raphael Moreira Zinsly 2014-03-26 11:29:40 -03:00 committed by Adhemerval Zanella
parent d4d7dda410
commit 6967ae8d5e

View File

@ -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 {