1 ## Check that llvm-objcopy can handle an object
2 ## containing dynamic relocations properly.
4 # RUN: yaml2obj %s -o %t1
5 # RUN: llvm-objcopy %t1 %t2
6 # RUN: llvm-readobj --sections --section-data %t2 | FileCheck %s
8 # CHECK: Name: .rela.plt
9 # CHECK-NEXT: Type: SHT_RELA
11 # CHECK-NEXT: SHF_ALLOC
13 # CHECK-NEXT: Address:
15 # CHECK-NEXT: Size: 24
18 # CHECK-NEXT: AddressAlignment: 8
19 # CHECK-NEXT: EntrySize: 24
20 # CHECK-NEXT: SectionData (
21 # CHECK-NEXT: 0000: 18202000 00000000 07000000 01000000 |. .............|
22 # CHECK-NEXT: 0010: 00000000 00000000 |........|
35 Address: 0x0000000000200220
37 AddressAlign: 0x0000000000000008
39 - Offset: 0x0000000000202018
41 Type: R_X86_64_JUMP_SLOT