1 #; $ as -o test.o gas-cfi-test.s && gcc -nostdlib -o test test.o
6 #; - function with a space on the stack
7 #; allocated for local variables
9 .type func_locvars,@function
13 #; alocate space for local vars
15 .cfi_adjust_cfa_offset 0x1234
20 #; release space of local vars and return
22 .cfi_adjust_cfa_offset -0x1234
27 #; - functions that begins with standard
28 #; prologue: "pushq %rbp; movq %rsp,%rbp"
30 .type func_prologue,@function
34 #; prologue, CFI is valid after
40 .cfi_def_cfa_register ebp
46 #; epilogue with valid CFI
47 #; (we're better than gcc :-)
49 .cfi_def_cfa_register esp
54 #; - function that moves frame pointer to
55 #; another register (r12) and then allocates
56 #; a space for local variables
58 .type func_otherreg,@function
62 #; save frame pointer to ebx
64 .cfi_def_cfa_register ebx
66 #; alocate space for local vars
67 #; (no .cfi_{def,adjust}_cfa_offset here,
68 #; because CFA is computed from r12!)
75 #; restore frame pointer from r12
87 #; only function body that doesn't
88 #; touch the stack at all.
96 #; - standard entry point
98 .type _start,@function