xref: /llvm-project/llvm/test/tools/llvm-objcopy/MachO/arm64-relocs.s (revision 69937a8080bc4828f0b317cd54a03ed2704b661a)
1# REQUIRES: aarch64-registered-target
2
3# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t
4# RUN: llvm-objcopy %t %t.copy
5# RUN: cmp %t %t.copy
6
7.text
8.globl _foo, _bar
9_foo:
10  ## ARM64_RELOC_ADDEND and ARM64_RELOC_BRANCH26
11  bl _bar + 123
12
13_bar:
14  ret
15
16.subsections_via_symbols
17