Loading
clang: update IBinder to be lto_visibility_public
The clang optimization "-fwhole-program-vtables" can cause problems with IBinder. In SurfaceFlinger, the optimization causes BpBinder objects to act like IBinders. This results in problems when trying to linkToDeath. IBinder's linkToDeath function is called instead of BpBinder's linkToDeath. When IBinder is annotated for clang with "[[clang::lto_visibility_public]]", the proper linkToDeath function is called. Bug: 119259043 Test: Transaction_test Change-Id: If168eacb0f9a6716d07bafc9b35834cc7db869e1