LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2010, 01:41 AM   #1
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Rep: Reputation: 15
Angry meaning of output of ldd command


Hi all,

I wrote a test c program Test.c and on executing the following command
Code:
ldd -r Test
the output is..
Code:
linux-gate.so.1 =>  (0xb771d000)
	libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb75bd000)
	/lib/ld-linux.so.2 (0xb771e000)
Can someone explain me the meaning of hexadecimal numbers that follow name of every .so file...


Every time I execute this command these numbers change..

Please help

Regards
_Linux_Learner
 
Old 11-16-2010, 02:41 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

This question has been asked here before: hexadecimal number in ldd output (see post #6).

Hope this helps.
 
Old 11-16-2010, 08:00 AM   #3
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
Hi,

This question has been asked here before: hexadecimal number in ldd output (see post #6).

Hope this helps.
Hi Druuna,
I need more explanation for "load address" as it is stated in the thread you suggested...

Regards
_Linux_Learner
 
Old 11-16-2010, 08:17 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

What info are you looking for specifically?

Quote:
Originally Posted by _Linux_Learner
Can someone explain me the meaning of hexadecimal numbers that follow name of every .so file...
Every time I execute this command these numbers change..
I thought the following did answer your initial question (quote from the posted link):
Quote:
It's the load address of the library, and it's basically not meant to be a
stable value. It will at least depend on the load order and size of the
libraries, and it may in fact be intentionally randomized each run as a
security measure against ret2libc type attacks (PaX, execshield, etc all do
this, as does prelink everytime it re-prelinks libraries). It's entirely
plausible for it to change from run to run, much less machine to machine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
about ldd command ! shipon_97 Linux - Newbie 2 07-13-2010 12:14 PM
Meaning of file command output _Linux_Learner Linux - Newbie 4 02-28-2010 08:29 AM
hexadecimal number in ldd output fancylad Programming 5 10-29-2008 12:11 PM
ldd command veeruk101 Linux - General 10 07-25-2007 08:22 AM
Which ldd output is correct? kaz2100 Linux - General 1 08-24-2006 02:35 PM


All times are GMT -5. The time now is 06:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration