diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-25 15:32:56 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-25 15:32:56 +0000 |
commit | 6b8e4357ecb77a97e08557896f06fd45550c9e46 (patch) | |
tree | 27e987fdeea7cfd707aa003fa5590d0a5d1c6ce4 /test | |
parent | 109f4cbc7f2228f5b3f6ca0ba596beff33ee6b53 (diff) | |
download | external_llvm-6b8e4357ecb77a97e08557896f06fd45550c9e46.zip external_llvm-6b8e4357ecb77a97e08557896f06fd45550c9e46.tar.gz external_llvm-6b8e4357ecb77a97e08557896f06fd45550c9e46.tar.bz2 |
Factor some code to parseSectionFlags and fix the default type of a section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/ELF/section.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/ELF/section.s b/test/MC/ELF/section.s index f3700ca..38cf8ad 100644 --- a/test/MC/ELF/section.s +++ b/test/MC/ELF/section.s @@ -17,6 +17,7 @@ .section .init .section .fini .section .rodata +.section zed, "" // CHECK: (('sh_name', 0x00000049) # '.init' // CHECK-NEXT: ('sh_type', 0x00000001) @@ -53,6 +54,18 @@ // CHECK-NEXT: ('sh_addralign', 0x00000001) // CHECK-NEXT: ('sh_entsize', 0x00000000) // CHECK-NEXT: ), +// CHECK-NEXT: # Section 0x0000000d +// CHECK-NEXT: (('sh_name', 0x0000005d) # 'zed' +// CHECK-NEXT: ('sh_type', 0x00000001) +// CHECK-NEXT: ('sh_flags', 0x00000000) +// CHECK-NEXT: ('sh_addr', 0x00000000) +// CHECK-NEXT: ('sh_offset', 0x00000050) +// CHECK-NEXT: ('sh_size', 0x00000000) +// CHECK-NEXT: ('sh_link', 0x00000000) +// CHECK-NEXT: ('sh_info', 0x00000000) +// CHECK-NEXT: ('sh_addralign', 0x00000001) +// CHECK-NEXT: ('sh_entsize', 0x00000000) +// CHECK-NEXT: ), // Test that we can parse these foo: |