1# Check we handle -rpath correctly: 2# RUN: ld64.lld -arch x86_64 -rpath @loader_path/../Frameworks \ 3# RUN: %p/Inputs/x86_64/libSystem.yaml %s -o %t 4# RUN: llvm-objdump --private-headers %t | FileCheck %s --check-prefix=CHECK-BINARY-WRITE 5 6--- !mach-o 7arch: x86_64 8file-type: MH_OBJECT 9flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] 10has-UUID: false 11OS: unknown 12sections: 13 - segment: __TEXT 14 section: __text 15 type: S_REGULAR 16 attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] 17 alignment: 4 18 address: 0x0000000000000000 19 content: [ 0xCC, 0xC3, 0x90, 0xC3, 0x90, 0x90, 0xC3, 0x90, 20 0x90, 0x90, 0xC3, 0x90, 0x90, 0x90, 0x90, 0xC3, 21 0x31, 0xC0, 0xC3 ] 22local-symbols: 23 - name: _myStatic 24 type: N_SECT 25 sect: 1 26 value: 0x000000000000000B 27global-symbols: 28 - name: _main 29 type: N_SECT 30 scope: [ N_EXT ] 31 sect: 1 32 value: 0x0000000000000001 33... 34 35 36# CHECK-BINARY-WRITE: cmd LC_RPATH 37# CHECK-BINARY-WRITE-NEXT: cmdsize 40 38# CHECK-BINARY-WRITE-NEXT: path @loader_path/../Frameworks (offset 12) 39