Ticket #514: stubs_darwin.2.patch

File stubs_darwin.2.patch, 669 bytes (added by stephane.lapie@…, 13 years ago)

loader/stubs.s unified diff, allows build on Macbook

  • stubs.s

    old new  
    11        .data
    2 .LC0:   .string "Called unk_%s\n"
    3        .balign 4
     2.LC0:   .asciz  "Called unk_%s\n"
     3       .p2align 2
    44.globl unk_exp1
    55unk_exp1:
    66        pushl %ebp
     
    1414        subl %eax,%edx
    1515        leal 0(,%edx,2),%eax
    1616        movl %eax,%edx
    17         addl $export_names,%edx
     17        addl $_export_names,%edx
    1818        pushl %edx
    1919        pushl $.LC0
    20         call printf
     20        call _printf
    2121        addl $8,%esp
    2222        xorl %eax,%eax
    2323        leave
    2424        ret
    25 .globl exp_EH_prolog
    26 exp_EH_prolog:
     25.globl _exp_EH_prolog
     26_exp_EH_prolog:
    2727        pushl $0xff
    2828        pushl %eax
    2929        pushl %fs:0