[PATCH] D17998: [ELF] implement --warn-common/--no-warn-common

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 19:51:31 PST 2016


On Wed, Mar 09, 2016 at 05:52:48PM +0000, George Rimar via llvm-commits wrote:
> -warn-common
>               Warn when a common symbol is combined with another common symbol
>               or with a symbol definition.  Unix linkers allow  this  somewhat
>               sloppy  practice, but linkers on some other operating systems do
>               not.  This option allows you to  find  potential  problems  from
>               combining global symbols.

Is it intentional that you warn on the common case of two common
definitions of the same size? That's about the only valid use case in
regular use.

Joerg


More information about the llvm-commits mailing list