[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Hiding LKM's -- Beta-test



On Tue, Jan 18, 2000 at 11:09:48PM -0800, Arun Sharma wrote:
> movl -4(%ebp),%ebx
> call *%ebx 
> 
> The last instruction is the code for s1.func(). Your code relies on this
> particular sequence of instructions generated by gcc for indirect calls.
> 
> If due to register pressure in a large routine with a lot of variables,
> the compiler chooses a different register to do the indirect call, the
> code won't work.
> 

Thanks a lot for the explanation. I guess this means I will have to put in
more assembly code. Reminds me of the good ol' DOS days (and DOS still
happens to be my favourite OS).

> It's
> after all a hack and portable hacks are probably too much to ask for :)

I still hold onto a teeny bit of hope though.  :P

--vml
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.