DescriptionAdd a stub __cxa_demangle to disable LLVM's demangler.
LLVM's demangler is fairly large and included by default in linked
binaries. Chromium's demangling happens on host systems when needed,
so demangling code is not required on the target.
Supplying our own stub function stops the linker pulling in the LLVM
demangler from libc++, and reduces the size of libchrome.so accordingly.
Results from a Release build:
Before:
$ size --format=SysV out/Release/chrome_apk/libs/armeabi-v7a/libchrome.so
section size addr
...
.text 26210064 2237952
...
Total 35736055
After:
$ size --format=SysV out/Release/chrome_apk/libs/armeabi-v7a/libchrome.so
section size addr
...
.text 26007820 2237888
...
Total 35523543
BUG=485154
Committed: https://crrev.com/0e736a812b7aa3f3e1643929e4d0893122b70989
Cr-Commit-Position: refs/heads/master@{#336765}
Patch Set 1 #
Total comments: 3
Messages
Total messages: 11 (2 generated)
|