Reduce the crazy linker's on-disk footprint.
commit5231685e8e463362d76e7244022c28d1471cdf42
authorsimonb <simonb@chromium.org>
Tue, 23 Jun 2015 12:57:53 +0000 (23 05:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 23 Jun 2015 12:58:37 +0000 (23 12:58 +0000)
treeb0b64a977e84b8b6d5b528d948841e77365e6baf
parentea4ee25a2d5ee8080c3688b450e1ca2325693aa6
Reduce the crazy linker's on-disk footprint.

The change to enable libc++ on Android caused a large increase in the size
of libchromium_android_linker.so:
  https://codereview.chromium.org/951983002

Most of this size increase comes from LLVM's __cxa_demangle, but this function
is not required by the crazy linker.  Providing a local stub implementation
prevents LLVM's implementation being linked from libc++, and reduces the size
of the crazy linker -- for example from 292kb down to 83kb on ARM.

BUG=502299

Review URL: https://codereview.chromium.org/1193393008

Cr-Commit-Position: refs/heads/master@{#335659}
third_party/android_crazy_linker/README.chromium
third_party/android_crazy_linker/src/src/crazy_linker_wrappers.cpp