Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3B884F43.8040908@ece.gatech.edu>
Date: Sat, 25 Aug 2001 21:22:11 -0400
From: Charles Wilson <cwilson@ece.gatech.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@cygwin.com
Subject: Re: A serious bug of  "ld --enable-auto-import"
References: <001701c12c70$a8e7b000$a3fc183d@sugnm1.kt.home.ne.jp>
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit

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/

