This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: speclib vs. -lc trouble.
Dave Korn wrote:
> Dave Korn wrote:
>
>> a - profil.o
>> /gnu/winsup/src/winsup/cygwin/speclib "nm" "ar" libcygwin.a pthread.o thread.o
>> libpthread.a
>> libpthread.a: No such file or directory at
>> /gnu/winsup/src/winsup/cygwin/speclib line 18
>> make[3]: *** [libpthread.a] Error 2
>> make[3]: Leaving directory `/gnu/winsup/obj3/i686-pc-cygwin/winsup/cygwin'
>
>
> Currently attempting to bodge my way round it w/the attached hacky kludge.
> Will let you know how the libs turn out, if at all...
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'
Sure enough, the text section is only 0x30, but there's no sign of any reloc
at that address.
$ objdump -hr cygwin_crt0.o
cygwin_crt0.o: file format pe-i386
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000030 00000000 00000000 000001a4 2**4
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
1 .data 00000000 00000000 00000000 00000000 2**2
ALLOC, LOAD, DATA
2 .bss 00000000 00000000 00000000 00000000 2**2
ALLOC
3 .debug_abbrev 00000072 00000000 00000000 000001d4 2**0
CONTENTS, READONLY, DEBUGGING
4 .debug_info 00000192 00000000 00000000 00000246 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
5 .debug_line 0000006c 00000000 00000000 000003d8 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
6 .debug_frame 0000002c 00000000 00000000 00000444 2**2
CONTENTS, RELOC, READONLY, DEBUGGING
7 .debug_loc 0000002c 00000000 00000000 00000470 2**0
CONTENTS, READONLY, DEBUGGING
8 .debug_pubnames 00000022 00000000 00000000 0000049c 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
9 .debug_aranges 00000020 00000000 00000000 000004be 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
RELOCATION RECORDS FOR [.text]:
OFFSET TYPE VALUE
00000015 DISP32 __cygwin_crt0_common@8
0000001e dir32 __imp___dll_crt0@0
RELOCATION RECORDS FOR [.debug_info]:
OFFSET TYPE VALUE
00000006 secrel32 .debug_abbrev
0000005b dir32 .text
0000005f dir32 .text
00000063 secrel32 .debug_line
00000178 dir32 .text
0000017c dir32 .text
00000180 secrel32 .debug_loc
RELOCATION RECORDS FOR [.debug_line]:
OFFSET TYPE VALUE
0000005d dir32 .text
RELOCATION RECORDS FOR [.debug_frame]:
OFFSET TYPE VALUE
00000018 secrel32 .debug_frame
0000001c dir32 .text
RELOCATION RECORDS FOR [.debug_pubnames]:
OFFSET TYPE VALUE
00000006 secrel32 .debug_info
RELOCATION RECORDS FOR [.debug_aranges]:
OFFSET TYPE VALUE
00000006 secrel32 .debug_info
00000010 dir32 .text
So the message could be misleading, I'll have to debug it to see what's
going on. Also going AFK for a few hours sleep now. Back later.
cheers,
DaveK