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 // CHECK:      Relocations [
      4 // CHECK-NEXT:   Section ({{[^ ]+}}) {{[^ ]+}} {
      5 // CHECK-NEXT:     0xC R_X86_64_PC32 baz 0x8
      6 // CHECK-NEXT:   }
      7 // CHECK-NEXT: ]
      8 
      9 // CHECK:        Symbol {
     10 // CHECK:          Name: baz
     11 // CHECK-NEXT:     Value: 0x0
     12 // CHECK-NEXT:     Size: 0
     13 // CHECK-NEXT:     Binding: Global
     14 // CHECK-NEXT:     Type: None
     15 // CHECK-NEXT:     Other: 0
     16 // CHECK-NEXT:     Section: Undefined (0x0)
     17 // CHECK-NEXT:   }
     18 
     19 .zero 4
     20 .data
     21 
     22 .zero 1
     23 .align 4
     24 foo:
     25 .zero 8
     26 .long baz - foo
     27