[PATCH] gas: Don't error when .debug_line already exists, unless .loc was used

Nick Clifton nickc@redhat.com
Fri Sep 11 12:47:31 GMT 2020
Hi Mark,

> The tests are unfortunately arch specific because the line table is only
> generated when actual instructions have been emitted.

Are you sure about that ?  How about using the NOP instruction ?

I admit that some architectures do need special syntax for their
nop instructions, but there is already a test in gas testsuite
that handles this (see gas/testsuite/gas/all/gas.exp:org-1).  The
nop-selecting code there could probably be extracted into a library
function then used in lots of places...

Cheers
  Nick



More information about the Binutils mailing list