diff options
author | Iain Sandoe <iain@codesourcery.com> | 2014-11-25 11:43:40 +0100 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2015-01-05 10:01:38 -0800 |
commit | ae842a515b6e2a486d73ce8f9dbe5fee6c3fd1ff (patch) | |
tree | d7ab13c6facedb237fef33451f85995735e37560 /src/x86 | |
parent | 8fa3c9f24b5ef6da2f24a9f071984d033dd9e00c (diff) | |
download | libffi-ae842a515b6e2a486d73ce8f9dbe5fee6c3fd1ff.tar.gz |
x86: More Darwin unwind fixups
EHFrame{N} IIRC is a special cue to ld64 that it should treat the unwind
in the object as "special/legacy" .. [these days everything is .cfi_xxxx
(except, cctools-as, as you noted)] .. without that much confusion arises
with ld64's atom-isation of the eh_frame section.
xxxx.eh labels are not needed for darwin ld64 >= 85.2.1 (i.e. darwin9,
xcode 3.1.4) to all intents and purposes, that's all that matters now,
since I think that anyone trying to build on 10.4/darwin8/xcode2.5 would
have to use a later ld64 (from odcctools) for other reasons.
Diffstat (limited to 'src/x86')
-rw-r--r-- | src/x86/unix64.S | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/x86/unix64.S b/src/x86/unix64.S index fc18eb2..f9f9163 100644 --- a/src/x86/unix64.S +++ b/src/x86/unix64.S @@ -431,17 +431,13 @@ ENDF(C(ffi_go_closure_unix64)) #ifdef __APPLE__ .section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support +EHFrame0: #elif defined(HAVE_AS_X86_64_UNWIND_SECTION_TYPE) .section .eh_frame,"a",@unwind #else .section .eh_frame,"a",@progbits #endif -#ifdef __APPLE__ -# define FDE_NAME(X) .globl X; X: -#else -# define FDE_NAME(X) -#endif #ifdef HAVE_AS_X86_PCREL # define PCREL(X) X - . #else @@ -469,7 +465,6 @@ L(SCIE): .balign 8 L(ECIE): -FDE_NAME(_ffi_call_unix64.eh) .set L(set1),L(EFDE1)-L(SFDE1) .long L(set1) /* FDE Length */ L(SFDE1): @@ -489,7 +484,6 @@ L(SFDE1): .balign 8 L(EFDE1): -FDE_NAME(_ffi_closure_unix64_sse.eh) .set L(set2),L(EFDE2)-L(SFDE2) .long L(set2) /* FDE Length */ L(SFDE2): @@ -503,7 +497,6 @@ L(SFDE2): .balign 8 L(EFDE2): -FDE_NAME(_ffi_closure_unix64.eh) .set L(set3),L(EFDE3)-L(SFDE3) .long L(set3) /* FDE Length */ L(SFDE3): @@ -518,7 +511,6 @@ L(SFDE3): .byte 0xe, 8 /* DW_CFA_def_cfa_offset 8 */ L(EFDE3): -FDE_NAME(_ffi_go_closure_unix64_sse.eh) .set L(set4),L(EFDE4)-L(SFDE4) .long L(set4) /* FDE Length */ L(SFDE4): @@ -532,7 +524,6 @@ L(SFDE4): .balign 8 L(EFDE4): -FDE_NAME(_ffi_go_closure_unix64.eh) .set L(set5),L(EFDE5)-L(SFDE5) .long L(set5) /* FDE Length */ L(SFDE5): |