elf: Use compiler macros in crashpad info size test note

Bug: crashpad:30
Change-Id: If5bdd15dfc050ef57df0e3b59dd6a5e74d4a9b22
Reviewed-on: https://chromium-review.googlesource.com/972367
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Joshua Peraza 2018-03-20 15:14:16 -07:00
parent f5483cb99f
commit cf9e96b856

View File

@ -16,7 +16,6 @@
// of finding the instance of CrashpadInfo g_crashpad_info without requiring // of finding the instance of CrashpadInfo g_crashpad_info without requiring
// that symbol to be in the dynamic symbol table. // that symbol to be in the dynamic symbol table.
#include "build/build_config.h"
#include "util/misc/elf_note_types.h" #include "util/misc/elf_note_types.h"
// namespace crashpad { // namespace crashpad {
@ -41,16 +40,16 @@ name:
name_end: name_end:
.balign NOTE_ALIGN .balign NOTE_ALIGN
desc: desc:
#if defined(ARCH_CPU_64_BITS) #if defined(__LP64__)
.quad TEST_CRASHPAD_INFO_SYMBOL .quad TEST_CRASHPAD_INFO_SYMBOL
#else #else
#if defined(ARCH_CPU_LITTLE_ENDIAN) #if defined(__LITTLE_ENDIAN__)
.long TEST_CRASHPAD_INFO_SYMBOL .long TEST_CRASHPAD_INFO_SYMBOL
.long 0 .long 0
#else #else
.long 0 .long 0
.long TEST_CRASHPAD_INFO_SYMBOL .long TEST_CRASHPAD_INFO_SYMBOL
#endif // ARCH_CPU_LITTLE_ENDIAN #endif // __LITTLE_ENDIAN__
#endif // ARCH_CPU_64_BITS #endif // __LP64__
desc_end: desc_end:
.size info_size_test_note, .-info_size_test_note .size info_size_test_note, .-info_size_test_note