Bugtraq mailing list archives

Re: LD_PRELOAD: Clarification


From: JDaniele () KPMG CA (John Daniele)
Date: Tue, 18 May 1999 12:06:47 -0400


Barnett wrote:
cc    -o rollover rollover.c
"rollover.c", line 75: undefined symbol: PTRACE_PEEKUSR
"rollover.c", line 77: undefined symbol: EBX
cc: acomp failed for rollover.c
*** Error code 2
Solaris 2.6
What OS is your program for?

In response to similar emails rev'd, I was sitting in front of a linux box at
the
time of the LD_PRELOAD posting, thus my code reflects this. However, Solaris
2.6 should support PTRACE_PEEKUSR as this was favoured over PTRACE_READDATA
in 2.5 I believe (correct me if I'm wrong). In any case, look at <sys/ptrace.h>
for valid request types. The value of EBX is defined in <asm/ptrace.h> and is 0.
If all else fails, you can always issue ioctl routines on a process within the
/proc filesystem ;)

                                                                                John
Daniele
                                                                                jdaniele () kpmg ca
                                                                                VOX:
(416) 777-3759



Current thread: