Ticket #514: wrapper_darwin.patch

File wrapper_darwin.patch, 1.0 KB (added by stephane.lapie@…, 20 years ago)

loader/wrapper.S patch required for Win32 loader to succesfully build on Macbook

Line 
11c1
2< .section .data
3---
4> .data
55,6c5,6
6< .globl report_entry
7< report_entry:
8---
9> .globl _report_entry
10> _report_entry:
118,9c8,9
12< .globl report_ret
13< report_ret:
14---
15> .globl _report_ret
16> _report_ret:
1711,12c11,12
18< .global wrapper_target
19< wrapper_target:
20---
21> .globl _wrapper_target
22> _wrapper_target:
2315c15
24< .section .text
25---
26> .text
2717,18c17,18
28< .type null_call, @function
29< .balign 16,0x90
30---
31> # .type null_call, @function
32> .p2align 4,0x90
3321,24c21,24
34< .globl wrapper
35< .type wrapper, @function
36< .balign 16,0x90
37< wrapper:
38---
39> .globl _wrapper
40> # .type wrapper, @function
41> .p2align 4,0x90
42> _wrapper:
4342c42
44< call *report_entry # report entry
45---
46> call *_report_entry # report entry
4754c54
48< jmp *wrapper_target # wrapper_target should return at .Lwrapper_return
49---
50> jmp *_wrapper_target # wrapper_target should return at .Lwrapper_return
5156c56
52< .balign 16, 0x90
53---
54> .p2align 4, 0x90
5576c76
56< call *report_ret # report the return information (same args)
57---
58> call *_report_ret # report the return information (same args)