mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-28 15:50:26 +08:00
bb7d249d65
This defines the global (per-module) CrashpadInfo structure properly on Linux/Android, located via the “crashpad_info” section name. Per the ELF specification, section names with a leading dot are reserved for the system. Reading that, I realized that the same is true of Mach-O sections with leading underscores, so this renames the section as used on Mach-O from __DATA,__crashpad_info to __DATA,crashpad_info. This change is sufficient to successfully build crashpad_client as a static library on Linux/Android, but the library is incomplete. There’s no platform-specific database implementation, no CaptureContext() or CRASHPAD_SIMULATE_CRASH() implementation, and most notably, no CrashpadClient implementation. BUG=crashpad:30 Change-Id: I29df7b0f8ee1c79bf8a19502812f59d4b1577b85 Reviewed-on: https://chromium-review.googlesource.com/406427 Reviewed-by: Robert Sesek <rsesek@chromium.org>