C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 18th, 2012, 08:35 PM
josymadamana josymadamana is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 6 josymadamana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 23 sec
Reputation 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

Reply With Quote
  #2  
Old November 18th, 2012, 08:59 PM
G4143 G4143 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 71 G4143 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 7 h 39 m 39 sec
Reputation Power: 1
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.

Reply With Quote
  #3  
Old November 19th, 2012, 12:03 AM
josymadamana josymadamana is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 6 josymadamana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 23 sec
Reputation 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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > _dl_runtime_resolve,_dl_lookup_symbol_x ,dl_new_hash functionality help needed

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap