Mateusz Kocielski wrote:
> 
> Hello.

Hi Mateusz,

> global _start:

Strictly speaking, this shouldn't have the colon on the end
of it, but that seems to make no difference...

... [Nasm code]
> 080480a0 <_start>:

... [Gas code]
> 08048094 <_start>:

> Any ideas why the same code doesn't work under asm?

Something to do with that start address, I'm guessing. When
I try to duplicate your experiment, I get the same results,
but with a start address of 08048080, which is the
"expected" thing, I think(?). I'm inclined to suspect a
problem with ld, not with Nasm (...but I always think that).
You might try "global _start" without the colon, and maybe
specify "section .text", just to see if it makes any
difference - maybe try specifying "--entry _start" to ld...
That start address is the only thing that looks "funny" to
me...

Best,
Frank
-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to