diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-20 20:20:07 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-20 20:20:07 +0000 |
commit | f7ad048f1e122ee4f735398786f4859392f74144 (patch) | |
tree | 92baccc7fee7eebc6ed30ae6fd62568bad49241d /test/MC | |
parent | 8e04fc3adf3419eeb9466b66cbaf9b027dcc2cab (diff) | |
download | external_llvm-f7ad048f1e122ee4f735398786f4859392f74144.zip external_llvm-f7ad048f1e122ee4f735398786f4859392f74144.tar.gz external_llvm-f7ad048f1e122ee4f735398786f4859392f74144.tar.bz2 |
Add some limited support for labels in org directives. Hopefully enough to fix
PR9245.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126091 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/ELF/org.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/ELF/org.s b/test/MC/ELF/org.s new file mode 100644 index 0000000..c073fa5 --- /dev/null +++ b/test/MC/ELF/org.s @@ -0,0 +1,13 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s + + .zero 4 +foo: + .zero 4 + .org foo+16 + +// CHECK: (('sh_name', 0x00000001) # '.text' +// CHECK-NEXT: ('sh_type', +// CHECK-NEXT: ('sh_flags', +// CHECK-NEXT: ('sh_addr', +// CHECK-NEXT: ('sh_offset' +// CHECK-NEXT: ('sh_size', 0x00000014) |