Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2013-07-29T13:59:29Z by NMJU_george_xu
NMJU_george_xu
NMJU_george_xu
2 Posts
ACCEPTED ANSWER

Pinned topic LD_PRELOAD verfication and shared object load sequence

‏2013-07-05T14:14:32Z |

we have a customer situation, that when we ask them to setup this LD_PRELOAD and somehow, the program still fails in the shared object we wanted to avoid using the setting.

The question is, is there away to inspect the load sequence of an executable?

Thanks
George

  • flodstrom
    flodstrom
    57 Posts
    ACCEPTED ANSWER

    Re: LD_PRELOAD verfication and shared object load sequence

    ‏2013-07-28T01:12:40Z  in response to NMJU_george_xu

    LD_PRELOAD doesn't exist in AIX, what you probably want is LDR_PRELOAD or LDR_PRELOAD64.

    No entirely sure what you mean by load sequence? Do you mean in what order shared objects are loaded in?

    Look at "dump -H" to see in what loader domains the executable searches in. You may also want to look at "ldd" to see what the binary loads during execution, not sure if it's in the order from the output though.

     

    • NMJU_george_xu
      NMJU_george_xu
      2 Posts
      ACCEPTED ANSWER

      Re: LD_PRELOAD verfication and shared object load sequence

      ‏2013-07-29T13:59:29Z  in response to flodstrom

      I meant  the order of a shared obj is loaded or the real issue is we have call to an API which happens provided by two shared library.  We need to know exact which API is called in the core dump file... We can't check ldd because this is an after fact scenario.