1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sr | FileCheck %s 2 3 // Test that we produce the correct relocation. 4 5 loope 0 # R_X86_64_PC8 6 jmp -256 # R_X86_64_PC32 7 8 // CHECK: Section { 9 // CHECK: Index: 1 10 // CHECK-NEXT: Name: .text 11 // CHECK: Relocations [ 12 // CHECK-NEXT: ] 13 // CHECK-NEXT: } 14 15 // CHECK: Section { 16 // CHECK: Index: 2 17 // CHECK-NEXT: Name: .rela.text 18 // CHECK-NEXT: Type: SHT_RELA 19 // CHECK-NEXT: Flags [ 20 // CHECK-NEXT: ] 21 // CHECK-NEXT: Address: 0x0 22 // CHECK-NEXT: Offset: 0x2E8 23 // CHECK-NEXT: Size: 48 24 // CHECK-NEXT: Link: 6 25 // CHECK-NEXT: Info: 1 26 // CHECK-NEXT: AddressAlignment: 8 27 // CHECK-NEXT: EntrySize: 24 28 // CHECK-NEXT: Relocations [ 29 // CHECK-NEXT: 0x1 R_X86_64_PC8 - 0x0 30 // CHECK-NEXT: 0x3 R_X86_64_PC32 - 0x0 31 // CHECK-NEXT: ] 32 // CHECK-NEXT: } 33