https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99964
--- Comment #2 from cqwrteur <unlvsur at live dot com> --- (In reply to Jim Wilson from comment #1) > (In reply to cqwrteur from comment #0) > > bionic simply does not provide crti.o and crtn.o > > https://github.com/aosp-riscv/platform_bionic/tree/master/libc/arch-common/ > > bionic > > That is the RISC-V Android port in progress. It should not be used for > anything other than RISC-V, as RISC-V patches might have accidentally broken > other targets. Use the official Android sources for Aarch64, or maybe > something distributed by Linaro. i successfully built my own android linux toolchain on x86_64. i think this is just a bug in libgcc since crti.o and crtn.o should not get included.