android_build/core/clang
Logan Chien 0e53d887d6 Add prebuilt ELF binaries checker
This commit introduces a prebuilt ELF binaries checker.  The checker
will check:

1. Whether all DT_NEEDED shared libraries are specified in
   `shared_libs` (Android.bp) or `LOCAL_SHARED_LIBRARIES` (Android.mk).

2. Whether all undefined symbols in the prebuilt binary can be resolved
   to defined symbols exported by its dependencies.

This ensures that prebuilt binaries won't silently become ABI
incompatible.

To check the prebuilt binaries, all of the dependencies must be
specified in `shared_libs` (Android.bp) or `LOCAL_SHARED_LIBRARIES`
(Android.mk).

If your prebuilt binaries cannot be checked for some reason, you may add
the following property to Android.bp:

    check_elf_files: false,

Or, add the following setting to Android.mk:

    LOCAL_CHECK_ELF_FILES := false

Bug: 119084334
Test: CHECK_ELF_FILES=true make check-elf-files
Change-Id: I523d3083f22fd4053c096d26f61f8375800281c8
2019-01-21 21:35:01 +08:00
..
HOST_CROSS_x86.mk Move libgcc to libcrt.builtins 2018-11-08 13:40:34 -08:00
HOST_CROSS_x86_64.mk Move libgcc to libcrt.builtins 2018-11-08 13:40:34 -08:00
HOST_x86.mk Move libgcc to libcrt.builtins 2018-11-08 13:40:34 -08:00
HOST_x86_64.mk Move libgcc to libcrt.builtins 2018-11-08 13:40:34 -08:00
OWNERS
TARGET_arm.mk Move libgcc to libcrt.builtins 2018-11-08 13:40:34 -08:00
TARGET_arm64.mk Move libgcc to libcrt.builtins 2018-11-08 13:40:34 -08:00
TARGET_mips.mk
TARGET_mips64.mk
TARGET_x86.mk Move libgcc to libcrt.builtins 2018-11-08 13:40:34 -08:00
TARGET_x86_64.mk Move libgcc to libcrt.builtins 2018-11-08 13:40:34 -08:00
config.mk Add prebuilt ELF binaries checker 2019-01-21 21:35:01 +08:00
tidy.mk Filter out unknown arguments with clang-tidy.sh. 2018-08-28 09:45:39 -07:00