Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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> 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/