[Android Software/Hacking General [Developers Only]] fKm:
No matter which commits I revert in bionic I still get this error:

[ 0% 10/11928] //bionic/libc:libc link libc.so
FAILED: /root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/libc.so
prebuilts/clang/host/linux-x86/7.0/bin/clang++ @/root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/libc.so.rsp -Wl,--whole-archive /root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc_common/android_arm64_armv8-a_cortex-a73_static_core/libc_common.a /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a /root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc_init_dynamic/android_arm64_armv8-a_cortex-a73_static_core/libc_init_dynamic.a -Wl,--no-whole-archive /root/android/pixeldust/out/soong/.intermediates/external/compiler-rt/libcompiler_rt-extras/android_arm64_armv8-a_cortex-a73_static_core/libcompiler_rt-extras.a /root/android/pixeldust/out/soong/.intermediates/build/soong/libatomic/android_arm64_armv8-a_cortex-a73_static_core/libatomic.a /root/android/pixeldust/out/soong/.intermediates/build/soong/libgcc/android_arm64_armv8-a_cortex-a73_static_core/libgcc.a /root/android/pixeldust/out/soong/.intermediates/bionic/libdl/libdl/android_arm64_armv8-a_cortex-a73_shared_core/libdl.so -o /root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/libc.so -nostdlib -Wl,--gc-sections -shared -Wl,-soname,libc.so -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,-m,aarch64_elf64_le_vec -Wl,--hash-style=gnu -Wl,--fix-cortex-a53-843419 -fuse-ld=gold -Wl,--icf=safe -Wl,--no-undefined-version -Wl,--version-script,bionic/libc/libc.arm64.map
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 9130 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 448438 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 449978 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 479990 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 485674 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 563970 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 583946 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 589906 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 688158 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 957838 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1035030 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1036566 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1128810 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1615682 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1617214 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1639474 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1649834 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1664346 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1665882 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1767370 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1822686 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1847006 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1848546 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 1962734 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 2044766 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 2046306 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 2097494 is not an ELF object
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold: error: /root/android/pixeldust/out/soong/.intermediates/external/jemalloc/libjemalloc/android_arm64_armv8-a_cortex-a73_static_core/libjemalloc.a: member at 2139294 is not an ELF object
bionic/libc/bionic/malloc_common.cpp:85: error: undefined reference to 'je_calloc'
bionic/libc/bionic/malloc_common.cpp:93: error: undefined reference to 'je_free'
bionic/libc/bionic/malloc_common.cpp:102: error: undefined reference to 'je_mallinfo'
bionic/libc/bionic/malloc_common.cpp:118: error: undefined reference to 'je_malloc'
bionic/libc/bionic/malloc_common.cpp:126: error: undefined reference to 'je_malloc_usable_size'
bionic/libc/bionic/malloc_common.cpp:142: error: undefined reference to 'je_posix_memalign'
bionic/libc/bionic/malloc_common.cpp:150: error: undefined reference to 'je_realloc'
bionic/libc/bionic/malloc_common.cpp:444: error: undefined reference to 'je_iterate'
bionic/libc/bionic/malloc_common.cpp:454: error: undefined reference to 'je_malloc_disable'
bionic/libc/bionic/malloc_common.cpp:463: error: undefined reference to 'je_malloc_enable'
/root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/obj/shared_library/bionic/libc/bionic/malloc_common.o:malloc_common.cpp:__libc_malloc_default_dispatch: error: undefined reference to 'je_calloc'
/root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/obj/shared_library/bionic/libc/bionic/malloc_common.o:malloc_common.cpp:__libc_malloc_default_dispatch: error: undefined reference to 'je_free'
/root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/obj/shared_library/bionic/libc/bionic/malloc_common.o:malloc_common.cpp:__libc_malloc_default_dispatch: error: undefined reference to 'je_mallinfo'
/root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/obj/shared_library/bionic/libc/bionic/malloc_common.o:malloc_common.cpp:__libc_malloc_default_dispatch: error: undefined reference to 'je_malloc'
/root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/obj/shared_library/bionic/libc/bionic/malloc_common.o:malloc_common.cpp:__libc_malloc_default_dispatch: error: undefined reference to 'je_malloc_usable_size'
/root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/obj/shared_library/bionic/libc/bionic/malloc_common.o:malloc_common.cpp:__libc_malloc_default_dispatch: error: undefined reference to 'je_posix_memalign'
/root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/obj/shared_library/bionic/libc/bionic/malloc_common.o:malloc_common.cpp:__libc_malloc_default_dispatch: error: undefined reference to 'je_realloc'
/root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/obj/shared_library/bionic/libc/bionic/malloc_common.o:malloc_common.cpp:__libc_malloc_default_dispatch: error: undefined reference to 'je_iterate'
/root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/obj/shared_library/bionic/libc/bionic/malloc_common.o:malloc_common.cpp:__libc_malloc_default_dispatch: error: undefined reference to 'je_malloc_disable'
/root/android/pixeldust/out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_cortex-a73_shared_core/obj/shared_library/bionic/libc/bionic/malloc_common.o:malloc_common.cpp:__libc_malloc_default_dispatch: error: undefined reference to 'je_malloc_enable'
bionic/libc/bionic/malloc_info.cpp:68: error: undefined reference to '__mallinfo_narenas'
bionic/libc/bionic/malloc_info.cpp:69: error: undefined reference to '__mallinfo_arena_info'
bionic/libc/bionic/malloc_info.cpp:78: error: undefined reference to '__mallinfo_nbins'
bionic/libc/bionic/malloc_info.cpp:79: error: undefined reference to '__mallinfo_bin_info'
bionic/libc/bionic/malloc_info.cpp:78: error: undefined reference to '__mallinfo_nbins'
bionic/libc/bionic/malloc_info.cpp:68: error: undefined reference to '__mallinfo_narenas'
bionic/libc/bionic/jemalloc_wrapper.cpp:48: error: undefined reference to 'je_memalign'
bionic/libc/bionic/jemalloc_wrapper.cpp:48: error: undefined reference to 'je_memalign'
bionic/libc/bionic/jemalloc_wrapper.cpp:64: error: undefined reference to 'je_mallctl'
bionic/libc/bionic/jemalloc_wrapper.cpp:69: error: undefined reference to 'je_mallctl'
bionic/libc/bionic/jemalloc_wrapper.cpp:77: error: undefined reference to 'je_mallctl'
clang-7.0: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
10:34:03 ninja failed with: exit status 1

The other errors got fixed by reverting the ThinLTO commits. In the bionic repository I can't find any ThinLTO commits or something like that :(