1 # RUN: yaml2obj %s -o %t
3 ## Show that llvm-objcopy copies relocation entries where r_extern = 0.
4 # RUN: llvm-objcopy %t %t2
7 ## Show that llvm-objcopy updates section indices properly.
8 # RUN: llvm-objcopy --remove-section=__DATA,__foo %t %t3
9 # RUN: llvm-objdump --macho --reloc %t3 | FileCheck %s
11 # CHECK: Relocation information (__DATA,__bar) 2 entries
12 # CHECK-NEXT: address pcrel length extern type scattered symbolnum/value
13 # CHECK-NEXT: 00000000 False quad False SUB False 2 (__DATA,__bar)
14 # CHECK-NEXT: 00000000 False quad False UNSIGND False 1 (__TEXT,__text)
20 cpusubtype: 0x00000003
41 addr: 0x0000000000000000
51 content: '0000000000000000'
54 addr: 0x0000000000000008
64 content: '0000000000000000'
67 addr: 0x0000000000000010
77 content: F0FFFFFFFFFFFFFF