This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gold work on mingw/mingw64 support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]