3 ## This tests that we can handle relocations that are not sorted by address.
4 ## llvm-mc isn't able to emit such a file, hence the use of yaml2obj. ld64
5 ## may emit files with unsorted relocations in `-r` mode, so we need to support
8 # RUN: yaml2obj %s -o %t.o
9 # RUN: %lld -dylib -o %t %t.o
10 # RUN: llvm-objdump --macho -d %t | FileCheck %s
13 # CHECK-NEXT: movq _bar(%rip), %rax
15 # CHECK-NEXT: movq _baz(%rip), %rax
17 # CHECK-NEXT: movq _foo(%rip), %rax
54 content: 488B0500000000488B0500000000488B0500000000