public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Dan Kegel <dank@kegel.com>
To: Neil Gierman <ngierman@roadrunn.com>
Cc: crossgcc <crossgcc@sourceware.org>
Subject: Re: GLibc Patch
Date: Tue, 26 May 2009 18:20:00 -0000	[thread overview]
Message-ID: <a71bd89a0905261016v59a977fbg6df693f28392dfeb@mail.gmail.com> (raw)
In-Reply-To: <000001c9de1f$650d1b40$2f2751c0$@com>

[+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 <ngierman@roadrunn.com> 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 <bp-sym.h>
> #include <bp-asm.h>
> /* Defines RTLD_PRIVATE_ERRNO and USE_DL_SYSINFO.  */
> #include <dl-sysdep.h>
> #include <tls.h>
>
> +/* 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
>          /usr/include/asm/unistd.h
>     of the kernel.  But these symbols do not follow the SYS_* syntax
>     so we have to redefine the `SYS_ify' macro here.  */
> #undef SYS_ify
> #define SYS_ify(syscall_name)   __NR_##syscall_name

--
For unsubscribe information see http://sourceware.org/lists.html#faq

       reply	other threads:[~2009-05-26 17:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <000001c9de1f$650d1b40$2f2751c0$@com>
2009-05-26 18:20 ` Dan Kegel [this message]
2009-06-11 23:33   ` Khem Raj
2009-06-12 21:53     ` Neil Gierman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a71bd89a0905261016v59a977fbg6df693f28392dfeb@mail.gmail.com \
    --to=dank@kegel.com \
    --cc=crossgcc@sourceware.org \
    --cc=ngierman@roadrunn.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).