ELF can handle some relocations of the form -sym + constant.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 2 Nov 2015 19:13:59 +0000 (19:13 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 2 Nov 2015 19:13:59 +0000 (19:13 +0000)
commita0fd526ce8022428904a025eb2e1b86cf27d22b6
treea1185e1778fff885277002d57e88207520698fd1
parent933edca0f1d88055e7aaeea8aa3ea7ca3e610c84
ELF can handle some relocations of the form -sym + constant.

Remove code that was assuming that this would never work.

Thanks to Colin LeMahie for finding and diagnosing the bug.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251818 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCValue.h
lib/MC/MCExpr.cpp
test/MC/ELF/relocation-pc.s