From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29930 invoked by alias); 11 Jun 2009 23:33:41 -0000 Received: (qmail 29922 invoked by uid 22791); 11 Jun 2009 23:33:40 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_23,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f196.google.com (HELO mail-pz0-f196.google.com) (209.85.222.196) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Jun 2009 23:33:35 +0000 Received: by pzk34 with SMTP id 34so39728pzk.12 for ; Thu, 11 Jun 2009 16:33:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.165.19 with SMTP id s19mr1113724wfo.117.1244763213382; Thu, 11 Jun 2009 16:33:33 -0700 (PDT) In-Reply-To: References: <000001c9de1f$650d1b40$2f2751c0$@com> Date: Thu, 11 Jun 2009 23:33:00 -0000 Message-ID: <19c1b8a90906111633o17e3bc53oedf2e159756abc6a@mail.gmail.com> Subject: Re: GLibc Patch From: Khem Raj To: Dan Kegel Cc: Neil Gierman , crossgcc Content-Type: text/plain; charset=UTF-8 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-06/txt/msg00023.txt.bz2 On Tue, May 26, 2009 at 10:16 AM, Dan Kegel wrote: > [+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 wro= te: >> 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.=C2=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 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 /usr/include/asm/unistd.h >> =C2=A0 =C2=A0 of the kernel.=C2=A0 But these symbols do not follow the S= YS_* syntax >> =C2=A0 =C2=A0 so we have to redefine the `SYS_ify' macro here.=C2=A0 */ >> #undef SYS_ify >> #define SYS_ify(syscall_name)=C2=A0=C2=A0 __NR_##syscall_name > > -- > For unsubscribe information see http://sourceware.org/lists.html#faq > > Does this patch help http://www.eglibc.org/archives/patches/msg00073.html -- For unsubscribe information see http://sourceware.org/lists.html#faq