From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24564 invoked by alias); 26 May 2009 17:16:37 -0000 Received: (qmail 24554 invoked by uid 22791); 26 May 2009 17:16:36 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=BAYES_00,J_CHICKENPOX_23,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from yx-out-1718.google.com (HELO yx-out-1718.google.com) (74.125.44.152) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 May 2009 17:16:30 +0000 Received: by yx-out-1718.google.com with SMTP id 4so2255544yxp.48 for ; Tue, 26 May 2009 10:16:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.134.7 with SMTP id l7mr17119419ybn.159.1243358188013; Tue, 26 May 2009 10:16:28 -0700 (PDT) In-Reply-To: <000001c9de1f$650d1b40$2f2751c0$@com> References: <000001c9de1f$650d1b40$2f2751c0$@com> Date: Tue, 26 May 2009 18:20:00 -0000 Message-ID: Subject: Re: GLibc Patch From: Dan Kegel To: Neil Gierman Cc: crossgcc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00083.txt.bz2 [+crossgcc] Hi Neil, I'm off to other things, and haven't had time to do anything with crosstool for some time, so I'm cc'ing your message to the crossgcc mailing list. Thanks, Dan On Tue, May 26, 2009 at 9:31 AM, Neil Gierman wrote: > I am using crosstool-0.43 to build a linux-elf cross compiler on cygwin (= so > my windows system can build linux elf binaries). I have run into an issue > that I have patched and wanted to let you know so you can include if > necessary. I am getting the glibc failure about junk at end of file when > processing setjmp.S. From messages like > http://www.cygwin.com/ml/crossgcc/2004-10/msg00170.html, I have patched my > glibc-2.3.6/sysdeps/unix/sysv/linux/i386/sysdep.h to undef __i686 if it is > defined. The same patch works for both glibc 2.3.6 and 2.3.5. It would be > nice if you could include this in the next crosstool build. > > > > > > --- C:\Users\giermang\Desktop\sysdep.h.old 2009-05-26 11:27:47.000000000 > -0500 > +++ C:\Users\giermang\Desktop\sysdep.h.new 2009-05-26 11:27:32.000000000 > -0500 > @@ -26,12 +26,17 @@ > #include > #include > /* Defines RTLD_PRIVATE_ERRNO and USE_DL_SYSINFO.=A0 */ > #include > #include > > +/* gcc-3.4 seems to expand __i686 as a predefined preprocessor symbol, > which we don't want here */ > +#ifdef __i686 > +#undef __i686 > +#endif > + > /* For Linux we can use the system call table in the header file > =A0 =A0 =A0 =A0=A0 /usr/include/asm/unistd.h > =A0 =A0 of the kernel.=A0 But these symbols do not follow the SYS_* syntax > =A0 =A0 so we have to redefine the `SYS_ify' macro here.=A0 */ > #undef SYS_ify > #define SYS_ify(syscall_name)=A0=A0 __NR_##syscall_name -- For unsubscribe information see http://sourceware.org/lists.html#faq