https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90441
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Before the bisection the linker script probably managed to "fix" the debug info but the issue was latent. Without the linker script it works fine for me. With the script I get /usr/bin/ld: fw.elf: not enough room for program headers, try linking with -N /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status when I add -nostdlib it works fine again. So - can't really reproduce.