anyone knows the functionality of the following functions please respond

This is a discussion on anyone knows the functionality of the following functions please respond within the C Programming forums, part of the General Programming Boards category; hi i am stuck with a particular problem. when a strcpy or some string functions are called by a application ...

  1. #1
    Registered User
    Join Date
    Nov 2012
    Posts
    17

    anyone knows the functionality of the following functions please respond

    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
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,390
    What is the actual problem?
    Fact - Beethoven wrote his first symphony in C

  3. #3
    Registered User
    Join Date
    Nov 2012
    Posts
    17
    Quote Originally Posted by Click_here View Post
    What is the actual problem?
    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 if i am compiling with the library and application 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.

  4. #4
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,390
    You might have more luck here Linux Programming
    Fact - Beethoven wrote his first symphony in C

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. XP taking about 8 min to boot and 12 to respond
    By VirtualAce in forum Tech Board
    Replies: 28
    Last Post: 09-21-2008, 02:15 AM
  2. Replies: 7
    Last Post: 09-24-2006, 10:13 AM
  3. respond to button
    By algi in forum Windows Programming
    Replies: 2
    Last Post: 03-19-2005, 09:28 PM
  4. server won't respond...
    By Sebastiani in forum C++ Programming
    Replies: 11
    Last Post: 10-19-2002, 09:09 PM
  5. Respond
    By whistlenm1 in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 02-02-2002, 01:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21