public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Puetz <puetzk@puetzk.org>
To: linux-kernel@vger.kernel.org
Subject: Re: The address displayed by ldd
Date: Sat, 12 Mar 2005 18:19:41 -0600	[thread overview]
Message-ID: <d100te$ina$1@sea.gmane.org> (raw)
In-Reply-To: 20050312151253.60839.qmail@web53906.mail.yahoo.com

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.

gan_xiao_jun@yahoo.com wrote:

> Hi,
> 
> I have a small question,
> I am not sure if it belongs to kernel.
> I often use ldd to find librarys needed.
> In some systems,the address display by ldd not
> changes,
> But in other systems, it changes.
> 
> What is the reason of the difference?
> Is it cause by some setting in kernel?
> 
> Thanks in advance.
> gan
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Find what you need with new enhanced search.
> http://info.mail.yahoo.com/mail_250



      reply	other threads:[~2005-03-13  0:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-12 15:12 The address displayed by ldd gan_xiao_jun
2005-03-13  0:19 ` Kevin Puetz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='d100te$ina$1@sea.gmane.org' \
    --to=puetzk@puetzk.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox