When build u-boot, get a link error BFD assertion fail elf32-arm.c:8784 as following.
LDS u-boot.lds
LD u-boot
/opt/gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2018.12) 2.27.0.20161229 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release_0/snapshots/binutils-gdb.git~users~linaro~binutils-2_27-branch/bfd/elf32-arm.c:8784
make: *** [u-boot] Error 1
How to fix it? Actually I missed one function get_ticks(). I added it then the build passed. Why doesn't GCC report the missing function? Maybe need read the GCC code.
So if this error happen, maybe you missed something.