1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s 2 3 // Test which symbols should be in the symbol table 4 5 .long .Lsym1 6 .Lsym2: 7 .Lsym3: 8 .Lsym4 = .Lsym2 - .Lsym3 9 .long .Lsym4 10 11 .type .Lsym5,@object 12 .type sym6,@object 13 .long sym6 14 15 .section .rodata.str1.1,"aMS",@progbits,1 16 .Lsym7: 17 .Lsym8: 18 19 .text 20 movsd .Lsym8(%rip), %xmm1 21 22 // CHECK: ('_symbols', [ 23 // CHECK-NEXT: # Symbol 0x00000000 24 // CHECK-NEXT: (('st_name', 0x00000000) # '' 25 // CHECK: # Symbol 0x00000001 26 // CHECK-NEXT: (('st_name', 0x0000000d) # '.Lsym8' 27 // CHECK: # Symbol 0x00000002 28 // CHECK-NEXT: (('st_name', 0x00000000) # '' 29 // CHECK: # Symbol 0x00000003 30 // CHECK-NEXT: (('st_name', 0x00000000) # '' 31 // CHECK: # Symbol 0x00000004 32 // CHECK-NEXT: (('st_name', 0x00000000) # '' 33 // CHECK: # Symbol 0x00000005 34 // CHECK-NEXT: (('st_name', 0x00000000) # '' 35 // CHECK: # Symbol 0x00000006 36 // CHECK-NEXT: (('st_name', 0x00000001) # '.Lsym1' 37 // CHECK: # Symbol 0x00000007 38 // CHECK-NEXT: (('st_name', 0x00000008) # 'sym6' 39 // CHECK-NEXT: ('st_bind', 0x00000001) 40 // CHECK-NEXT: ('st_type', 0x00000001) 41 // CHECK-NEXT: ('st_other', 0x00000000) 42 // CHECK-NEXT: ('st_shndx', 0x00000000) 43 // CHECK-NEXT: ('st_value', 0x0000000000000000) 44 // CHECK-NEXT: ('st_size', 0x0000000000000000) 45 // CHECK-NEXT: ), 46 // CHECK-NEXT: ]) 47