OSDN Git Service

Fix PR23025.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 26 Mar 2015 21:11:00 +0000 (21:11 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 26 Mar 2015 21:11:00 +0000 (21:11 +0000)
commit9d2f0da138d9b2ea42b61b3545032f1403e4273e
tree913df13ab6c487e547d34e6983c0f887749ed4dc
parent61ac65ddec9becc4b6773077c69f0f54b942e445
Fix PR23025.

There is something in link.exe that requires a relocation to use a
global symbol. Not doing so breaks the chrome build on windows.

This patch sets isWeak for that to work. To compensate,
we then need to look past those symbols when not creating relocations.

This patch includes an ELF test that matches GNU as behaviour.

I am still reducing the chrome build issue and will add a test
once that is done.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233318 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCExpr.h
lib/MC/MCAssembler.cpp
lib/MC/MCExpr.cpp
lib/MC/WinCOFFObjectWriter.cpp
test/MC/X86/expand-var.s