OSDN Git Service

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)
commita7e4c407add2f5763a86680685541888a828cd37
tree3bef6a9d596ab95de5a0a6e7cbd5f0d6335e22a3
parent0041050116fd32571c4956b201fe4d6794eb19b8
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226470 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCAssembler.cpp
test/MC/ELF/common-error1.s [new file with mode: 0644]
test/MC/ELF/common-error2.s [new file with mode: 0644]