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: "rth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Jan 2015 19:50:51 +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 #4 from Richard Henderson <rth at gcc dot gnu.org> ---
(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