1 # RUN: llvm-mc -triple i386-pc-linux-gnu -filetype=obj -o %t %s
2 # RUN: elf-dump --dump-section-data < %t | FileCheck %s
48 # CHECK: (('sh_name', 0x00000044) # 'test1'
49 # CHECK-NEXT: ('sh_type', 0x00000001)
50 # CHECK-NEXT: ('sh_flags', 0x00000000)
51 # CHECK-NEXT: ('sh_addr', 0x00000000)
52 # CHECK-NEXT: ('sh_offset', 0x00000034)
53 # CHECK-NEXT: ('sh_size', 0x00000007)
54 # CHECK-NEXT: ('sh_link', 0x00000000)
55 # CHECK-NEXT: ('sh_info', 0x00000000)
56 # CHECK-NEXT: ('sh_addralign', 0x00000001)
57 # CHECK-NEXT: ('sh_entsize', 0x00000000)
58 # CHECK-NEXT: ('_section_data', '01010101 010101')
60 # CHECK: (('sh_name', 0x0000003e) # 'test2'
61 # CHECK-NEXT: ('sh_type', 0x00000001)
62 # CHECK-NEXT: ('sh_flags', 0x00000000)
63 # CHECK-NEXT: ('sh_addr', 0x00000000)
64 # CHECK-NEXT: ('sh_offset', 0x0000003b)
65 # CHECK-NEXT: ('sh_size', 0x00000006)
66 # CHECK-NEXT: ('sh_link', 0x00000000)
67 # CHECK-NEXT: ('sh_info', 0x00000000)
68 # CHECK-NEXT: ('sh_addralign', 0x00000001)
69 # CHECK-NEXT: ('sh_entsize', 0x00000000)
70 # CHECK-NEXT: ('_section_data', '02020202 0202')
72 # CHECK: (('sh_name', 0x00000038) # 'test3'
73 # CHECK-NEXT: ('sh_type', 0x00000001)
74 # CHECK-NEXT: ('sh_flags', 0x00000000)
75 # CHECK-NEXT: ('sh_addr', 0x00000000)
76 # CHECK-NEXT: ('sh_offset', 0x00000041)
77 # CHECK-NEXT: ('sh_size', 0x00000005)
78 # CHECK-NEXT: ('sh_link', 0x00000000)
79 # CHECK-NEXT: ('sh_info', 0x00000000)
80 # CHECK-NEXT: ('sh_addralign', 0x00000001)
81 # CHECK-NEXT: ('sh_entsize', 0x00000000)
82 # CHECK-NEXT: ('_section_data', '03030303 03')
84 # CHECK: (('sh_name', 0x00000032) # 'test4'
85 # CHECK-NEXT: ('sh_type', 0x00000001)
86 # CHECK-NEXT: ('sh_flags', 0x00000000)
87 # CHECK-NEXT: ('sh_addr', 0x00000000)
88 # CHECK-NEXT: ('sh_offset', 0x00000046)
89 # CHECK-NEXT: ('sh_size', 0x00000003)
90 # CHECK-NEXT: ('sh_link', 0x00000000)
91 # CHECK-NEXT: ('sh_info', 0x00000000)
92 # CHECK-NEXT: ('sh_addralign', 0x00000001)
93 # CHECK-NEXT: ('sh_entsize', 0x00000000)
94 # CHECK-NEXT: ('_section_data', '040404')
96 # CHECK: (('sh_name', 0x0000002c) # 'test5'
97 # CHECK-NEXT: ('sh_type', 0x00000001)
98 # CHECK-NEXT: ('sh_flags', 0x00000000)
99 # CHECK-NEXT: ('sh_addr', 0x00000000)
100 # CHECK-NEXT: ('sh_offset', 0x00000049)
101 # CHECK-NEXT: ('sh_size', 0x00000001)
102 # CHECK-NEXT: ('sh_link', 0x00000000)
103 # CHECK-NEXT: ('sh_info', 0x00000000)
104 # CHECK-NEXT: ('sh_addralign', 0x00000001)
105 # CHECK-NEXT: ('sh_entsize', 0x00000000)
106 # CHECK-NEXT: ('_section_data', '05')