diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-08 21:10:42 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-08 21:10:42 +0000 |
commit | 37fad5ce4d81fd459fafe1517d6cd17e7ab49958 (patch) | |
tree | a00cfcda678bedbf15a4b604d435e6de93bcf8b5 /test/MC | |
parent | 0ce6bd55c38b2e146b5ce887bae576ee538bb575 (diff) | |
download | external_llvm-37fad5ce4d81fd459fafe1517d6cd17e7ab49958.zip external_llvm-37fad5ce4d81fd459fafe1517d6cd17e7ab49958.tar.gz external_llvm-37fad5ce4d81fd459fafe1517d6cd17e7ab49958.tar.bz2 |
MC/Mach-O: Fix address compution for zero fill sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/MachO/zerofill-4.s | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/MC/MachO/zerofill-4.s b/test/MC/MachO/zerofill-4.s new file mode 100644 index 0000000..3513be4 --- /dev/null +++ b/test/MC/MachO/zerofill-4.s @@ -0,0 +1,35 @@ +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s + +.zerofill __DATA,__bss,_fill0,1,0 +.zerofill __DATA,__bss,_a,4,2 +.zerofill __DATA,__bss,_fill1,1,0 +.zerofill __DATA,__bss,_b,4,3 +.zerofill __DATA,__bss,_fill2,1,0 +.zerofill __DATA,__bss,_c,4,4 +.zerofill __DATA,__bss,_fill3,1,0 +.zerofill __DATA,__bss,_d,4,5 + +// CHECK: # Symbol 0 +// CHECK: ('n_value', 0) +// CHECK: ('_string', '_fill0') +// CHECK: # Symbol 1 +// CHECK: ('n_value', 4) +// CHECK: ('_string', '_a') +// CHECK: # Symbol 2 +// CHECK: ('n_value', 8) +// CHECK: ('_string', '_fill1') +// CHECK: # Symbol 3 +// CHECK: ('n_value', 16) +// CHECK: ('_string', '_b') +// CHECK: # Symbol 4 +// CHECK: ('n_value', 20) +// CHECK: ('_string', '_fill2') +// CHECK: # Symbol 5 +// CHECK: ('n_value', 32) +// CHECK: ('_string', '_c') +// CHECK: # Symbol 6 +// CHECK: ('n_value', 36) +// CHECK: ('_string', '_fill3') +// CHECK: # Symbol 7 +// CHECK: ('n_value', 64) +// CHECK: ('_string', '_d') |