Home | History | Annotate | Download | only in ELF
      1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump  | FileCheck %s
      2 
      3 // CHECK:       ('_relocations', [
      4 // CHECK-NEXT:    # Relocation 0
      5 // CHECK-NEXT:    (('r_offset', 0x000000000000000c)
      6 // CHECK-NEXT:     ('r_sym', 0x00000005)
      7 // CHECK-NEXT:     ('r_type', 0x00000002)
      8 // CHECK-NEXT:     ('r_addend', 0x0000000000000008)
      9 // CHECK-NEXT:    ),
     10 // CHECK-NEXT:   ])
     11 
     12 // CHECK:         # Symbol 5
     13 // CHECK-NEXT:    (('st_name', 0x00000005) # 'baz'
     14 // CHECK-NEXT:     ('st_bind', 0x1)
     15 // CHECK-NEXT:     ('st_type', 0x0)
     16 // CHECK-NEXT:     ('st_other', 0x00)
     17 // CHECK-NEXT:     ('st_shndx', 0x0000)
     18 // CHECK-NEXT:     ('st_value', 0x0000000000000000)
     19 // CHECK-NEXT:     ('st_size', 0x0000000000000000)
     20 // CHECK-NEXT:    ),
     21 
     22 .zero 4
     23 .data
     24 
     25 .zero 1
     26 .align 4
     27 foo:
     28 .zero 8
     29 .long baz - foo
     30