From: SourceForge.net <no...@so...> - 2004-07-27 21:27:22
|
Bugs item #999013, was opened at 2004-07-27 21:27 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=999013&group_id=2435 Category: binutils Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ermo (egarrulo) Assigned to: Danny Smith (dannysmith) Summary: GAS assemble direct constant as memory reference Initial Comment: In the following code snippet, GAS assemble what should be a direct constant as it were a memory reference. GAS version 2.15.90 Platform Windows XP. Comments show the interesting line. _________________________________________________ .intel_syntax noprefix .data Format: .asciz "FormatLen = %d - %d\n" FormatLen= . - Format # FormatLen=0x15 .text .global _main _main: push ebp mov ebp, esp # Following instruction assembles as # it were written: # push dword ptr [0x15] push FormatLen # whereas it should be just like: push 0x15 push offset Format call _printf add esp, 12 xor eax, eax mov esp, ebp pop ebp ret .end ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=999013&group_id=2435 |