https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117049
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am trying to understand the issue here. Are you saying the local labels are not removed while assembly and show up in objdump's output? I doubt this is a GCC bug but rather a GNU binutils issue (https://sourceware.org/bugzilla/ for bugzilla). The local labels for all elf targets always start with `.L` as far as I know. So riscv binutils not following the same is a bit odd.