aboutsummaryrefslogtreecommitdiff
path: root/libdl
diff options
context:
space:
mode:
authordimitry <dimitry@google.com>2018-01-05 13:35:43 +0100
committerdimitry <dimitry@google.com>2018-01-09 11:13:40 +0100
commit11da1dcd8c35f16a6e6bf869250ca06381e71dca (patch)
tree627146f228fee73aa8fadead8f62ee902626b390 /libdl
parent8e8c2c001380ad98f2e239c0c840dad80ebec35c (diff)
downloadbionic-11da1dcd8c35f16a6e6bf869250ca06381e71dca.tar.gz
Move ld-android.so build under linker/
This will allow us to apply linker's version script to the "fake" version of ld-android.so. Test: make Change-Id: I55645cc0fc90e6c65e2269ba2340a908aeed1eaa
Diffstat (limited to 'libdl')
-rw-r--r--libdl/Android.bp46
-rw-r--r--libdl/ld_android.c1
2 files changed, 0 insertions, 47 deletions
diff --git a/libdl/Android.bp b/libdl/Android.bp
index 44daaecaf..3889bdb2d 100644
--- a/libdl/Android.bp
+++ b/libdl/Android.bp
@@ -97,52 +97,6 @@ cc_library {
},
}
-cc_library {
- // NOTE: --exclude-libs=libgcc.a makes sure that any symbols libdl.so pulls from
- // libgcc.a are made static to ld-android.so. This in turn ensures that libraries that
- // a) pull symbols from libgcc.a and b) depend on ld-android.so will not rely on ld-android.so
- // to provide those symbols, but will instead pull them from libgcc.a. Specifically,
- // we use this property to make sure libc.so has its own copy of the code from
- // libgcc.a it uses.
- //
- // DO NOT REMOVE --exclude-libs!
-
- ldflags: ["-Wl,--exclude-libs=libgcc.a"],
-
- // for x86, exclude libgcc_eh.a for the same reasons as above
- arch: {
- x86: {
- ldflags: ["-Wl,--exclude-libs=libgcc_eh.a"],
- },
- x86_64: {
- ldflags: ["-Wl,--exclude-libs=libgcc_eh.a"],
- },
- },
- srcs: ["ld_android.c"],
- cflags: [
- "-Wall",
- "-Wextra",
- "-Wunused",
- "-Werror",
- ],
- stl: "none",
-
- name: "ld-android",
- defaults: ["linux_bionic_supported"],
-
- // NOTE: libdl needs __aeabi_unwind_cpp_pr0 from libgcc.a but libgcc.a needs a
- // few symbols from libc. Using --no-undefined here results in having to link
- // against libc creating a circular dependency which is removed and we end up
- // with missing symbols. Since this library is just a bunch of stubs, we set
- // LOCAL_ALLOW_UNDEFINED_SYMBOLS to remove --no-undefined from the linker flags.
- allow_undefined_symbols: true,
- system_shared_libs: [],
-
- sanitize: {
- never: true,
- },
-}
-
ndk_library {
name: "libdl",
symbol_file: "libdl.map.txt",
diff --git a/libdl/ld_android.c b/libdl/ld_android.c
deleted file mode 100644
index 8b1378917..000000000
--- a/libdl/ld_android.c
+++ /dev/null
@@ -1 +0,0 @@
-