A serious bug of "ld --enable-auto-import"
Christopher Faylor
cgf@redhat.com
Sat Aug 25 18:32:00 GMT 2001
On Sat, Aug 25, 2001 at 09:22:11PM -0400, Charles Wilson wrote:
>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?
I forwarded this bug to binutils.
Dunno if Paul will see it there or not but I thought it was more likely
the binutils developers might be able to track this down.
As soon as there is a patch forthcoming, I'll make a new release of binutils.
This seems like a pretty serious bug.
cgf
--
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/
More information about the Cygwin
mailing list