Ticket #21401: libffi.patch

File libffi.patch, 1.7 KB (added by sakamoto@…, 13 years ago)

patch for libffi

  • Portfile

     
    3737    ppc64   powerpc-apple-darwin
    3838}
    3939set merger_dont_diff ${prefix}/include/ffitarget.h
     40patchfiles-append patch-powerpc
    4041
    4142livecheck.url       ${homepage}
    4243livecheck.type      regex
  • new file files/patch-powerpc

    - +  
     1diff --git src/powerpc/darwin.S src/powerpc/darwin.S
     2--- src/powerpc/darwin.S
     3+++ src/powerpc/darwin.S
     4@@ -191,17 +191,17 @@ EH_frame1:
     5 LSCIE1:
     6        .long   0x0     ; CIE Identifier Tag
     7        .byte   0x1     ; CIE Version
     8        .ascii  "zR\0"  ; CIE Augmentation
     9        .byte   0x1     ; uleb128 0x1; CIE Code Alignment Factor
     10        .byte   0x7c    ; sleb128 -4; CIE Data Alignment Factor
     11        .byte   0x41    ; CIE RA Column
     12        .byte   0x1     ; uleb128 0x1; Augmentation size
     13-       .byte   0x90    ; FDE Encoding (indirect pcrel)
     14+       .byte   0x10    ; FDE Encoding (pcrel)
     15        .byte   0xc     ; DW_CFA_def_cfa
     16        .byte   0x1     ; uleb128 0x1
     17        .byte   0x0     ; uleb128 0x0
     18        .align  LOG2_GPR_BYTES
     19 LECIE1:
     20 .globl _ffi_call_DARWIN.eh
     21 _ffi_call_DARWIN.eh:
     22 LSFDE1:
     23diff --git src/powerpc/darwin_closure.S src/powerpc/darwin_closure.S
     24--- src/powerpc/darwin_closure.S
     25+++ src/powerpc/darwin_closure.S
     26@@ -253,17 +253,17 @@ EH_frame1:
     27 LSCIE1:
     28        .long   0x0     ; CIE Identifier Tag
     29        .byte   0x1     ; CIE Version
     30        .ascii  "zR\0"  ; CIE Augmentation
     31        .byte   0x1     ; uleb128 0x1; CIE Code Alignment Factor
     32        .byte   0x7c    ; sleb128 -4; CIE Data Alignment Factor
     33        .byte   0x41    ; CIE RA Column
     34        .byte   0x1     ; uleb128 0x1; Augmentation size
     35-       .byte   0x90    ; FDE Encoding (indirect pcrel)
     36+       .byte   0x10    ; FDE Encoding (pcrel)
     37        .byte   0xc     ; DW_CFA_def_cfa
     38        .byte   0x1     ; uleb128 0x1
     39        .byte   0x0     ; uleb128 0x0
     40        .align  LOG2_GPR_BYTES
     41 LECIE1:
     42 .globl _ffi_closure_ASM.eh
     43 _ffi_closure_ASM.eh:
     44 LSFDE1: