Find the answer to your Linux question:
Results 1 to 2 of 2
Hi Here's a problem I met during the implementation of injectso in Linux. I "ptrace attach"ed the target process, then find the symbol "_dl_open" address in the target process. but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    2

    Unhappy question: can I call _dl_open directly?


    Hi
    Here's a problem I met during the implementation of injectso in Linux.

    I "ptrace attach"ed the target process, then find the symbol "_dl_open" address in the target process. but failed when I tried to make a call of "_dl_open" in target process.

    at last, as a test, I made another C file, which only called _dl_open(...) directly.
    then compiled it and ran it. but the result is "segmentation fault".

    why can't I call _dl_open in my simple program? is there any limitation to call one internal_function?

    thanks
    -f

  2. #2
    Linux User
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    401
    You should use dlopen (and not _dl_open)...

    ...however it depends on what you want to do... dlopen query shared object symbol to get one instance to iteract dinamically with it.
    When using Windows, have you ever told "Ehi... do your business?"
    Linux user #396597 (http://counter.li.org)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •