Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bae3071 authored by Yi Kong's avatar Yi Kong
Browse files

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
Merged-In: I6bf88f448495352ec72c0f310e0eb5ce79891e0b
(cherry picked from commit c8c8d53c)
parent a6349a7a
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -71,6 +71,8 @@ libbinder_no_vendor_interface_sources = [
cc_library {
cc_library {
    name: "libbinder",
    name: "libbinder",


    version_script: "libbinder.map",

    // for vndbinder
    // for vndbinder
    vendor_available: true,
    vendor_available: true,
    vndk: {
    vndk: {
+5 −0
Original line number Original line Diff line number Diff line
# b/190148312: Populate with correct list of ABI symbols
LIBBINDER {
  global:
    *;
};