This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libffi/64645] liibffi fails to build on cygwin-32
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Jan 2015 22:49:00 +0000
- Subject: [Bug libffi/64645] liibffi fails to build on cygwin-32
- Auto-submitted: auto-generated
- References: <bug-64645-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64645
--- Comment #5 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
(In reply to Richard Henderson from comment #4)
> (In reply to Bernd Edlinger from comment #3)
> > AFAIK Cygwin-32 does not support the unwind info at all, right?.
>
> Wrong. This should be enough to fix it.
>
> diff --git a/src/x86/sysv.S b/src/x86/sysv.S
> index 58432d9..78f245b 100644
> --- a/src/x86/sysv.S
> +++ b/src/x86/sysv.S
> @@ -822,6 +822,8 @@ ENDF(C(__x86.get_pc_thunk.dx))
> #ifdef __APPLE__
> .section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support
> EHFrame0:
> +#elif defined(X86_WIN32)
> +.section .eh_frame,"r"
> #elif defined(HAVE_AS_X86_64_UNWIND_SECTION_TYPE)
> .section .eh_frame,EH_FRAME_FLAGS,@unwind
> #else
OK. Patch works.
One question: would --enable-sjlj-exceptions make any difference here?