This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libffi/64645] liibffi fails to build on cygwin-32


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]