1 // RUN: llvm-mc < %s -triple=aarch64-none-linux-gnu -filetype=obj | llvm-readobj -r | FileCheck %s
2 // RUN: llvm-mc < %s -triple=arm64-none-linux-gnu -filetype=obj | llvm-readobj -r | FileCheck %s
4 // External symbols are a different concept to global variables but should still
5 // get relocations and so on when used.
10 .type check_extern,@function
11 check_extern: // @check_extern
17 str x30, [sp, #8] // 8-byte Folded Spill
22 ldr x30, [sp, #8] // 8-byte Folded Reload
26 .size check_extern, .Ltmp4-check_extern
30 // CHECK: Relocations [
31 // CHECK: Section (2) .rela.text {
32 // CHECK: 0x{{[0-9,A-F]+}} R_AARCH64_CALL26 memcpy