summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Frederick Mayle <fmayle@google.com> 2024-05-14 16:55:14 -0700
committer Frederick Mayle <fmayle@google.com> 2024-05-23 22:28:22 +0000
commitf7b65d1f9c20c1fe31b3c6354b26046fd9d33496 (patch)
tree909cb7a24ad744d497e31c551b14a06bb7eed771 /services/surfaceflinger/RegionSamplingThread.cpp
parent91f0294c09279c59deb5d6f7a2d728e19238d9da (diff)
libbinder: support exporting fewer symbols
This commit explicitly marks symbols in the code with default visibility if they should be part of the libbinder ABI. Later, we'll set the default symbol visibility to hidden and so any symbols not explicitly marked as exported will be hidden. We are still overexporting symbols a bit. When `LIBBINDER_EXPORTED` is applied to a class, it exports all of that class's symbols. I've tried to only export class members, but in a few cases it didn't seem worth the trouble, e.g. where all the members need to be exported. Additionally, we are exporting some symbols only needed by binder test binaries. Since those tests run against the standard libbinder.so, we need to include the symbols as part of the ABI. On aarch64, this reduces the size of libbinder_on_trusty_mock.so by 10.7% and libbinder.so by 7.5%, primarily in the .text, .dynstr, and .dynsym sections (but none of this takes effect until we actually enabled it in a later commit). Bug: 338458975 Test: TH Change-Id: Idc348c2b12124a8bbcebeea49920267a995367b6
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions