summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/MachO/Inputs/various-symbols.s
blob: a6e099cff3d00254dc665b2b49d4f12be03ae18a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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
OpenPOWER on IntegriCloud