summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-03-26 21:11:00 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-03-26 21:11:00 +0000
commitaeed3cbce0ef45ecf36258c3883e67f0cb5caf6f (patch)
treed36b5bf5258108f05389bd6f696a37a026dc9ab9 /llvm/test
parenta5bcb2ed8a4d3c23558afb917c64bd7cd05549c8 (diff)
downloadbcm5719-llvm-aeed3cbce0ef45ecf36258c3883e67f0cb5caf6f.tar.gz
bcm5719-llvm-aeed3cbce0ef45ecf36258c3883e67f0cb5caf6f.zip
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. llvm-svn: 233318
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/X86/expand-var.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/MC/X86/expand-var.s b/llvm/test/MC/X86/expand-var.s
index b3311b4a844..ef62d8a260f 100644
--- a/llvm/test/MC/X86/expand-var.s
+++ b/llvm/test/MC/X86/expand-var.s
@@ -10,3 +10,9 @@ a:
d = a
.weak d
.long d + (b - c)
+
+
+a2:
+ .weak b2
+ b2 = a2
+ c2 = b2 - a2
OpenPOWER on IntegriCloud