Re: Executable entry point
Re: Executable entry point
- Subject: Re: Executable entry point
- From: Filipe Cabecinhas <email@hidden>
- Date: Sun, 18 Mar 2007 12:47:30 +0000
On 18 Mar, 2007, at 12:20, Geoffrey Lee wrote:
No, you missed something:
sysenter_trap looks like this:
__sysenter_trap:
90110ac0 popl íx
90110ac1 movl %esp,ìx
90110ac3 sysenter
So, ìx contains the saved stack pointer and íx contains the return
address.
Yes, I missed that. I think I removed it when I removed the stuff for
PIC. I don't know why...
By the way, I am not quite sure if doing things directly is such a
good
idea ... can you not go through libc?
- gl
Yes, doing things directly is a Bad Thing (TM). But the thing is...
Our compiler class has to use the library they give us, and it is
made for linux (with the int 0x80 stuff). So, in Mac OS X, I can't
link to libc so I have the setup as similar as I can.
Thanks for the help
Filipe Cabecinhas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden