aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-objcopy/MachO/arm64-relocs.s
blob: 269926666eb375f36087dba49474133544baea96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# REQUIRES: aarch64-registered-target

# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t
# RUN: llvm-objcopy %t %t.copy
# RUN: cmp %t %t.copy

.text
.globl _foo, _bar
_foo:
  ## ARM64_RELOC_ADDEND and ARM64_RELOC_BRANCH26
  bl _bar + 123

_bar:
  ret

.subsections_via_symbols