delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/26/01:31:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Sun, 26 Aug 2001 01:30:51 -0400
Message-Id: <200108260530.BAA28221@envy.delorie.com>
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: cwilson AT ece DOT gatech DOT edu
CC: binutils AT sources DOT redhat DOT com, cygwin AT cygwin DOT com
In-reply-to: <3B8884F6.80708@ece.gatech.edu> (cwilson@ece.gatech.edu)
Subject: Re: [aida_s AT mx12 DOT freecom DOT ne DOT jp: A serious bug of "ld --enable-auto-import"]
References: <3B8884F6 DOT 80708 AT ece DOT gatech DOT edu>

> pe_find_data_imports:_hwstr1
> ->__head_cyghwstr_dll
> arelent: _hwstr1 AT 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.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019