This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A serious bug of "ld --enable-auto-import"


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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]