[ELF] implement --warn-common/--no-warn-common
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 14 Mar 2016 09:19:30 +0000 (09:19 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 14 Mar 2016 09:19:30 +0000 (09:19 +0000)
commit343580097d9e0d5da24c7e2e7747f9e1032add57
treea0d6a7f2288ea0e2e855cae11ff66fcb122fe88d
parentc2c3a545c1e878496b82b580a927f5e8f46f68e1
[ELF] implement --warn-common/--no-warn-common

-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.

Differential revision: http://reviews.llvm.org/D17998

llvm-svn: 263413
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/Options.td
lld/ELF/Symbols.cpp
lld/test/ELF/Inputs/warn-common.s [new file with mode: 0644]
lld/test/ELF/Inputs/warn-common2.s [new file with mode: 0644]
lld/test/ELF/warn-common.s [new file with mode: 0644]