Compute base addresses from program headers while reading /proc/self/maps.

This cherry picks this glog change:
https://github.com/google/glog/pull/261
with a reimplementation of the program header reading logic for the
sandboxed symbolizer.

This should cause unsymbolized stack traces to contain the correct
addresses for binaries linked with lld.

Bug: 772559
Change-Id: Ief9cbb463b3b4c32149da893c89c2eefd76b05d4
Reviewed-on: https://chromium-review.googlesource.com/752753
Commit-Queue: Peter Collingbourne <pcc@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#513956}

CrOS-Libchrome-Original-Commit: 6f903f3a228bc8e10cd7bda76342954feb3000c5
2 files changed
tree: 51d0e8c3938daa16f68837e49a449d9faa11a2b6
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/