delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/25/21:22:33

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
Message-ID: <3B884F43.8040908@ece.gatech.edu>
Date: Sat, 25 Aug 2001 21:22:11 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010713
X-Accept-Language: en-us
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: A serious bug of "ld --enable-auto-import"
References: <001701c12c70$a8e7b000$a3fc183d AT sugnm1 DOT kt DOT home DOT ne DOT jp>

AIDA Shinra wrote:

> I found a bug of ld(included in binutils 20010802-1).
> Following is a simple test program.
> 

Confirmed bug.  I dunno where the bug is coming from, or how to fix
it...yet.

I think the linker is ignoring the '+12' in this asm:

movb $33,_hwstr1+12

ld sees "_hwstr1" in the .o and blindly plunks in the address (via
__imp__hwstr1 and the auto-import magic) *without* adding the 12.  I'll
dig into this -- unless Paul beats me to it. Paul?  Paauulll?

--Chuck




--
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