• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
hi,
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hi,


  • Subject: hi,
  • From: "Puthali H.B" <email@hidden>
  • Date: Mon, 15 May 2006 23:28:49 -0600

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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • intercepting system calls works on tiger(10.4.5) but not on panther(10.3.9)
      • From: "Puthali H.B" <email@hidden>
  • Prev by Date: Re: StartupItems
  • Next by Date: Re: StartupItems
  • Previous by thread: Re: Need help building AVR toolchain
  • Next by thread: intercepting system calls works on tiger(10.4.5) but not on panther(10.3.9)
  • Index(es):
    • Date
    • Thread