Export the unwinder implementation from libc.

This supports the soong commit which causes most platform binaries to stop
statically linking against the unwinder implementation. The soong commit
message has more motivation for this change.

ARM32 uses LLVM libunwind, while all other platforms use libgcc as the
unwinder implementation. This matches the current choices of unwinders on
the various architectures, but means that apps which were directly linking
against the libc.so unwinder symbols on ARM32 are now using LLVM libunwind
instead of libgcc.

Set libc_headers sdk_version to 1 so that libunwind_llvm can depend on it,
and stop statically linking libunwind into libc_malloc_debug.

Bug: 144430859
Change-Id: I52c7f7893d93f500383aeb0b76086c3b6f1935a5
diff --git a/linker/Android.bp b/linker/Android.bp
index 3b25d12..d1826f5 100644
--- a/linker/Android.bp
+++ b/linker/Android.bp
@@ -243,18 +243,23 @@
         },
         arm64: {
             srcs: [":linker_sources_arm64"],
+            static_libs: ["libgcc_stripped"],
         },
         x86: {
             srcs: [":linker_sources_x86"],
+            static_libs: ["libgcc_stripped"],
         },
         x86_64: {
             srcs: [":linker_sources_x86_64"],
+            static_libs: ["libgcc_stripped"],
         },
         mips: {
             srcs: [":linker_sources_mips"],
+            static_libs: ["libgcc_stripped"],
         },
         mips64: {
             srcs: [":linker_sources_mips64"],
+            static_libs: ["libgcc_stripped"],
         },
     },