summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2012-02-25 03:40:11 +0000
committerHal Finkel <hfinkel@anl.gov>2012-02-25 03:40:11 +0000
commit9b4d7088681b3386359497d5806b7365d5f6c39a (patch)
treea8f4920a4601a823edbd11b2412a6b789b2551a0 /test
parent9a68fdc7f8211a9330537d44e3406d79fc5562af (diff)
downloadllvm-9b4d7088681b3386359497d5806b7365d5f6c39a.tar.gz
llvm-9b4d7088681b3386359497d5806b7365d5f6c39a.tar.bz2
llvm-9b4d7088681b3386359497d5806b7365d5f6c39a.tar.xz
Revert r151278, breaks static linking.
Reverting this because it breaks static linking on ppc64. Specifically, it may be linkonce_odr functions that are the problem. With this patch, if you link statically, calls to some functions end up calling their descriptor addresses instead of calling to their entry points. This causes the execution to fail with SIGILL (b/c the descriptor address just has some pointers, not code). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/PowerPC/ppc64-linux-func-size.ll5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/CodeGen/PowerPC/ppc64-linux-func-size.ll b/test/CodeGen/PowerPC/ppc64-linux-func-size.ll
index 0a549259a2..74b3dc7dc7 100644
--- a/test/CodeGen/PowerPC/ppc64-linux-func-size.ll
+++ b/test/CodeGen/PowerPC/ppc64-linux-func-size.ll
@@ -1,9 +1,8 @@
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=g5 | FileCheck %s
; CHECK: test1:
-; CHECK-NEXT: .quad .L.test1
-; CHECK-NEXT: .quad .TOC.@tocbase
-; CHECK-NEXT: .text
+; CHECK-NEXT: .quad .L.test1,.TOC.@tocbase
+; CHECK-NEXT: .previous
; CHECK-NEXT: .L.test1:
define i32 @test1(i32 %a) nounwind {