diff options
author | Raphael Moreira Zinsly <rzinsly@linux.vnet.ibm.com> | 2014-03-26 11:29:40 -0300 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-04-07 07:35:29 -0500 |
commit | 6967ae8d5e99c5dd46f01f643e7d43f569942714 (patch) | |
tree | 1c2de93ddc43bb6bb84f293ee123d2ffb772306f | |
parent | d4d7dda4103af55560e2d83efc690d3f08535fce (diff) | |
download | gperftools-6967ae8d5e99c5dd46f01f643e7d43f569942714.tar.gz |
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.
-rw-r--r-- | src/tests/heap-checker_unittest.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/heap-checker_unittest.cc b/src/tests/heap-checker_unittest.cc index 651cbfa..13cbb86 100644 --- a/src/tests/heap-checker_unittest.cc +++ b/src/tests/heap-checker_unittest.cc @@ -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 { |