From mboxrd@z Thu Jan 1 00:00:00 1970 From: DJ Delorie To: cwilson@ece.gatech.edu Cc: binutils@sources.redhat.com, cygwin@cygwin.com Subject: Re: [aida_s@mx12.freecom.ne.jp: A serious bug of "ld --enable-auto-import"] Date: Sat, 25 Aug 2001 22:30:00 -0000 Message-id: <200108260530.BAA28221@envy.delorie.com> References: <3B8884F6.80708@ece.gatech.edu> X-SW-Source: 2001-08/msg00597.html > pe_find_data_imports:_hwstr1 > ->__head_cyghwstr_dll > arelent: _hwstr1@0xd: add=0 <<<< this should be "add=12", right? Not always. Sometimes the addend is in the relent, and sometimes the addend is in the data stream. It depends on the target format. > Unfortunately, that's as far as I can go. I don't know where the > arelent structure gets filled with the approprate data from the .o, so I > can't track down WHY the "12" isn't going into (arelent)->addend. Gas puts it there. Probably in src/gas/config/tc-i386.c's tc_gen_reloc, but other places convert it from a bfd reloc to an i386-specific reloc.