Re: [Clax86list] Disassembler questions
- From: Charles Crayne <spamtrap@xxxxxxxxxx>
- Date: Sat, 26 Jul 2008 13:58:30 -0700
On Sat, 26 Jul 2008 12:58:07 -0700
"Benjamin David Lunt" <spamtrap@xxxxxxxxxx> wrote:
The code looks like Linux, but the int 21h looks like DOS.
I haven't done any Linux programming, so I may be wrong here,
but shouldn't the int 21h be int 80h?
Indeed it should.
Most likely, nasm is adding padding to the end of the section. I
don't know much about nasm, but this would be my guess
NASM itself adds an ELF header before the user code, and a lot of
system information following it, but it does not pad out the section(s).
However, if one is disassembling the executable module, then one must
also consider what the linker has done.
--
Chuck
http://www.pacificsites.com/~ccrayne/charles.html
.
- Follow-Ups:
- Re: [Clax86list] Disassembler questions
- From: Benjamin David Lunt
- Re: [Clax86list] Disassembler questions
- References:
- Disassembler questions
- From: thiesd
- Re: Disassembler questions
- From: Benjamin David Lunt
- Disassembler questions
- Prev by Date: Re: Disassembler questions
- Next by Date: Re: [Clax86list] Disassembler questions
- Previous by thread: Re: [Clax86list] Disassembler questions
- Next by thread: Re: [Clax86list] Disassembler questions
- Index(es):
Relevant Pages
|