Handle expressions of the form _GLOBAL_OFFSET_TABLE_-symbol the same way gas
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 10 Dec 2011 02:28:43 +0000 (02:28 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 10 Dec 2011 02:28:43 +0000 (02:28 +0000)
commitf3aefb56def210eb0c23ecb8f2e0bf7f4be78a37
tree912113a0c5c054b3d8f1304ae99c96640ecd1fb8
parentfa1948a40f14d98c1a31a2ec19035a2d5254e854
Handle expressions of the form _GLOBAL_OFFSET_TABLE_-symbol the same way gas
does. The _GLOBAL_OFFSET_TABLE_ is still magical in that we get a R_386_GOTPC,
but it doesn't change the immediate in the same way as when the expression
has no right hand side symbol.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146311 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
test/MC/ELF/global-offset.s