[PATCH] readelf: Warn zero-sized relocation sections

Nick Clifton nickc@redhat.com
Sun Apr 26 15:26:55 GMT 2020


Hi Fangrui,

> It is convenient to write a general linker script with lots of output
> section descriptions but many omitted in some cases. So empty sections
> may be common, especially in embedded systems. Not warning by default
> seems sensible.

Right - this seems to be the opinion of several other contributors as well.

> Took a rough look at the patch. Looks great! Just one question, -L's
> mnemonic is *L*int. Why is the long option --enable-checks, instead of
> --lint?

Eh - no good reason - and I am happy to change the option name if people
think that --lint is better.  I used -L as it was reminiscent of "lint"
(and "l" was already taken).  But I picked --enable-checks as this seemed
more obvious to me than --lint.  (My guess was that not all users will be
familiar with using the word 'lint' to mean 'check for errors'.  It is a
kind of niche term).

Cheers
  Nick




More information about the Binutils mailing list