1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck --check-prefix=ELF %s 2// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin %s -o - | llvm-readobj -r | FileCheck --check-prefix=MACHO %s 3 4 5bar = foo + 4 6 .globl bar 7 .long bar 8 9// ELF: Relocations [ 10// ELF-NEXT: Section {{.*}} .rela.text { 11// ELF-NEXT: 0x0 R_X86_64_32 foo 0x4 12// ELF-NEXT: } 13// ELF-NEXT: ] 14 15 16// MACHO: Relocations [ 17// MACHO: Section __text { 18// MACHO: 0x0 0 2 1 X86_64_RELOC_UNSIGNED 0 bar 19// MACHO: } 20// MACHO: ] 21