All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Kotler <fbkotler@comcast.net>
To: shm@nation.pl
Cc: linux-assembly@vger.kernel.org
Subject: Re: Problem with nasm
Date: Sat, 26 Mar 2005 17:15:08 -0500	[thread overview]
Message-ID: <4245DEEC.4DB6AD93@comcast.net> (raw)
In-Reply-To: 4245D101.2050206@nation.pl

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

  reply	other threads:[~2005-03-26 22:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-24 23:08 Unable to access memory address J.
2005-03-25  9:46 ` Frank Kotler
2005-03-26 11:18   ` J.
2005-03-26 21:15     ` Problem with nasm Mateusz Kocielski
2005-03-26 22:15       ` Frank Kotler [this message]
2005-03-26 23:50       ` Brian Raiter
2005-03-26 23:58         ` Mateusz Kocielski
2005-04-11  3:39 ` Bug in Gas? Randall Hyde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4245DEEC.4DB6AD93@comcast.net \
    --to=fbkotler@comcast.net \
    --cc=linux-assembly@vger.kernel.org \
    --cc=shm@nation.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.