This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gold work on mingw/mingw64 support
- From: Vladimir Simonov <sv at sw dot ru>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: binutils at sourceware dot org, nightstrike at gmail dot com
- Date: Tue, 19 Apr 2011 20:51:14 +0400
- Subject: Re: gold work on mingw/mingw64 support
- References: <4D1CC5CB.5030700@sw.ru> <mcrd3oj12so.fsf@google.com> <4D234F4B.2010600@sw.ru> <mcr7hekr2q8.fsf@google.com> <4D24613E.1050807@sw.ru> <mcripuj5opn.fsf@google.com> <4DA56C18.5010001@sw.ru> <4DAC588F.2030308@sw.ru>
On 04/18/2011 07:28 PM, Vladimir Simonov wrote:
On 04/13/2011 01:25 PM, Vladimir Simonov wrote:
On 04/12/2011 10:06 PM, Ian Lance Taylor wrote:
I decided to go a different route. It seems that mmap could in general
fail for a file which can nevertheless be read. So I decided to go
ahead and change gold to handle the case of mmap failing. This then
turns the mingw32 code into a matter of supporting systems which don't
provide mmap by providing a stub mmap which always fails.
I committed the appended patch. Let me know if you find problems with
it. This patch also cleans up mremap a bit even on systems which
provide mmap.
Ian
Thank you. I'll check the patch in couple days and report.
Sorry for delay.
I've downloaded binutils-2.21.51
[binutils]$ grep 201104 binutils-2.21.51/ -r
binutils-2.21.51/bfd/version.h:#define BFD_VERSION_DATE 20110416
It contains your changes related to bool map_is_allocated_;
It is still having the problems I've mentioned earlier(in my patches):
build/binutils-2.21.51/gold/descriptors.cc:136: error: 'F_SETFD' was not
declared in this scope
build/binutils-2.21.51/gold/descriptors.cc:136: error: 'fcntl' was not
declared in this scope
build/binutils-2.21.51/gold/output.cc:4552: error: 'S_ISLNK' was not
declared in this scope
Chunks fixing the issues are attached.
I'll let you know about new gold work in a day or so.
Hi all,
I confirm that binutils-2.21.51-201104 with patch fixing "fcntl"
and "S_ISLNK" works fine for me on mingw64.
Ian, what do you think about the rest of issues?
Do you think they should be fixed on mingw side?
Best regards
Vladimir Simonov