Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Thiago Jung Bauermann <bauerman@br.ibm.com>
To: gdb-patches ml <gdb-patches@sourceware.org>
Subject: [RFA] Document lm_addr_check.
Date: Mon, 04 Jul 2011 19:51:00 -0000	[thread overview]
Message-ID: <1309808956.4471.16.camel@hactar> (raw)

Hi,

A long time ago I had to understand lm_addr_check and as a result I
wrote the comment below. I just ran across this forgotten patch. Could
someone more familiar with the code confirm that the comment is correct?
-- 
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center


2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>

	* solib-svr4.c: (lm_addr_check): Document function.

diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index d92a83c..e05b585 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -170,6 +170,16 @@ lm_dynamic_from_link_map (struct so_list *so)
 				ptr_type);
 }
 
+/* Returns the load address of the given shared object.
+
+   The function also checks if the address of the .dynamic section as
+   calculated from the load address plus the section address in the
+   shared object file matches the actual .dynamic address as given by
+   the inferior's link map.
+
+   If they don't match, it tries to determine if the difference is due
+   to prelink and adjusts the load address accordingly, warning the user.  */
+
 static CORE_ADDR
 lm_addr_check (struct so_list *so, bfd *abfd)
 {



             reply	other threads:[~2011-07-04 19:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-04 19:51 Thiago Jung Bauermann [this message]
2011-07-04 20:34 ` Jan Kratochvil

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=1309808956.4471.16.camel@hactar \
    --to=bauerman@br.ibm.com \
    --cc=gdb-patches@sourceware.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