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 | f8e127eaf61ba9301d0a8fbc39de16d3a1c34248 (patch) | |
tree | c881de4ea5255cdf2cb1369badb521e33593f320 /llvm/test | |
parent | 16278859e8b71e1f9ddcf075c6df21cfcd0919d9 (diff) | |
download | bcm5719-llvm-f8e127eaf61ba9301d0a8fbc39de16d3a1c34248.tar.gz bcm5719-llvm-f8e127eaf61ba9301d0a8fbc39de16d3a1c34248.zip |
Factor some code to parseSectionFlags and fix the default type of a section.
llvm-svn: 120145
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/ELF/section.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/section.s b/llvm/test/MC/ELF/section.s index f3700cae679..38cf8ad4356 100644 --- a/llvm/test/MC/ELF/section.s +++ b/llvm/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: |