diff options
author | 2021-05-31 23:22:23 +0800 | |
---|---|---|
committer | 2021-06-05 01:05:03 +0800 | |
commit | c8c8d53c4cee5f31d467f29195b89638148bf08b (patch) | |
tree | 3fb9510298d291dd146fcc2103aacab038a40882 | |
parent | f76775af4374b9cdda21cc1616cf0fd6937d4c13 (diff) |
Add linker script to maintain binary ABI stability
libbinder ABI differs in the presence of PGO (profile guided
optimisation) file. This adds a linker script that make all the symbols
in libbinder global. This comes with a cost of slightly increased binary
size (737872 bytes to 737984 bytes).
Bug: 189438896
Bug: 190148312
Test: build
Change-Id: I6bf88f448495352ec72c0f310e0eb5ce79891e0b
-rw-r--r-- | libs/binder/Android.bp | 2 | ||||
-rw-r--r-- | libs/binder/libbinder.map | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp index be260e856d..91cd90d0ab 100644 --- a/libs/binder/Android.bp +++ b/libs/binder/Android.bp @@ -68,6 +68,8 @@ libbinder_device_interface_sources = [ cc_library { name: "libbinder", + version_script: "libbinder.map", + // for vndbinder vendor_available: true, vndk: { diff --git a/libs/binder/libbinder.map b/libs/binder/libbinder.map new file mode 100644 index 0000000000..9ca14bcec2 --- /dev/null +++ b/libs/binder/libbinder.map @@ -0,0 +1,5 @@ +# b/190148312: Populate with correct list of ABI symbols +LIBBINDER { + global: + *; +}; |