diff --git a/init/builtins.cpp b/init/builtins.cpp index b235d2f09..c44e03ed7 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -1232,7 +1232,7 @@ static Result do_mark_post_data(const BuiltinArguments& args) { } static Result GenerateLinkerConfiguration() { - const char* linkerconfig_binary = "/system/bin/linkerconfig"; + const char* linkerconfig_binary = "/apex/com.android.runtime/bin/linkerconfig"; const char* linkerconfig_target = "/linkerconfig"; const char* arguments[] = {linkerconfig_binary, "--target", linkerconfig_target}; diff --git a/rootdir/init.rc b/rootdir/init.rc index 78679a392..2de066de4 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -56,7 +56,7 @@ on early-init write /sys/module/dm_verity/parameters/prefetch_cluster 0 # Generate ld.config.txt for early executed processes - exec -- /system/bin/linkerconfig --target /linkerconfig/bootstrap + exec -- /system/bin/bootstrap/linkerconfig --target /linkerconfig/bootstrap chmod 644 /linkerconfig/bootstrap/ld.config.txt copy /linkerconfig/bootstrap/ld.config.txt /linkerconfig/default/ld.config.txt chmod 644 /linkerconfig/default/ld.config.txt