mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
elf: Use compiler macros in crashpad info note
build/build_config.h sometimes includes other headers which aren't appropriate for .S files. Bug: crashpad:30 Change-Id: Ie039e08599137d157c60482c72d6eba6a5566ef5 Reviewed-on: https://chromium-review.googlesource.com/966876 Commit-Queue: Joshua Peraza <jperaza@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
c27a1aaea0
commit
132a610184
@ -16,7 +16,6 @@
|
||||
// of finding the instance of CrashpadInfo g_crashpad_info without requiring
|
||||
// that symbol to be in the dynamic symbol table.
|
||||
|
||||
#include "build/build_config.h"
|
||||
#include "util/misc/elf_note_types.h"
|
||||
|
||||
// namespace crashpad {
|
||||
@ -45,16 +44,16 @@ name:
|
||||
name_end:
|
||||
.balign NOTE_ALIGN
|
||||
desc:
|
||||
#if defined(ARCH_CPU_64_BITS)
|
||||
#if defined(__LP64__)
|
||||
.quad CRASHPAD_INFO_SYMBOL
|
||||
#else
|
||||
#if defined(ARCH_CPU_LITTLE_ENDIAN)
|
||||
#if defined(__LITTLE_ENDIAN__)
|
||||
.long CRASHPAD_INFO_SYMBOL
|
||||
.long 0
|
||||
#else
|
||||
.long 0
|
||||
.long CRASHPAD_INFO_SYMBOL
|
||||
#endif // ARCH_CPU_LITTLE_ENDIAN
|
||||
#endif // ARCH_CPU_64_BITS
|
||||
#endif // __LITTLE_ENDIAN__
|
||||
#endif // __LP64__
|
||||
desc_end:
|
||||
.size CRASHPAD_NOTE_REFERENCE, .-CRASHPAD_NOTE_REFERENCE
|
||||
|
Loading…
x
Reference in New Issue
Block a user