This is the mail archive of the cygwin-developers mailing list for the Cygwin 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: speclib vs. -lc trouble.


On Sat, Apr 11, 2009 at 11:19:24PM +0100, Dave Korn wrote:
>Dave Korn wrote:
>> Christopher Faylor wrote:
>> 
>>>>Still not working for me.  Get this when I try to link with the libc.a
>>>>generated by that method:
>>>>
>>>>/gnu/binutils/obj5/ld/.libs/ld-new:
>>>>/usr/lib/libcygwin.a(cygwin_crt0.o): bad reloc address 0x74 in section
>>>>`.text'
>>>Do you have a test case that you could post?  I don't get this with
>>>either a new or old linker.
>>
>>At the moment the only way I can reproduce it is in the ld testsuite,
>>in the bootstrap tests.  If I can distill a testcase out of it I'll
>>post it here.

I could reproduce the problem and am in the process of testing a fix.

>Starting to look like a real BFD problem.

Yes, it was definitely some sort of binutils problem.  When I started
playing around I was getting error messages relating to the wrong
library.  I'd make a change to libc.a and get an error relating to
libcygwin.a.  That was enough of a clue to realize that these special
libraries need to look a lot less like import libraries.

I'll check something in shortly.

cgf


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