Produce errors when an assignment expression would use a common symbol.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 19 Jan 2015 17:30:24 +0000 (17:30 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 19 Jan 2015 17:30:24 +0000 (17:30 +0000)
commitc569ac46ebd59ee9e6a40f2e6cb90bd83c3e1dd1
tree957ae36e4522af50c64d32dda6cb0fad77d1ed09
parent3131e85eddb1026a9267d2998c7d5dda74e81923
Produce errors when an assignment expression would use a common symbol.

An assignment will produce a symbol with a given section and offset. There is
no way to represent something like "1 byte after a common symbol".

This matches the behavior of GNU as.

Part of PR22217.

llvm-svn: 226470
llvm/lib/MC/MCAssembler.cpp
llvm/test/MC/ELF/common-error1.s [new file with mode: 0644]
llvm/test/MC/ELF/common-error2.s [new file with mode: 0644]