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
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp
index be260e8..91cd90d 100644
--- a/libs/binder/Android.bp
+++ b/libs/binder/Android.bp
@@ -68,6 +68,8 @@
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 0000000..9ca14bc
--- /dev/null
+++ b/libs/binder/libbinder.map
@@ -0,0 +1,5 @@
+# b/190148312: Populate with correct list of ABI symbols
+LIBBINDER {
+ global:
+ *;
+};