[gn build] Port 3986cffe8112
[llvm-project.git] / llvm / test / tools / llvm-objcopy / MachO / Inputs / various-symbols.s
bloba6e099cff3d00254dc665b2b49d4f12be03ae18a
1 # static int i; // A local symbol.
2 # int f(void) { return i; } // An external symbol.
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
23 .subsections_via_symbols