diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-08 22:03:42 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-08 22:03:42 +0000 |
commit | b2b4acd757194b4b75e571ec7225811f94e753f3 (patch) | |
tree | c252cfeb9a50450f31e24527e118d92f62f6c693 /test | |
parent | 77bf295dbb0b049fdec853ced0763084c43b2438 (diff) | |
download | external_llvm-b2b4acd757194b4b75e571ec7225811f94e753f3.zip external_llvm-b2b4acd757194b4b75e571ec7225811f94e753f3.tar.gz external_llvm-b2b4acd757194b4b75e571ec7225811f94e753f3.tar.bz2 |
MC/Macho-O: Align the zerofill section itself to the maximum alignment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/MachO/zerofill-4.s | 2 | ||||
-rw-r--r-- | test/MC/MachO/zerofill-sect-align.s | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/test/MC/MachO/zerofill-4.s b/test/MC/MachO/zerofill-4.s index 3513be4..d9c987c 100644 --- a/test/MC/MachO/zerofill-4.s +++ b/test/MC/MachO/zerofill-4.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump | FileCheck %s .zerofill __DATA,__bss,_fill0,1,0 .zerofill __DATA,__bss,_a,4,2 diff --git a/test/MC/MachO/zerofill-sect-align.s b/test/MC/MachO/zerofill-sect-align.s new file mode 100644 index 0000000..5d7730f --- /dev/null +++ b/test/MC/MachO/zerofill-sect-align.s @@ -0,0 +1,15 @@ +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump | FileCheck %s +// +// Check that the section itself is aligned. + + .byte 0 + +.zerofill __DATA,__bss,_a,1,0 +.zerofill __DATA,__bss,_b,4,4 + +// CHECK: # Symbol 0 +// CHECK: ('n_value', 16) +// CHECK: ('_string', '_a') +// CHECK: # Symbol 1 +// CHECK: ('n_value', 32) +// CHECK: ('_string', '_b') |