https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90441
--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Richard Biener from comment #5) > 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. built pre-rev and rev. I get the same result as Richi, with the script "not enough room for program headers" Removing the script the link succeeds in both cases - and the error below is present before and after the revision mentioned (so I concur that the revision is simply exposing a latent issue). ----- iains@gcc122:~/gcc-trunk/A$ nm -ClS --radix=d --size-sort firmware.elf 0000000006295576 0000000000000001 b completed.7325nm: BFD (GNU Binutils for Debian) 2.28 internal error, aborting at ../../bfd/dwarf2.c:2505 in find_abstract_instance_name nm: Please report this bug.