Home | History | Annotate | Download | only in ELF
      1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r -t | FileCheck %s
      2 
      3 defined1:
      4 defined2:
      5 defined3:
      6         .symver defined1, bar1@zed
      7         .symver undefined1, bar2@zed
      8 
      9         .symver defined2, bar3@@zed
     10 
     11         .symver defined3, bar5@@@zed
     12         .symver undefined3, bar6@@@zed
     13 
     14         .long defined1
     15         .long undefined1
     16         .long defined2
     17         .long defined3
     18         .long undefined3
     19 
     20         .global global1
     21         .symver global1, g1@@zed
     22 global1:
     23 
     24 // CHECK:      Relocations [
     25 // CHECK-NEXT:   Section {{.*}} .rela.text {
     26 // CHECK-NEXT:     0x0 R_X86_64_32 .text 0x0
     27 // CHECK-NEXT:     0x4 R_X86_64_32 bar2@zed 0x0
     28 // CHECK-NEXT:     0x8 R_X86_64_32 .text 0x0
     29 // CHECK-NEXT:     0xC R_X86_64_32 .text 0x0
     30 // CHECK-NEXT:     0x10 R_X86_64_32 bar6@zed 0x0
     31 // CHECK-NEXT:   }
     32 // CHECK-NEXT: ]
     33 
     34 // CHECK:        Symbol {
     35 // CHECK:          Name: bar1@zed
     36 // CHECK-NEXT:     Value: 0x0
     37 // CHECK-NEXT:     Size: 0
     38 // CHECK-NEXT:     Binding: Local
     39 // CHECK-NEXT:     Type: None
     40 // CHECK-NEXT:     Other: 0
     41 // CHECK-NEXT:     Section: .text
     42 // CHECK-NEXT:   }
     43 // CHECK-NEXT:   Symbol {
     44 // CHECK-NEXT:     Name: bar3@@zed
     45 // CHECK-NEXT:     Value: 0x0
     46 // CHECK-NEXT:     Size: 0
     47 // CHECK-NEXT:     Binding: Local
     48 // CHECK-NEXT:     Type: None
     49 // CHECK-NEXT:     Other: 0
     50 // CHECK-NEXT:     Section: .text
     51 // CHECK-NEXT:   }
     52 // CHECK-NEXT:   Symbol {
     53 // CHECK-NEXT:     Name: bar5@@zed
     54 // CHECK-NEXT:     Value: 0x0
     55 // CHECK-NEXT:     Size: 0
     56 // CHECK-NEXT:     Binding: Local
     57 // CHECK-NEXT:     Type: None
     58 // CHECK-NEXT:     Other: 0
     59 // CHECK-NEXT:     Section: .text
     60 // CHECK-NEXT:   }
     61 // CHECK-NEXT:   Symbol {
     62 // CHECK-NEXT:     Name: defined1
     63 // CHECK-NEXT:     Value: 0x0
     64 // CHECK-NEXT:     Size: 0
     65 // CHECK-NEXT:     Binding: Local
     66 // CHECK-NEXT:     Type: None
     67 // CHECK-NEXT:     Other: 0
     68 // CHECK-NEXT:     Section: .text
     69 // CHECK-NEXT:   }
     70 // CHECK-NEXT:   Symbol {
     71 // CHECK-NEXT:     Name: defined2
     72 // CHECK-NEXT:     Value: 0x0
     73 // CHECK-NEXT:     Size: 0
     74 // CHECK-NEXT:     Binding: Local
     75 // CHECK-NEXT:     Type: None
     76 // CHECK-NEXT:     Other: 0
     77 // CHECK-NEXT:     Section: .text
     78 // CHECK-NEXT:   }
     79 // CHECK-NEXT:   Symbol {
     80 // CHECK-NEXT:     Name: (0)
     81 // CHECK-NEXT:     Value: 0x0
     82 // CHECK-NEXT:     Size: 0
     83 // CHECK-NEXT:     Binding: Local
     84 // CHECK-NEXT:     Type: Section
     85 // CHECK-NEXT:     Other: 0
     86 // CHECK-NEXT:     Section: .text
     87 // CHECK-NEXT:   }
     88 // CHECK-NEXT:   Symbol {
     89 // CHECK-NEXT:     Name: bar2@zed
     90 // CHECK-NEXT:     Value: 0x0
     91 // CHECK-NEXT:     Size: 0
     92 // CHECK-NEXT:     Binding: Global
     93 // CHECK-NEXT:     Type: None
     94 // CHECK-NEXT:     Other: 0
     95 // CHECK-NEXT:     Section: Undefined
     96 // CHECK-NEXT:   }
     97 // CHECK-NEXT:   Symbol {
     98 // CHECK-NEXT:     Name: bar6@zed
     99 // CHECK-NEXT:     Value: 0x0
    100 // CHECK-NEXT:     Size: 0
    101 // CHECK-NEXT:     Binding: Global
    102 // CHECK-NEXT:     Type: None
    103 // CHECK-NEXT:     Other: 0
    104 // CHECK-NEXT:     Section: Undefined
    105 // CHECK-NEXT:   }
    106 // CHECK-NEXT:   Symbol {
    107 // CHECK-NEXT:     Name: g1@@zed
    108 // CHECK-NEXT:     Value: 0x14
    109 // CHECK-NEXT:     Size: 0
    110 // CHECK-NEXT:     Binding: Global
    111 // CHECK-NEXT:     Type: None
    112 // CHECK-NEXT:     Other: 0
    113 // CHECK-NEXT:     Section: .text
    114 // CHECK-NEXT:   }
    115 // CHECK-NEXT:   Symbol {
    116 // CHECK-NEXT:     Name: global1
    117 // CHECK-NEXT:     Value: 0x14
    118 // CHECK-NEXT:     Size: 0
    119 // CHECK-NEXT:     Binding: Global
    120 // CHECK-NEXT:     Type: None
    121 // CHECK-NEXT:     Other: 0
    122 // CHECK-NEXT:     Section: .text
    123 // CHECK-NEXT:   }
    124 // CHECK-NEXT: ]
    125