diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-19 03:06:01 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-19 03:06:01 +0000 |
| commit | a986aa33eb01bfa34a1fd0858a93311c692c2ea4 (patch) | |
| tree | 26c5e03e740e3cc08081d4bd52a9cc844092d3db /llvm/test/CodeGen/X86/global-sections.ll | |
| parent | 5b585f8b1a6f5c2531333d533c263746a648e81c (diff) | |
| download | bcm5719-llvm-a986aa33eb01bfa34a1fd0858a93311c692c2ea4.tar.gz bcm5719-llvm-a986aa33eb01bfa34a1fd0858a93311c692c2ea4.zip | |
fix a significant difference between llvm and gcc on ELF systems:
GCC would put weak zero initialized mutable data in the .bss section,
we would put it into a crasy '.gnu.linkonce.b.test,"aw",@nobits'
section. Fixing this will allow simplifications next up.
llvm-svn: 93844
Diffstat (limited to 'llvm/test/CodeGen/X86/global-sections.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/global-sections.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/global-sections.ll b/llvm/test/CodeGen/X86/global-sections.ll index 405adca6cd8..b6caa4f27f7 100644 --- a/llvm/test/CodeGen/X86/global-sections.ll +++ b/llvm/test/CodeGen/X86/global-sections.ll @@ -119,4 +119,19 @@ ; LINUX:G9 +@G10 = weak global [100 x i32] zeroinitializer, align 32 ; <[100 x i32]*> [#uses=0] + + +; DARWIN: .section __DATA,__datacoal_nt,coalesced +; DARWIN: .globl _G10 +; DARWIN: .weak_definition _G10 +; DARWIN: .align 5 +; DARWIN: _G10: +; DARWIN: .space 400 + +; LINUX: .bss +; LINUX: .weak G10 +; LINUX: .align 32 +; LINUX: G10: +; LINUX: .zero 400 |

