#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    6
    Rep Power
    0

    _dl_runtime_resolve,_dl_lookup_symbol_x ,dl_new_hash functionality help needed


    hi
    i am stuck with a particular problem. when a strcpy or some string functions are called by a application it executes the following functions

    0x000000555556c7d0 in _dl_runtime_resolve () from /lib64/ld.so.1
    0x0000005555562168 in _dl_lookup_symbol_x () from /lib64/ld.so.1
    0x0000005555561950 in dl_new_hash () from /lib64/ld.so.1
    0x00000055555621d4 in _dl_lookup_symbol_x () from /lib64/ld.so.1
    0x0000005555561cb0 in do_lookup_x () from /lib64/ld.so.1

    if anyone knows the functionality of this please respond
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    71
    Rep Power
    2
    What you posted

    Code:
    0x000000555556c7d0 in _dl_runtime_resolve () from /lib64/ld.so.1
    0x0000005555562168 in _dl_lookup_symbol_x () from /lib64/ld.so.1
    0x0000005555561950 in dl_new_hash () from /lib64/ld.so.1
    0x00000055555621d4 in _dl_lookup_symbol_x () from /lib64/ld.so.1
    0x0000005555561cb0 in do_lookup_x () from /lib64/ld.so.1
    Are just the functions which are part of the runtime linker - ld.so.1.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    6
    Rep Power
    0
    i am using a static library which is actually calling application constructor. I am building the application with this library statically. this library is having many calls to the inbuilt function like memcpy, strcpy etc. when application calls strcpy memcpy etc the time taken by my library is more. it is worse in the case of strcpy. strcpy if it is having a defnition in my library or if it is not having a defnition in my library time taken is more. if i am compiling the application with the library statically the time taken is more. when i checked in the GDB when a strcpy call is comming first time in the application it calls these functions and these functions will give the libc.so.6 function address for strcpy. if i am giving a static string inside the strcpy funtion, then this functions will resolve it into memcpy and calls memcpy. my doubht is like when i am linking with my library actually these functions will some how give my function address to the application. so inorder to increase the speed i am thinking is there any posibility to configure these function so that it finds my library fast.

IMN logo majestic logo threadwatch logo seochat tools logo