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_SYSV PROC NEAR FORCEFRAME
174 ;; the ffi_closure ctx is passed in eax by the trampoline.
178 mov [ebp - 12], edx ;; resp
180 mov [esp + 8], edx ;; args
182 mov [esp + 4], edx ;; &resp
183 mov [esp], eax ;; closure
184 call ffi_closure_SYSV_inner
188 jmp [cs_jumpdata + 4 * eax]
190 ;; Do not insert anything here between the label and jump table.
191 dd offset cs_epilogue ;; FFI_TYPE_VOID
192 dd offset cs_retint ;; FFI_TYPE_INT
193 dd offset cs_retfloat ;; FFI_TYPE_FLOAT
194 dd offset cs_retdouble ;; FFI_TYPE_DOUBLE
195 dd offset cs_retlongdouble ;; FFI_TYPE_LONGDOUBLE
196 dd offset cs_retint8 ;; FFI_TYPE_UINT8
197 dd offset cs_retint8 ;; FFI_TYPE_SINT8
198 dd offset cs_retint16 ;; FFI_TYPE_UINT16
199 dd offset cs_retint16 ;; FFI_TYPE_SINT16
200 dd offset cs_retint ;; FFI_TYPE_UINT32
201 dd offset cs_retint ;; FFI_TYPE_SINT32
202 dd offset cs_retint64 ;; FFI_TYPE_UINT64
203 dd offset cs_retint64 ;; FFI_TYPE_SINT64
204 dd offset cs_retstruct ;; FFI_TYPE_STRUCT
205 dd offset cs_retint ;; FFI_TYPE_POINTER
206 dd offset cs_retint8 ;; FFI_TYPE_SMALL_STRUCT_1B
207 dd offset cs_retint16 ;; FFI_TYPE_SMALL_STRUCT_2B
208 dd offset cs_retint ;; FFI_TYPE_SMALL_STRUCT_4B
240 ;; Caller expects us to pop struct return value pointer hidden arg.
241 ;; Epilogue code is autogenerated.
245 ;; Epilogue code is autogenerated.
247 ffi_closure_SYSV ENDP
251 #define RAW_CLOSURE_CIF_OFFSET ((FFI_TRAMPOLINE_SIZE + 3) AND NOT 3)
252 #define RAW_CLOSURE_FUN_OFFSET (RAW_CLOSURE_CIF_OFFSET + 4)
253 #define RAW_CLOSURE_USER_DATA_OFFSET (RAW_CLOSURE_FUN_OFFSET + 4)
254 #define CIF_FLAGS_OFFSET 20
256 ffi_closure_raw_SYSV PROC NEAR USES esi
257 ;; the ffi_closure ctx is passed in eax by the trampoline.
260 mov esi, [eax + RAW_CLOSURE_CIF_OFFSET] ;; closure->cif
261 mov edx, [eax + RAW_CLOSURE_USER_DATA_OFFSET] ;; closure->user_data
262 mov [esp + 12], edx ;; user_data
264 mov [esp + 8], edx ;; raw_args
266 mov [esp + 4], edx ;; &res
267 mov [esp], esi ;; cif
268 call DWORD PTR [eax + RAW_CLOSURE_FUN_OFFSET] ;; closure->fun
269 mov eax, [esi + CIF_FLAGS_OFFSET] ;; cif->flags
273 jmp [cr_jumpdata + 4 * eax]
275 ;; Do not insert anything here between the label and jump table.
276 dd offset cr_epilogue ;; FFI_TYPE_VOID
277 dd offset cr_retint ;; FFI_TYPE_INT
278 dd offset cr_retfloat ;; FFI_TYPE_FLOAT
279 dd offset cr_retdouble ;; FFI_TYPE_DOUBLE
280 dd offset cr_retlongdouble ;; FFI_TYPE_LONGDOUBLE
281 dd offset cr_retint8 ;; FFI_TYPE_UINT8
282 dd offset cr_retint8 ;; FFI_TYPE_SINT8
283 dd offset cr_retint16 ;; FFI_TYPE_UINT16
284 dd offset cr_retint16 ;; FFI_TYPE_SINT16
285 dd offset cr_retint ;; FFI_TYPE_UINT32
286 dd offset cr_retint ;; FFI_TYPE_SINT32
287 dd offset cr_retint64 ;; FFI_TYPE_UINT64
288 dd offset cr_retint64 ;; FFI_TYPE_SINT64
289 dd offset cr_epilogue ;; FFI_TYPE_STRUCT
290 dd offset cr_retint ;; FFI_TYPE_POINTER
291 dd offset cr_retint8 ;; FFI_TYPE_SMALL_STRUCT_1B
292 dd offset cr_retint16 ;; FFI_TYPE_SMALL_STRUCT_2B
293 dd offset cr_retint ;; FFI_TYPE_SMALL_STRUCT_4B
325 ;; Epilogue code is autogenerated.
327 ffi_closure_raw_SYSV ENDP
329 #endif /* !FFI_NO_RAW_API */
331 ffi_closure_STDCALL PROC NEAR FORCEFRAME
332 ;; the ffi_closure ctx is passed in eax by the trampoline.
336 mov [ebp - 12], edx ;; resp
337 lea edx, [ebp + 12] ;; account for stub return address on stack
338 mov [esp + 8], edx ;; args
340 mov [esp + 4], edx ;; &resp
341 mov [esp], eax ;; closure
342 call ffi_closure_SYSV_inner
346 jmp [cd_jumpdata + 4 * eax]
348 ;; Do not insert anything here between the label and jump table.
349 dd offset cd_epilogue ;; FFI_TYPE_VOID
350 dd offset cd_retint ;; FFI_TYPE_INT
351 dd offset cd_retfloat ;; FFI_TYPE_FLOAT
352 dd offset cd_retdouble ;; FFI_TYPE_DOUBLE
353 dd offset cd_retlongdouble ;; FFI_TYPE_LONGDOUBLE
354 dd offset cd_retint8 ;; FFI_TYPE_UINT8
355 dd offset cd_retint8 ;; FFI_TYPE_SINT8
356 dd offset cd_retint16 ;; FFI_TYPE_UINT16
357 dd offset cd_retint16 ;; FFI_TYPE_SINT16
358 dd offset cd_retint ;; FFI_TYPE_UINT32
359 dd offset cd_retint ;; FFI_TYPE_SINT32
360 dd offset cd_retint64 ;; FFI_TYPE_UINT64
361 dd offset cd_retint64 ;; FFI_TYPE_SINT64
362 dd offset cd_epilogue ;; FFI_TYPE_STRUCT
363 dd offset cd_retint ;; FFI_TYPE_POINTER
364 dd offset cd_retint8 ;; FFI_TYPE_SMALL_STRUCT_1B
365 dd offset cd_retint16 ;; FFI_TYPE_SMALL_STRUCT_2B
366 dd offset cd_retint ;; FFI_TYPE_SMALL_STRUCT_4B
398 ;; Epilogue code is autogenerated.
400 ffi_closure_STDCALL ENDP
409 # This assumes we are using gas.
411 .globl _ffi_call_win32
413 .def _ffi_call_win32; .scl 2; .type 32; .endef
421 # Make room for all of the new args.
427 # Place all of the ffi_prep_args in position
432 # Return stack to previous state and call the function
435 # Handle fastcall and thiscall
436 cmpl $3, 16(%ebp) # FFI_THISCALL
438 cmpl $4, 16(%ebp) # FFI_FASTCALL
450 # FIXME: Align the stack to a 128-bit boundary to avoid
451 # potential performance hits.
455 # stdcall functions pop arguments off the stack themselves
457 # Load %ecx with the return type code
460 # If the return value pointer is NULL, assume no return value.
464 # Even if there is no space for the return value, we are
465 # obliged to handle floating-point values.
466 cmpl $FFI_TYPE_FLOAT,%ecx
474 # Do not insert anything here between the call and the jump table.
476 .long .Lnoretval /* FFI_TYPE_VOID */
477 .long .Lretint /* FFI_TYPE_INT */
478 .long .Lretfloat /* FFI_TYPE_FLOAT */
479 .long .Lretdouble /* FFI_TYPE_DOUBLE */
480 .long .Lretlongdouble /* FFI_TYPE_LONGDOUBLE */
481 .long .Lretuint8 /* FFI_TYPE_UINT8 */
482 .long .Lretsint8 /* FFI_TYPE_SINT8 */
483 .long .Lretuint16 /* FFI_TYPE_UINT16 */
484 .long .Lretsint16 /* FFI_TYPE_SINT16 */
485 .long .Lretint /* FFI_TYPE_UINT32 */
486 .long .Lretint /* FFI_TYPE_SINT32 */
487 .long .Lretint64 /* FFI_TYPE_UINT64 */
488 .long .Lretint64 /* FFI_TYPE_SINT64 */
489 .long .Lretstruct /* FFI_TYPE_STRUCT */
490 .long .Lretint /* FFI_TYPE_POINTER */
491 .long .Lretstruct1b /* FFI_TYPE_SMALL_STRUCT_1B */
492 .long .Lretstruct2b /* FFI_TYPE_SMALL_STRUCT_2B */
493 .long .Lretstruct4b /* FFI_TYPE_SMALL_STRUCT_4B */
501 /* Sign/zero extend as appropriate. */
519 # Load %ecx with the pointer to storage for the return value
525 # Load %ecx with the pointer to storage for the return value
531 # Load %ecx with the pointer to storage for the return value
537 # Load %ecx with the pointer to storage for the return value
543 # Load %ecx with the pointer to storage for the return value
550 # Load %ecx with the pointer to storage for the return value
556 # Load %ecx with the pointer to storage for the return value
562 # Load %ecx with the pointer to storage for the return value
578 # This assumes we are using gas.
580 .globl _ffi_closure_SYSV
582 .def _ffi_closure_SYSV; .scl 2; .type 32; .endef
592 movl %edx, -12(%ebp) /* resp */
594 movl %edx, 4(%esp) /* args = __builtin_dwarf_cfa () */
596 movl %edx, (%esp) /* &resp */
597 call _ffi_closure_SYSV_inner
602 # Do not insert anything here between the call and the jump table.
604 .long .Lcls_noretval /* FFI_TYPE_VOID */
605 .long .Lcls_retint /* FFI_TYPE_INT */
606 .long .Lcls_retfloat /* FFI_TYPE_FLOAT */
607 .long .Lcls_retdouble /* FFI_TYPE_DOUBLE */
608 .long .Lcls_retldouble /* FFI_TYPE_LONGDOUBLE */
609 .long .Lcls_retuint8 /* FFI_TYPE_UINT8 */
610 .long .Lcls_retsint8 /* FFI_TYPE_SINT8 */
611 .long .Lcls_retuint16 /* FFI_TYPE_UINT16 */
612 .long .Lcls_retsint16 /* FFI_TYPE_SINT16 */
613 .long .Lcls_retint /* FFI_TYPE_UINT32 */
614 .long .Lcls_retint /* FFI_TYPE_SINT32 */
615 .long .Lcls_retllong /* FFI_TYPE_UINT64 */
616 .long .Lcls_retllong /* FFI_TYPE_SINT64 */
617 .long .Lcls_retstruct /* FFI_TYPE_STRUCT */
618 .long .Lcls_retint /* FFI_TYPE_POINTER */
619 .long .Lcls_retstruct1 /* FFI_TYPE_SMALL_STRUCT_1B */
620 .long .Lcls_retstruct2 /* FFI_TYPE_SMALL_STRUCT_2B */
621 .long .Lcls_retstruct4 /* FFI_TYPE_SMALL_STRUCT_4B */
630 /* Sign/zero extend as appropriate. */
681 # Caller expects us to pop struct return value pointer hidden arg.
691 .ffi_closure_SYSV_end:
696 #define RAW_CLOSURE_CIF_OFFSET ((FFI_TRAMPOLINE_SIZE + 3) & ~3)
697 #define RAW_CLOSURE_FUN_OFFSET (RAW_CLOSURE_CIF_OFFSET + 4)
698 #define RAW_CLOSURE_USER_DATA_OFFSET (RAW_CLOSURE_FUN_OFFSET + 4)
699 #define CIF_FLAGS_OFFSET 20
701 # This assumes we are using gas.
703 .globl _ffi_closure_raw_SYSV
705 .def _ffi_closure_raw_SYSV; .scl 2; .type 32; .endef
707 _ffi_closure_raw_SYSV:
716 movl RAW_CLOSURE_CIF_OFFSET(%eax), %esi /* closure->cif */
717 movl RAW_CLOSURE_USER_DATA_OFFSET(%eax), %edx /* closure->user_data */
718 movl %edx, 12(%esp) /* user_data */
719 leal 8(%ebp), %edx /* __builtin_dwarf_cfa () */
720 movl %edx, 8(%esp) /* raw_args */
722 movl %edx, 4(%esp) /* &res */
723 movl %esi, (%esp) /* cif */
724 call *RAW_CLOSURE_FUN_OFFSET(%eax) /* closure->fun */
725 movl CIF_FLAGS_OFFSET(%esi), %eax /* rtype */
728 # Do not insert anything here between the call and the jump table.
730 .long .Lrcls_noretval /* FFI_TYPE_VOID */
731 .long .Lrcls_retint /* FFI_TYPE_INT */
732 .long .Lrcls_retfloat /* FFI_TYPE_FLOAT */
733 .long .Lrcls_retdouble /* FFI_TYPE_DOUBLE */
734 .long .Lrcls_retldouble /* FFI_TYPE_LONGDOUBLE */
735 .long .Lrcls_retuint8 /* FFI_TYPE_UINT8 */
736 .long .Lrcls_retsint8 /* FFI_TYPE_SINT8 */
737 .long .Lrcls_retuint16 /* FFI_TYPE_UINT16 */
738 .long .Lrcls_retsint16 /* FFI_TYPE_SINT16 */
739 .long .Lrcls_retint /* FFI_TYPE_UINT32 */
740 .long .Lrcls_retint /* FFI_TYPE_SINT32 */
741 .long .Lrcls_retllong /* FFI_TYPE_UINT64 */
742 .long .Lrcls_retllong /* FFI_TYPE_SINT64 */
743 .long .Lrcls_retstruct /* FFI_TYPE_STRUCT */
744 .long .Lrcls_retint /* FFI_TYPE_POINTER */
745 .long .Lrcls_retstruct1 /* FFI_TYPE_SMALL_STRUCT_1B */
746 .long .Lrcls_retstruct2 /* FFI_TYPE_SMALL_STRUCT_2B */
747 .long .Lrcls_retstruct4 /* FFI_TYPE_SMALL_STRUCT_4B */
755 /* Sign/zero extend as appropriate. */
757 movsbl -24(%ebp), %eax
761 movswl -24(%ebp), %eax
765 movzbl -24(%ebp), %eax
769 movzwl -24(%ebp), %eax
794 movsbl -24(%ebp), %eax
798 movswl -24(%ebp), %eax
814 .ffi_closure_raw_SYSV_end:
817 #endif /* !FFI_NO_RAW_API */
819 # This assumes we are using gas.
821 .globl _ffi_closure_STDCALL
823 .def _ffi_closure_STDCALL; .scl 2; .type 32; .endef
825 _ffi_closure_STDCALL:
833 movl %edx, -12(%ebp) /* resp */
834 leal 12(%ebp), %edx /* account for stub return address on stack */
835 movl %edx, 4(%esp) /* args */
837 movl %edx, (%esp) /* &resp */
838 call _ffi_closure_SYSV_inner
842 # Do not insert anything here between the call and the jump table.
844 .long .Lscls_noretval /* FFI_TYPE_VOID */
845 .long .Lscls_retint /* FFI_TYPE_INT */
846 .long .Lscls_retfloat /* FFI_TYPE_FLOAT */
847 .long .Lscls_retdouble /* FFI_TYPE_DOUBLE */
848 .long .Lscls_retldouble /* FFI_TYPE_LONGDOUBLE */
849 .long .Lscls_retuint8 /* FFI_TYPE_UINT8 */
850 .long .Lscls_retsint8 /* FFI_TYPE_SINT8 */
851 .long .Lscls_retuint16 /* FFI_TYPE_UINT16 */
852 .long .Lscls_retsint16 /* FFI_TYPE_SINT16 */
853 .long .Lscls_retint /* FFI_TYPE_UINT32 */
854 .long .Lscls_retint /* FFI_TYPE_SINT32 */
855 .long .Lscls_retllong /* FFI_TYPE_UINT64 */
856 .long .Lscls_retllong /* FFI_TYPE_SINT64 */
857 .long .Lscls_retstruct /* FFI_TYPE_STRUCT */
858 .long .Lscls_retint /* FFI_TYPE_POINTER */
859 .long .Lscls_retstruct1 /* FFI_TYPE_SMALL_STRUCT_1B */
860 .long .Lscls_retstruct2 /* FFI_TYPE_SMALL_STRUCT_2B */
861 .long .Lscls_retstruct4 /* FFI_TYPE_SMALL_STRUCT_4B */
869 /* Sign/zero extend as appropriate. */
927 .ffi_closure_STDCALL_end:
931 .section .eh_frame,"w"
935 .long .LECIE1-.LASCIE1 /* Length of Common Information Entry */
937 .long 0x0 /* CIE Identifier Tag */
938 .byte 0x1 /* CIE Version */
940 .ascii "zR\0" /* CIE Augmentation */
942 .ascii "\0" /* CIE Augmentation */
944 .byte 0x1 /* .uleb128 0x1; CIE Code Alignment Factor */
945 .byte 0x7c /* .sleb128 -4; CIE Data Alignment Factor */
946 .byte 0x8 /* CIE RA Column */
948 .byte 0x1 /* .uleb128 0x1; Augmentation size */
949 .byte 0x1b /* FDE Encoding (pcrel sdata4) */
951 .byte 0xc /* DW_CFA_def_cfa CFA = r4 + 4 = 4(%esp) */
952 .byte 0x4 /* .uleb128 0x4 */
953 .byte 0x4 /* .uleb128 0x4 */
954 .byte 0x88 /* DW_CFA_offset, column 0x8 %eip at CFA + 1 * -4 */
955 .byte 0x1 /* .uleb128 0x1 */
960 .long .LEFDE1-.LASFDE1 /* FDE Length */
962 .long .LASFDE1-.Lframe1 /* FDE CIE offset */
963 #if defined __PIC__ && defined HAVE_AS_X86_PCREL
964 .long .LFB1-. /* FDE initial location */
968 .long .LFE1-.LFB1 /* FDE address range */
970 .byte 0x0 /* .uleb128 0x0; Augmentation size */
972 /* DW_CFA_xxx CFI instructions go here. */
974 .byte 0x4 /* DW_CFA_advance_loc4 */
976 .byte 0xe /* DW_CFA_def_cfa_offset CFA = r4 + 8 = 8(%esp) */
977 .byte 0x8 /* .uleb128 0x8 */
978 .byte 0x85 /* DW_CFA_offset, column 0x5 %ebp at CFA + 2 * -4 */
979 .byte 0x2 /* .uleb128 0x2 */
981 .byte 0x4 /* DW_CFA_advance_loc4 */
983 .byte 0xd /* DW_CFA_def_cfa_register CFA = r5 = %ebp */
984 .byte 0x5 /* .uleb128 0x5 */
986 /* End of DW_CFA_xxx CFI instructions. */
992 .long .LEFDE3-.LASFDE3 /* FDE Length */
994 .long .LASFDE3-.Lframe1 /* FDE CIE offset */
995 #if defined __PIC__ && defined HAVE_AS_X86_PCREL
996 .long .LFB3-. /* FDE initial location */
1000 .long .LFE3-.LFB3 /* FDE address range */
1002 .byte 0x0 /* .uleb128 0x0; Augmentation size */
1004 /* DW_CFA_xxx CFI instructions go here. */
1006 .byte 0x4 /* DW_CFA_advance_loc4 */
1008 .byte 0xe /* DW_CFA_def_cfa_offset CFA = r4 + 8 = 8(%esp) */
1009 .byte 0x8 /* .uleb128 0x8 */
1010 .byte 0x85 /* DW_CFA_offset, column 0x5 %ebp at CFA + 2 * -4 */
1011 .byte 0x2 /* .uleb128 0x2 */
1013 .byte 0x4 /* DW_CFA_advance_loc4 */
1015 .byte 0xd /* DW_CFA_def_cfa_register CFA = r5 = %ebp */
1016 .byte 0x5 /* .uleb128 0x5 */
1018 /* End of DW_CFA_xxx CFI instructions. */
1025 .long .LEFDE4-.LASFDE4 /* FDE Length */
1027 .long .LASFDE4-.Lframe1 /* FDE CIE offset */
1028 #if defined __PIC__ && defined HAVE_AS_X86_PCREL
1029 .long .LFB4-. /* FDE initial location */
1033 .long .LFE4-.LFB4 /* FDE address range */
1035 .byte 0x0 /* .uleb128 0x0; Augmentation size */
1037 /* DW_CFA_xxx CFI instructions go here. */
1039 .byte 0x4 /* DW_CFA_advance_loc4 */
1041 .byte 0xe /* DW_CFA_def_cfa_offset CFA = r4 + 8 = 8(%esp) */
1042 .byte 0x8 /* .uleb128 0x8 */
1043 .byte 0x85 /* DW_CFA_offset, column 0x5 %ebp at CFA + 2 * -4 */
1044 .byte 0x2 /* .uleb128 0x2 */
1046 .byte 0x4 /* DW_CFA_advance_loc4 */
1048 .byte 0xd /* DW_CFA_def_cfa_register CFA = r5 = %ebp */
1049 .byte 0x5 /* .uleb128 0x5 */
1051 .byte 0x4 /* DW_CFA_advance_loc4 */
1053 .byte 0x86 /* DW_CFA_offset, column 0x6 %esi at CFA + 3 * -4 */
1054 .byte 0x3 /* .uleb128 0x3 */
1056 /* End of DW_CFA_xxx CFI instructions. */
1060 #endif /* !FFI_NO_RAW_API */
1063 .long .LEFDE5-.LASFDE5 /* FDE Length */
1065 .long .LASFDE5-.Lframe1 /* FDE CIE offset */
1066 #if defined __PIC__ && defined HAVE_AS_X86_PCREL
1067 .long .LFB5-. /* FDE initial location */
1071 .long .LFE5-.LFB5 /* FDE address range */
1073 .byte 0x0 /* .uleb128 0x0; Augmentation size */
1075 /* DW_CFA_xxx CFI instructions go here. */
1077 .byte 0x4 /* DW_CFA_advance_loc4 */
1079 .byte 0xe /* DW_CFA_def_cfa_offset CFA = r4 + 8 = 8(%esp) */
1080 .byte 0x8 /* .uleb128 0x8 */
1081 .byte 0x85 /* DW_CFA_offset, column 0x5 %ebp at CFA + 2 * -4 */
1082 .byte 0x2 /* .uleb128 0x2 */
1084 .byte 0x4 /* DW_CFA_advance_loc4 */
1085 .long .LCFI10-.LCFI9
1086 .byte 0xd /* DW_CFA_def_cfa_register CFA = r5 = %ebp */
1087 .byte 0x5 /* .uleb128 0x5 */
1089 /* End of DW_CFA_xxx CFI instructions. */
1093 #endif /* !_MSC_VER */