From: "H. J. Lu" <hjl@lucon.org>
To: Kai Tietz <Kai.Tietz@onevision.com>
Cc: binutils@sources.redhat.com
Subject: Re: PATCH: w64 native support
Date: Tue, 10 Apr 2007 19:35:00 -0000 [thread overview]
Message-ID: <20070410193508.GA22821@lucon.org> (raw)
In-Reply-To: <OFE1A095C9.05DA64D2-ONC12572B9.0061C6EA-C12572B9.00621622@onevision.de>
On Tue, Apr 10, 2007 at 07:51:21PM +0200, Kai Tietz wrote:
> "H. J. Lu" <hjl@lucon.org> wrote on 10.04.2007 19:18:28:
>
> > On Tue, Apr 10, 2007 at 07:00:14PM +0200, Kai Tietz wrote:
> > > "H. J. Lu" <hjl@lucon.org> wrote on 10.04.2007 18:12:45:
> > >
> > > > Have you looked at
> > > >
> > > > http://sources.redhat.com/bugzilla/show_bug.cgi?id=2737
> > > >
> > > > Does windres work for x64?
> > >
> > >
> > > I replaced in all structures of windres.h the type "unsigned long" by
> > > "unsigned int" for test and patched the dependent files to use not
> long
> > > type-specifier in printf methods. It works that way, but I am not
> certain,
> > > if this would break an other target, where "int" isn't 4 bytes long ?
> > ^^^^^
> > It should be host, not target.
> >
> > It is better than what we have today. You can add
> >
> > assert (sizeof (int) == 4);
> >
> > somewhere.
>
> Ok, I on that.
>
> But I noticed, while bootstrap my patch on it on cygwin, that the
> replacement of long to bfd_vma does not work as explected for 32-bit hosts
> and using --enable-64-bit-bfd. Gcc claims, that pointer size and integer
> size are not fitting.
> I think, we have to introduce a type bfd_hostptr_t or something like that
> to solve this problem ?
>
I don't think it is needed. --enable-64-bit-bfd works fine for
Linux/x86. If --enable-64-bit-bfd doesn't work for cygwin, it
should be fixed.
H.J.
next prev parent reply other threads:[~2007-04-10 19:35 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-10 16:06 Kai Tietz
2007-04-10 16:13 ` H. J. Lu
2007-04-10 16:23 ` Kai Tietz
2007-04-10 17:01 ` Kai Tietz
2007-04-10 17:18 ` H. J. Lu
2007-04-10 17:52 ` Kai Tietz
2007-04-10 19:35 ` H. J. Lu [this message]
2007-04-11 3:40 ` H. J. Lu
2007-04-10 20:55 ` Paul Koning
2007-04-11 13:43 Kai Tietz
2007-04-11 13:58 ` H. J. Lu
2007-04-11 14:07 ` H. J. Lu
2007-04-18 11:59 ` Kai Tietz
2007-06-29 5:37 ` NightStrike
2007-07-12 7:30 ` Nick Clifton
2007-07-24 8:00 ` NightStrike
2007-04-11 14:57 ` Kai Tietz
2007-04-11 15:17 ` Daniel Jacobowitz
2007-04-11 15:24 ` Kai Tietz
2007-04-11 15:43 ` Daniel Jacobowitz
2007-04-11 15:49 ` Kai Tietz
2007-04-11 17:34 ` Daniel Jacobowitz
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=20070410193508.GA22821@lucon.org \
--to=hjl@lucon.org \
--cc=Kai.Tietz@onevision.com \
--cc=binutils@sources.redhat.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).