llvm-for-llvmta/test/tools/llvm-objcopy/MachO/Inputs/various-symbols.s

24 lines
599 B
ArmAsm
Raw Normal View History

2022-04-25 10:02:23 +02:00
# static int i; // A local symbol.
# int f(void) { return i; } // An external symbol.
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 10, 14
.globl _f ## -- Begin function f
.p2align 4, 0x90
_f: ## @f
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl _i(%rip), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_i,4,2 ## @i
.subsections_via_symbols