From 6b8e4357ecb77a97e08557896f06fd45550c9e46 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 25 Nov 2010 15:32:56 +0000 Subject: 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 --- test/MC/ELF/section.s | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/MC/ELF') diff --git a/test/MC/ELF/section.s b/test/MC/ELF/section.s index f3700cae679..38cf8ad4356 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: -- cgit v1.2.3