Merge "Define linker.recovery" into main am: eaa602b4c1

Original change: https://android-review.googlesource.com/c/platform/bionic/+/3391032

Change-Id: Idb24c57b61213e493ab4adaa24ff7c166a3e2910
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/linker/Android.bp b/linker/Android.bp
index 4863b92..1d0e14d 100644
--- a/linker/Android.bp
+++ b/linker/Android.bp
@@ -350,8 +350,8 @@
 // linker[_asan][64] binary
 // ========================================================
 
-cc_binary {
-    name: "linker",
+cc_defaults {
+    name: "linker_binary_defaults",
     defaults: [
         "linker_bin_template",
         "linux_bionic_supported",
@@ -376,8 +376,6 @@
 
     compile_multilib: "both",
 
-    recovery_available: true,
-    vendor_ramdisk_available: true,
     apex_available: [
         "//apex_available:platform",
         "com.android.runtime",
@@ -403,6 +401,25 @@
     afdo: true,
 }
 
+cc_binary {
+    name: "linker",
+    defaults: [
+        "linker_binary_defaults",
+    ],
+
+    vendor_ramdisk_available: true,
+}
+
+cc_binary {
+    name: "linker.recovery",
+    defaults: [
+        "linker_binary_defaults",
+    ],
+
+    recovery: true,
+    stem: "linker",
+}
+
 // ========================================================
 // assorted modules
 // ========================================================