This is one of two flags clang passes to the linker when giving calling clang with multiple -arch flags. I think it'd make sense to also use finalOutput instead of outputFile in CodeSignatureSection() and when replacing @executable_path, but ld64 doesn't do that, so I'll at least put those in separate commits. Differential Revision: https://reviews.llvm.org/D105449
19 lines
527 B
ArmAsm
19 lines
527 B
ArmAsm
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t.o %s
|
|
|
|
## -final_output sets the default for -install_name, but an explicit
|
|
## -install_name wins
|
|
# RUN: %lld -dylib -o %t.dylib -final_output /lib/foo.dylib %t.o
|
|
# RUN: llvm-otool -D %t.dylib | FileCheck -DID=/lib/foo.dylib %s
|
|
|
|
# RUN: %lld -dylib -o %t.dylib -install_name /foo/bar.dylib \
|
|
# RUN: -final_output /lib/foo.dylib %t.o
|
|
# RUN: llvm-otool -D %t.dylib | FileCheck -DID=/foo/bar.dylib %s
|
|
|
|
# CHECK: [[ID]]
|
|
|
|
.globl __Z3foo
|
|
__Z3foo:
|
|
ret
|