Merge "Stop exporting symbols from app_process" am: c6bd7008f8

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1727416

Change-Id: I41f975c9fbb6ba390afc8bbbbaf45529647ec96d
This commit is contained in:
Ryan Prichard
2021-06-15 20:49:18 +00:00
committed by Automerger Merge Worker
2 changed files with 14 additions and 1 deletions

View File

@@ -29,7 +29,16 @@ cc_binary {
},
},
ldflags: ["-Wl,--export-dynamic"],
// Symbols exported from the executable in .dynsym interpose symbols in every
// linker namespace, including an app's classloader namespace. Provide this
// version script to prevent unwanted interposition.
//
// By default, the static linker doesn't export most of an executable's symbols,
// but it will export a symbol that appears to override a symbol in a needed DSO.
// This commonly happens with C++ vaguely-linked entities, such as template
// functions or type_info variables. Hence, a version script is needed even for
// an executable.
version_script: "version-script.txt",
shared_libs: [
"libandroid_runtime",

View File

@@ -0,0 +1,4 @@
{
local:
*;
};