sorry, missed filling in the subject, in my previous mail.
"Puthali H.B" <email@hidden> 5/16/2006 10:58 am >>>
hi,
Don't know if this is the right list to post this query, but saw some
threads already on overriding system calls, so thought will try my
luck
here. :)
Actually I've a dynamic library which over-rides system calls, namely
connect,recv,send,sendto,accept...
and when I preload this on Tiger, using DYLD_INSERT_LIBRARIES AND
DYLD_FORCE_FLAT_NAMESPACE, everything works fine.
But when I do the same on panther, it crashes.
I wrote a sample c test program, just over-riding connect call and
compiled it as test_connect.dylib on panther, with gcc 3.3.
When I pre-loaded this library in terminal and ran FTP got the
following error-
dyld: FTP multiple definitions of symbol _connect
test_connect.dylib(ccyRQhrn.o) definition of _connect
/usr/lib/libSystem.B.dylib(connect.So) definition of _connect
Trace/BPT trap
But the same dylib works perfectly on tiger.
So I wanted to know, if I've missed out on any steps that needed to be
done in addition on panther? i.e. is over-riding system calls possible
on panther? If so any pointers in that direction will be appreciated
very much.
plus, am interested in knowing what are da major differences between
panther and tiger regarding dynamic handling? can someone give me good
links regarding this? :)
thanking in advance,
Puthali