1 // RUN
: llvm-mc
-filetype
=obj
-triple x86_64-pc-linux-gnu
%s
-o
- | elf-dump
--dump-section-data | FileCheck
%s
3 // Test that we get optimal nops in text
11 // But
not in another section
18 // CHECK
: (('sh_name', 0x00000001) # '.text'
19 // CHECK-NEXT
: ('sh_type', 0x00000001)
20 // CHECK-NEXT
: ('sh_flags', 0x00000006)
21 // CHECK-NEXT
: ('sh_addr',
22 // CHECK-NEXT
: ('sh_offset',
23 // CHECK-NEXT
: ('sh_size', 0x00000010)
24 // CHECK-NEXT
: ('sh_link', 0x00000000)
25 // CHECK-NEXT
: ('sh_info', 0x00000000)
26 // CHECK-NEXT
: ('sh_addralign', 0x00000008)
27 // CHECK-NEXT
: ('sh_entsize', 0x00000000)
28 // CHECK-NEXT
: ('_section_data', '00000000 0f1f4000 00000000 0f1f4000')
30 // CHECK
: (('sh_name', 0x00000026) # '.data'
31 // CHECK-NEXT
: ('sh_type', 0x00000001)
32 // CHECK-NEXT
: ('sh_flags', 0x00000003)
33 // CHECK-NEXT
: ('sh_addr',
34 // CHECK-NEXT
: ('sh_offset',
35 // CHECK-NEXT
: ('sh_size', 0x00000010)
36 // CHECK-NEXT
: ('sh_link', 0x00000000)
37 // CHECK-NEXT
: ('sh_info', 0x00000000)
38 // CHECK-NEXT
: ('sh_addralign', 0x00000008)
39 // CHECK-NEXT
: ('sh_entsize', 0x00000000)
40 // CHECK-NEXT
: ('_section_data', '00000000 90909090 00000000 00000000')