1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
18 .size main, .Ltmp0-main
20 .type .L.str1,@object # @.str1
21 .section .rodata.str1.1,"aMS",@progbits,1
26 .type .L.str2,@object # @.str2
31 .section .note.GNU-stack,"",@progbits
33 // CHECK: ('e_indent[EI_CLASS]', 0x00000002)
34 // CHECK: ('e_indent[EI_DATA]', 0x00000001)
35 // CHECK: ('e_indent[EI_VERSION]', 0x00000001)
36 // CHECK: ('_sections', [
38 // CHECK: (('sh_name', 0x00000000) # ''
42 // CHECK: ('st_bind', 0x00000000)
43 // CHECK: ('st_type', 0x00000003)
45 // CHECK: ('st_bind', 0x00000000)
46 // CHECK: ('st_type', 0x00000003)
48 // CHECK: ('st_bind', 0x00000000)
49 // CHECK: ('st_type', 0x00000003)
52 // CHECK-NEXT: ('st_bind', 0x00000001)
53 // CHECK-NEXT: ('st_type', 0x00000002)
56 // CHECK-NEXT: ('st_bind', 0x00000001)
57 // CHECK-NEXT: ('st_type', 0x00000000)
59 // CHECK: # '.rela.text'
61 // CHECK: ('_relocations', [
62 // CHECK: # Relocation 0x00000000
63 // CHECK: (('r_offset', 0x00000005)
64 // CHECK: ('r_type', 0x0000000a)
65 // CHECK: ('r_addend', 0x00000000)
67 // CHECK: # Relocation 0x00000001
68 // CHECK: (('r_offset', 0x0000000a)
69 // CHECK: ('r_type', 0x00000002)
70 // CHECK: ('r_addend', 0xfffffffc)
72 // CHECK: # Relocation 0x00000002
73 // CHECK: (('r_offset', 0x0000000f)
74 // CHECK: ('r_type', 0x0000000a)
75 // CHECK: ('r_addend', 0x00000006)
77 // CHECK: # Relocation 0x00000003
78 // CHECK: (('r_offset', 0x00000014)
79 // CHECK: ('r_type', 0x00000002)
80 // CHECK: ('r_addend', 0xfffffffc)