1 /* -----------------------------------------------------------------------
2 win32.S - Copyright (c) 1996, 1998, 2001, 2002, 2009 Red Hat, Inc.
3 Copyright (c) 2001 John Beniton
4 Copyright (c) 2002 Ranjit Mathew
5 Copyright (c) 2009 Daniel Witte
8 X86 Foreign Function Interface
10 Permission is hereby granted, free of charge, to any person obtaining
11 a copy of this software and associated documentation files (the
12 ``Software''), to deal in the Software without restriction, including
13 without limitation the rights to use, copy, modify, merge, publish,
14 distribute, sublicense, and/or sell copies of the Software, and to
15 permit persons to whom the Software is furnished to do so, subject to
16 the following conditions:
18 The above copyright notice and this permission notice shall be included
19 in all copies or substantial portions of the Software.
21 THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
22 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28 DEALINGS IN THE SOFTWARE.
29 -----------------------------------------------------------------------
33 #include <fficonfig.h>
41 EXTRN ffi_closure_SYSV_inner:NEAR
45 ffi_call_win32 PROC NEAR,
46 ffi_prep_args : NEAR PTR DWORD,
47 ecif : NEAR PTR DWORD,
51 rvalue : NEAR PTR DWORD,
54 ;; Make room for all of the new args.
60 ;; Place all of the ffi_prep_args in position
65 ;; Return stack to previous state and call the function
68 ;; Handle thiscall and fastcall
69 cmp cif_abi, 3 ;; FFI_THISCALL
71 cmp cif_abi, 4 ;; FFI_FASTCALL
73 mov ecx, DWORD PTR [esp]
74 mov edx, DWORD PTR [esp+4]
78 mov ecx, DWORD PTR [esp]
83 ;; cdecl: we restore esp in the epilogue, so there's no need to
84 ;; remove the space we pushed for the args.
85 ;; stdcall: the callee has already cleaned the stack.
87 ;; Load ecx with the return type code
90 ;; If the return value pointer is NULL, assume no return value.
94 ;; Even if there is no space for the return value, we are
95 ;; obliged to handle floating-point values.
96 cmp ecx, FFI_TYPE_FLOAT
103 jmp [ca_jumpdata + 4 * ecx]
105 ;; Do not insert anything here between label and jump table.
106 dd offset ca_epilogue ;; FFI_TYPE_VOID
107 dd offset ca_retint ;; FFI_TYPE_INT
108 dd offset ca_retfloat ;; FFI_TYPE_FLOAT
109 dd offset ca_retdouble ;; FFI_TYPE_DOUBLE
110 dd offset ca_retlongdouble ;; FFI_TYPE_LONGDOUBLE
111 dd offset ca_retint8 ;; FFI_TYPE_UINT8
112 dd offset ca_retint8 ;; FFI_TYPE_SINT8
113 dd offset ca_retint16 ;; FFI_TYPE_UINT16
114 dd offset ca_retint16 ;; FFI_TYPE_SINT16
115 dd offset ca_retint ;; FFI_TYPE_UINT32
116 dd offset ca_retint ;; FFI_TYPE_SINT32
117 dd offset ca_retint64 ;; FFI_TYPE_UINT64
118 dd offset ca_retint64 ;; FFI_TYPE_SINT64
119 dd offset ca_epilogue ;; FFI_TYPE_STRUCT
120 dd offset ca_retint ;; FFI_TYPE_POINTER
121 dd offset ca_retint8 ;; FFI_TYPE_SMALL_STRUCT_1B
122 dd offset ca_retint16 ;; FFI_TYPE_SMALL_STRUCT_2B
123 dd offset ca_retint ;; FFI_TYPE_SMALL_STRUCT_4B
126 ;; Load %ecx with the pointer to storage for the return value
132 ;; Load %ecx with the pointer to storage for the return value
138 ;; Load %ecx with the pointer to storage for the return value
144 ;; Load %ecx with the pointer to storage for the return value
151 ;; Load %ecx with the pointer to storage for the return value
157 ;; Load %ecx with the pointer to storage for the return value
163 ;; Load %ecx with the pointer to storage for the return value
169 ;; Epilogue code is autogenerated.
173 ffi_closure_THISCALL PROC NEAR FORCEFRAME
178 mov [ebp - 12], edx /* resp */
179 lea edx, [ebp + 12] /* account for stub return address on stack */
181 ffi_closure_THISCALL ENDP
183 ffi_closure_SYSV PROC NEAR FORCEFRAME
184 ;; the ffi_closure ctx is passed in eax by the trampoline.
188 mov [ebp - 12], edx ;; resp
191 mov [esp + 8], edx ;; args
193 mov [esp + 4], edx ;; &resp
194 mov [esp], eax ;; closure
195 call ffi_closure_SYSV_inner
199 jmp [cs_jumpdata + 4 * eax]
201 ;; Do not insert anything here between the label and jump table.
202 dd offset cs_epilogue ;; FFI_TYPE_VOID
203 dd offset cs_retint ;; FFI_TYPE_INT
204 dd offset cs_retfloat ;; FFI_TYPE_FLOAT
205 dd offset cs_retdouble ;; FFI_TYPE_DOUBLE
206 dd offset cs_retlongdouble ;; FFI_TYPE_LONGDOUBLE
207 dd offset cs_retint8 ;; FFI_TYPE_UINT8
208 dd offset cs_retint8 ;; FFI_TYPE_SINT8
209 dd offset cs_retint16 ;; FFI_TYPE_UINT16
210 dd offset cs_retint16 ;; FFI_TYPE_SINT16
211 dd offset cs_retint ;; FFI_TYPE_UINT32
212 dd offset cs_retint ;; FFI_TYPE_SINT32
213 dd offset cs_retint64 ;; FFI_TYPE_UINT64
214 dd offset cs_retint64 ;; FFI_TYPE_SINT64
215 dd offset cs_retstruct ;; FFI_TYPE_STRUCT
216 dd offset cs_retint ;; FFI_TYPE_POINTER
217 dd offset cs_retint8 ;; FFI_TYPE_SMALL_STRUCT_1B
218 dd offset cs_retint16 ;; FFI_TYPE_SMALL_STRUCT_2B
219 dd offset cs_retint ;; FFI_TYPE_SMALL_STRUCT_4B
251 ;; Caller expects us to pop struct return value pointer hidden arg.
252 ;; Epilogue code is autogenerated.
256 ;; Epilogue code is autogenerated.
258 ffi_closure_SYSV ENDP
262 #define RAW_CLOSURE_CIF_OFFSET ((FFI_TRAMPOLINE_SIZE + 3) AND NOT 3)
263 #define RAW_CLOSURE_FUN_OFFSET (RAW_CLOSURE_CIF_OFFSET + 4)
264 #define RAW_CLOSURE_USER_DATA_OFFSET (RAW_CLOSURE_FUN_OFFSET + 4)
265 #define CIF_FLAGS_OFFSET 20
267 ffi_closure_raw_SYSV PROC NEAR USES esi
268 ;; the ffi_closure ctx is passed in eax by the trampoline.
271 mov esi, [eax + RAW_CLOSURE_CIF_OFFSET] ;; closure->cif
272 mov edx, [eax + RAW_CLOSURE_USER_DATA_OFFSET] ;; closure->user_data
273 mov [esp + 12], edx ;; user_data
275 mov [esp + 8], edx ;; raw_args
277 mov [esp + 4], edx ;; &res
278 mov [esp], esi ;; cif
279 call DWORD PTR [eax + RAW_CLOSURE_FUN_OFFSET] ;; closure->fun
280 mov eax, [esi + CIF_FLAGS_OFFSET] ;; cif->flags
284 jmp [cr_jumpdata + 4 * eax]
286 ;; Do not insert anything here between the label and jump table.
287 dd offset cr_epilogue ;; FFI_TYPE_VOID
288 dd offset cr_retint ;; FFI_TYPE_INT
289 dd offset cr_retfloat ;; FFI_TYPE_FLOAT
290 dd offset cr_retdouble ;; FFI_TYPE_DOUBLE
291 dd offset cr_retlongdouble ;; FFI_TYPE_LONGDOUBLE
292 dd offset cr_retint8 ;; FFI_TYPE_UINT8
293 dd offset cr_retint8 ;; FFI_TYPE_SINT8
294 dd offset cr_retint16 ;; FFI_TYPE_UINT16
295 dd offset cr_retint16 ;; FFI_TYPE_SINT16
296 dd offset cr_retint ;; FFI_TYPE_UINT32
297 dd offset cr_retint ;; FFI_TYPE_SINT32
298 dd offset cr_retint64 ;; FFI_TYPE_UINT64
299 dd offset cr_retint64 ;; FFI_TYPE_SINT64
300 dd offset cr_epilogue ;; FFI_TYPE_STRUCT
301 dd offset cr_retint ;; FFI_TYPE_POINTER
302 dd offset cr_retint8 ;; FFI_TYPE_SMALL_STRUCT_1B
303 dd offset cr_retint16 ;; FFI_TYPE_SMALL_STRUCT_2B
304 dd offset cr_retint ;; FFI_TYPE_SMALL_STRUCT_4B
336 ;; Epilogue code is autogenerated.
338 ffi_closure_raw_SYSV ENDP
340 #endif /* !FFI_NO_RAW_API */
342 ffi_closure_STDCALL PROC NEAR FORCEFRAME
343 ;; the ffi_closure ctx is passed in eax by the trampoline.
347 mov [ebp - 12], edx ;; resp
348 lea edx, [ebp + 12] ;; account for stub return address on stack
349 mov [esp + 8], edx ;; args
351 mov [esp + 4], edx ;; &resp
352 mov [esp], eax ;; closure
353 call ffi_closure_SYSV_inner
357 jmp [cd_jumpdata + 4 * eax]
359 ;; Do not insert anything here between the label and jump table.
360 dd offset cd_epilogue ;; FFI_TYPE_VOID
361 dd offset cd_retint ;; FFI_TYPE_INT
362 dd offset cd_retfloat ;; FFI_TYPE_FLOAT
363 dd offset cd_retdouble ;; FFI_TYPE_DOUBLE
364 dd offset cd_retlongdouble ;; FFI_TYPE_LONGDOUBLE
365 dd offset cd_retint8 ;; FFI_TYPE_UINT8
366 dd offset cd_retint8 ;; FFI_TYPE_SINT8
367 dd offset cd_retint16 ;; FFI_TYPE_UINT16
368 dd offset cd_retint16 ;; FFI_TYPE_SINT16
369 dd offset cd_retint ;; FFI_TYPE_UINT32
370 dd offset cd_retint ;; FFI_TYPE_SINT32
371 dd offset cd_retint64 ;; FFI_TYPE_UINT64
372 dd offset cd_retint64 ;; FFI_TYPE_SINT64
373 dd offset cd_epilogue ;; FFI_TYPE_STRUCT
374 dd offset cd_retint ;; FFI_TYPE_POINTER
375 dd offset cd_retint8 ;; FFI_TYPE_SMALL_STRUCT_1B
376 dd offset cd_retint16 ;; FFI_TYPE_SMALL_STRUCT_2B
377 dd offset cd_retint ;; FFI_TYPE_SMALL_STRUCT_4B
409 ;; Epilogue code is autogenerated.
411 ffi_closure_STDCALL ENDP
420 # This assumes we are using gas.
422 .globl _ffi_call_win32
424 .def _ffi_call_win32; .scl 2; .type 32; .endef
432 # Make room for all of the new args.
438 # Place all of the ffi_prep_args in position
443 # Return stack to previous state and call the function
446 # Handle fastcall and thiscall
447 cmpl $3, 16(%ebp) # FFI_THISCALL
449 cmpl $4, 16(%ebp) # FFI_FASTCALL
461 # FIXME: Align the stack to a 128-bit boundary to avoid
462 # potential performance hits.
466 # stdcall functions pop arguments off the stack themselves
468 # Load %ecx with the return type code
471 # If the return value pointer is NULL, assume no return value.
475 # Even if there is no space for the return value, we are
476 # obliged to handle floating-point values.
477 cmpl $FFI_TYPE_FLOAT,%ecx
485 # Do not insert anything here between the call and the jump table.
487 .long .Lnoretval /* FFI_TYPE_VOID */
488 .long .Lretint /* FFI_TYPE_INT */
489 .long .Lretfloat /* FFI_TYPE_FLOAT */
490 .long .Lretdouble /* FFI_TYPE_DOUBLE */
491 .long .Lretlongdouble /* FFI_TYPE_LONGDOUBLE */
492 .long .Lretuint8 /* FFI_TYPE_UINT8 */
493 .long .Lretsint8 /* FFI_TYPE_SINT8 */
494 .long .Lretuint16 /* FFI_TYPE_UINT16 */
495 .long .Lretsint16 /* FFI_TYPE_SINT16 */
496 .long .Lretint /* FFI_TYPE_UINT32 */
497 .long .Lretint /* FFI_TYPE_SINT32 */
498 .long .Lretint64 /* FFI_TYPE_UINT64 */
499 .long .Lretint64 /* FFI_TYPE_SINT64 */
500 .long .Lretstruct /* FFI_TYPE_STRUCT */
501 .long .Lretint /* FFI_TYPE_POINTER */
502 .long .Lretstruct1b /* FFI_TYPE_SMALL_STRUCT_1B */
503 .long .Lretstruct2b /* FFI_TYPE_SMALL_STRUCT_2B */
504 .long .Lretstruct4b /* FFI_TYPE_SMALL_STRUCT_4B */
512 /* Sign/zero extend as appropriate. */
530 # Load %ecx with the pointer to storage for the return value
536 # Load %ecx with the pointer to storage for the return value
542 # Load %ecx with the pointer to storage for the return value
548 # Load %ecx with the pointer to storage for the return value
554 # Load %ecx with the pointer to storage for the return value
561 # Load %ecx with the pointer to storage for the return value
567 # Load %ecx with the pointer to storage for the return value
573 # Load %ecx with the pointer to storage for the return value
588 .globl _ffi_closure_THISCALL
590 .def _ffi_closure_THISCALL; .scl 2; .type 32; .endef
592 _ffi_closure_THISCALL:
597 movl %edx, -12(%ebp) /* resp */
598 leal 12(%ebp), %edx /* account for stub return address on stack */
602 # This assumes we are using gas.
604 .globl _ffi_closure_SYSV
606 .def _ffi_closure_SYSV; .scl 2; .type 32; .endef
616 movl %edx, -12(%ebp) /* resp */
619 movl %edx, 4(%esp) /* args = __builtin_dwarf_cfa () */
621 movl %edx, (%esp) /* &resp */
622 call _ffi_closure_SYSV_inner
627 # Do not insert anything here between the call and the jump table.
629 .long .Lcls_noretval /* FFI_TYPE_VOID */
630 .long .Lcls_retint /* FFI_TYPE_INT */
631 .long .Lcls_retfloat /* FFI_TYPE_FLOAT */
632 .long .Lcls_retdouble /* FFI_TYPE_DOUBLE */
633 .long .Lcls_retldouble /* FFI_TYPE_LONGDOUBLE */
634 .long .Lcls_retuint8 /* FFI_TYPE_UINT8 */
635 .long .Lcls_retsint8 /* FFI_TYPE_SINT8 */
636 .long .Lcls_retuint16 /* FFI_TYPE_UINT16 */
637 .long .Lcls_retsint16 /* FFI_TYPE_SINT16 */
638 .long .Lcls_retint /* FFI_TYPE_UINT32 */
639 .long .Lcls_retint /* FFI_TYPE_SINT32 */
640 .long .Lcls_retllong /* FFI_TYPE_UINT64 */
641 .long .Lcls_retllong /* FFI_TYPE_SINT64 */
642 .long .Lcls_retstruct /* FFI_TYPE_STRUCT */
643 .long .Lcls_retint /* FFI_TYPE_POINTER */
644 .long .Lcls_retstruct1 /* FFI_TYPE_SMALL_STRUCT_1B */
645 .long .Lcls_retstruct2 /* FFI_TYPE_SMALL_STRUCT_2B */
646 .long .Lcls_retstruct4 /* FFI_TYPE_SMALL_STRUCT_4B */
655 /* Sign/zero extend as appropriate. */
706 # Caller expects us to pop struct return value pointer hidden arg.
716 .ffi_closure_SYSV_end:
721 #define RAW_CLOSURE_CIF_OFFSET ((FFI_TRAMPOLINE_SIZE + 3) & ~3)
722 #define RAW_CLOSURE_FUN_OFFSET (RAW_CLOSURE_CIF_OFFSET + 4)
723 #define RAW_CLOSURE_USER_DATA_OFFSET (RAW_CLOSURE_FUN_OFFSET + 4)
724 #define CIF_FLAGS_OFFSET 20
726 # This assumes we are using gas.
728 .globl _ffi_closure_raw_SYSV
730 .def _ffi_closure_raw_SYSV; .scl 2; .type 32; .endef
732 _ffi_closure_raw_SYSV:
741 movl RAW_CLOSURE_CIF_OFFSET(%eax), %esi /* closure->cif */
742 movl RAW_CLOSURE_USER_DATA_OFFSET(%eax), %edx /* closure->user_data */
743 movl %edx, 12(%esp) /* user_data */
744 leal 8(%ebp), %edx /* __builtin_dwarf_cfa () */
745 movl %edx, 8(%esp) /* raw_args */
747 movl %edx, 4(%esp) /* &res */
748 movl %esi, (%esp) /* cif */
749 call *RAW_CLOSURE_FUN_OFFSET(%eax) /* closure->fun */
750 movl CIF_FLAGS_OFFSET(%esi), %eax /* rtype */
753 # Do not insert anything here between the call and the jump table.
755 .long .Lrcls_noretval /* FFI_TYPE_VOID */
756 .long .Lrcls_retint /* FFI_TYPE_INT */
757 .long .Lrcls_retfloat /* FFI_TYPE_FLOAT */
758 .long .Lrcls_retdouble /* FFI_TYPE_DOUBLE */
759 .long .Lrcls_retldouble /* FFI_TYPE_LONGDOUBLE */
760 .long .Lrcls_retuint8 /* FFI_TYPE_UINT8 */
761 .long .Lrcls_retsint8 /* FFI_TYPE_SINT8 */
762 .long .Lrcls_retuint16 /* FFI_TYPE_UINT16 */
763 .long .Lrcls_retsint16 /* FFI_TYPE_SINT16 */
764 .long .Lrcls_retint /* FFI_TYPE_UINT32 */
765 .long .Lrcls_retint /* FFI_TYPE_SINT32 */
766 .long .Lrcls_retllong /* FFI_TYPE_UINT64 */
767 .long .Lrcls_retllong /* FFI_TYPE_SINT64 */
768 .long .Lrcls_retstruct /* FFI_TYPE_STRUCT */
769 .long .Lrcls_retint /* FFI_TYPE_POINTER */
770 .long .Lrcls_retstruct1 /* FFI_TYPE_SMALL_STRUCT_1B */
771 .long .Lrcls_retstruct2 /* FFI_TYPE_SMALL_STRUCT_2B */
772 .long .Lrcls_retstruct4 /* FFI_TYPE_SMALL_STRUCT_4B */
780 /* Sign/zero extend as appropriate. */
782 movsbl -24(%ebp), %eax
786 movswl -24(%ebp), %eax
790 movzbl -24(%ebp), %eax
794 movzwl -24(%ebp), %eax
819 movsbl -24(%ebp), %eax
823 movswl -24(%ebp), %eax
839 .ffi_closure_raw_SYSV_end:
842 #endif /* !FFI_NO_RAW_API */
844 # This assumes we are using gas.
846 .globl _ffi_closure_STDCALL
848 .def _ffi_closure_STDCALL; .scl 2; .type 32; .endef
850 _ffi_closure_STDCALL:
858 movl %edx, -12(%ebp) /* resp */
859 leal 12(%ebp), %edx /* account for stub return address on stack */
860 movl %edx, 4(%esp) /* args */
862 movl %edx, (%esp) /* &resp */
863 call _ffi_closure_SYSV_inner
867 # Do not insert anything here between the call and the jump table.
869 .long .Lscls_noretval /* FFI_TYPE_VOID */
870 .long .Lscls_retint /* FFI_TYPE_INT */
871 .long .Lscls_retfloat /* FFI_TYPE_FLOAT */
872 .long .Lscls_retdouble /* FFI_TYPE_DOUBLE */
873 .long .Lscls_retldouble /* FFI_TYPE_LONGDOUBLE */
874 .long .Lscls_retuint8 /* FFI_TYPE_UINT8 */
875 .long .Lscls_retsint8 /* FFI_TYPE_SINT8 */
876 .long .Lscls_retuint16 /* FFI_TYPE_UINT16 */
877 .long .Lscls_retsint16 /* FFI_TYPE_SINT16 */
878 .long .Lscls_retint /* FFI_TYPE_UINT32 */
879 .long .Lscls_retint /* FFI_TYPE_SINT32 */
880 .long .Lscls_retllong /* FFI_TYPE_UINT64 */
881 .long .Lscls_retllong /* FFI_TYPE_SINT64 */
882 .long .Lscls_retstruct /* FFI_TYPE_STRUCT */
883 .long .Lscls_retint /* FFI_TYPE_POINTER */
884 .long .Lscls_retstruct1 /* FFI_TYPE_SMALL_STRUCT_1B */
885 .long .Lscls_retstruct2 /* FFI_TYPE_SMALL_STRUCT_2B */
886 .long .Lscls_retstruct4 /* FFI_TYPE_SMALL_STRUCT_4B */
894 /* Sign/zero extend as appropriate. */
952 .ffi_closure_STDCALL_end:
956 .section .eh_frame,"w"
960 .long .LECIE1-.LASCIE1 /* Length of Common Information Entry */
962 .long 0x0 /* CIE Identifier Tag */
963 .byte 0x1 /* CIE Version */
965 .ascii "zR\0" /* CIE Augmentation */
967 .ascii "\0" /* CIE Augmentation */
969 .byte 0x1 /* .uleb128 0x1; CIE Code Alignment Factor */
970 .byte 0x7c /* .sleb128 -4; CIE Data Alignment Factor */
971 .byte 0x8 /* CIE RA Column */
973 .byte 0x1 /* .uleb128 0x1; Augmentation size */
974 .byte 0x1b /* FDE Encoding (pcrel sdata4) */
976 .byte 0xc /* DW_CFA_def_cfa CFA = r4 + 4 = 4(%esp) */
977 .byte 0x4 /* .uleb128 0x4 */
978 .byte 0x4 /* .uleb128 0x4 */
979 .byte 0x88 /* DW_CFA_offset, column 0x8 %eip at CFA + 1 * -4 */
980 .byte 0x1 /* .uleb128 0x1 */
985 .long .LEFDE1-.LASFDE1 /* FDE Length */
987 .long .LASFDE1-.Lframe1 /* FDE CIE offset */
988 #if defined __PIC__ && defined HAVE_AS_X86_PCREL
989 .long .LFB1-. /* FDE initial location */
993 .long .LFE1-.LFB1 /* FDE address range */
995 .byte 0x0 /* .uleb128 0x0; Augmentation size */
997 /* DW_CFA_xxx CFI instructions go here. */
999 .byte 0x4 /* DW_CFA_advance_loc4 */
1001 .byte 0xe /* DW_CFA_def_cfa_offset CFA = r4 + 8 = 8(%esp) */
1002 .byte 0x8 /* .uleb128 0x8 */
1003 .byte 0x85 /* DW_CFA_offset, column 0x5 %ebp at CFA + 2 * -4 */
1004 .byte 0x2 /* .uleb128 0x2 */
1006 .byte 0x4 /* DW_CFA_advance_loc4 */
1008 .byte 0xd /* DW_CFA_def_cfa_register CFA = r5 = %ebp */
1009 .byte 0x5 /* .uleb128 0x5 */
1011 /* End of DW_CFA_xxx CFI instructions. */
1017 .long .LEFDE3-.LASFDE3 /* FDE Length */
1019 .long .LASFDE3-.Lframe1 /* FDE CIE offset */
1020 #if defined __PIC__ && defined HAVE_AS_X86_PCREL
1021 .long .LFB3-. /* FDE initial location */
1025 .long .LFE3-.LFB3 /* FDE address range */
1027 .byte 0x0 /* .uleb128 0x0; Augmentation size */
1029 /* DW_CFA_xxx CFI instructions go here. */
1031 .byte 0x4 /* DW_CFA_advance_loc4 */
1033 .byte 0xe /* DW_CFA_def_cfa_offset CFA = r4 + 8 = 8(%esp) */
1034 .byte 0x8 /* .uleb128 0x8 */
1035 .byte 0x85 /* DW_CFA_offset, column 0x5 %ebp at CFA + 2 * -4 */
1036 .byte 0x2 /* .uleb128 0x2 */
1038 .byte 0x4 /* DW_CFA_advance_loc4 */
1040 .byte 0xd /* DW_CFA_def_cfa_register CFA = r5 = %ebp */
1041 .byte 0x5 /* .uleb128 0x5 */
1043 /* End of DW_CFA_xxx CFI instructions. */
1050 .long .LEFDE4-.LASFDE4 /* FDE Length */
1052 .long .LASFDE4-.Lframe1 /* FDE CIE offset */
1053 #if defined __PIC__ && defined HAVE_AS_X86_PCREL
1054 .long .LFB4-. /* FDE initial location */
1058 .long .LFE4-.LFB4 /* FDE address range */
1060 .byte 0x0 /* .uleb128 0x0; Augmentation size */
1062 /* DW_CFA_xxx CFI instructions go here. */
1064 .byte 0x4 /* DW_CFA_advance_loc4 */
1066 .byte 0xe /* DW_CFA_def_cfa_offset CFA = r4 + 8 = 8(%esp) */
1067 .byte 0x8 /* .uleb128 0x8 */
1068 .byte 0x85 /* DW_CFA_offset, column 0x5 %ebp at CFA + 2 * -4 */
1069 .byte 0x2 /* .uleb128 0x2 */
1071 .byte 0x4 /* DW_CFA_advance_loc4 */
1073 .byte 0xd /* DW_CFA_def_cfa_register CFA = r5 = %ebp */
1074 .byte 0x5 /* .uleb128 0x5 */
1076 .byte 0x4 /* DW_CFA_advance_loc4 */
1078 .byte 0x86 /* DW_CFA_offset, column 0x6 %esi at CFA + 3 * -4 */
1079 .byte 0x3 /* .uleb128 0x3 */
1081 /* End of DW_CFA_xxx CFI instructions. */
1085 #endif /* !FFI_NO_RAW_API */
1088 .long .LEFDE5-.LASFDE5 /* FDE Length */
1090 .long .LASFDE5-.Lframe1 /* FDE CIE offset */
1091 #if defined __PIC__ && defined HAVE_AS_X86_PCREL
1092 .long .LFB5-. /* FDE initial location */
1096 .long .LFE5-.LFB5 /* FDE address range */
1098 .byte 0x0 /* .uleb128 0x0; Augmentation size */
1100 /* DW_CFA_xxx CFI instructions go here. */
1102 .byte 0x4 /* DW_CFA_advance_loc4 */
1104 .byte 0xe /* DW_CFA_def_cfa_offset CFA = r4 + 8 = 8(%esp) */
1105 .byte 0x8 /* .uleb128 0x8 */
1106 .byte 0x85 /* DW_CFA_offset, column 0x5 %ebp at CFA + 2 * -4 */
1107 .byte 0x2 /* .uleb128 0x2 */
1109 .byte 0x4 /* DW_CFA_advance_loc4 */
1110 .long .LCFI10-.LCFI9
1111 .byte 0xd /* DW_CFA_def_cfa_register CFA = r5 = %ebp */
1112 .byte 0x5 /* .uleb128 0x5 */
1114 /* End of DW_CFA_xxx CFI instructions. */
1118 #endif /* !_MSC_VER */