https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101987
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|WAITING |RESOLVED --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > /opt/linaro/10.3.1/bin/../lib/gcc/aarch64-none-elf/10.3.1/../../../../aarch64-none-elf/bin/as > --gdwarf2 -EL -mabi=lp64 -o boot.o /tmp/ccjOmWwv.s So GCC is doing the right thing; that is passing --gdwarf2 which enables emitting debug info for the assembly file. It is either a binutils issue or it is a bug in your makefile. You should report this to the Linaro folks anyways since they are the release of the toolchain.