xref: /llvm-project/llvm/test/tools/llvm-objcopy/MachO/Inputs/various-symbols.s (revision b728e53b957f0edea000c6169448be226f0b8e6f)
1# static int i; // A local symbol.
2# int f(void) { return i; } // An external symbol.
3
4	.section	__TEXT,__text,regular,pure_instructions
5	.build_version macos, 10, 14
6	.globl	_f                      ## -- Begin function f
7	.p2align	4, 0x90
8_f:                                     ## @f
9	.cfi_startproc
10## %bb.0:
11	pushq	%rbp
12	.cfi_def_cfa_offset 16
13	.cfi_offset %rbp, -16
14	movq	%rsp, %rbp
15	.cfi_def_cfa_register %rbp
16	movl	_i(%rip), %eax
17	popq	%rbp
18	retq
19	.cfi_endproc
20                                        ## -- End function
21.zerofill __DATA,__bss,_i,4,2           ## @i
22
23.subsections_via_symbols
24