public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Don't align the module's load address.
@ 2008-06-07 12:18 cagney
  0 siblings, 0 replies; only message in thread
From: cagney @ 2008-06-07 12:18 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  9e102f1cd6ceeef293733e313656ef47e8bd7118 (commit)
      from  9d9ce378409bbd2c2ea56101bb4e549f9e977a82 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 9e102f1cd6ceeef293733e313656ef47e8bd7118
Author: Andrew Cagney <cagney@redhat.com>
Date:   Sat Jun 7 08:17:32 2008 -0400

    Don't align the module's load address.
    
    frysk-imports/elfutils/libdwfl/ChangeLog
    2008-06-07  Andrew Cagney  <cagney@redhat.com>
    
    	* dwfl_module_getdwarf.c (open_elf): Don't align the module's load
    	address.  Bug frysk/6599, redhat/450218.

-----------------------------------------------------------------------

Summary of changes:
 frysk-imports/elfutils/libdwfl/ChangeLog           |    3 +++
 .../elfutils/libdwfl/dwfl_module_getdwarf.c        |    5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/frysk-imports/elfutils/libdwfl/ChangeLog b/frysk-imports/elfutils/libdwfl/ChangeLog
index d70c3da..ac95d68 100644
--- a/frysk-imports/elfutils/libdwfl/ChangeLog
+++ b/frysk-imports/elfutils/libdwfl/ChangeLog
@@ -1,5 +1,8 @@
 2008-06-07  Andrew Cagney  <cagney@redhat.com>
 
+	* dwfl_module_getdwarf.c (open_elf): Don't align the module's load
+	address.  Bug frysk/6599, redhat/450218.
+
 	* dwfl_module_getsrc.c (dwfl_module_getsrc): Remove bias from
 	address.  Fix frysk/6600, redhat/450229.
 	
diff --git a/frysk-imports/elfutils/libdwfl/dwfl_module_getdwarf.c b/frysk-imports/elfutils/libdwfl/dwfl_module_getdwarf.c
index 663d256..1d75754 100644
--- a/frysk-imports/elfutils/libdwfl/dwfl_module_getdwarf.c
+++ b/frysk-imports/elfutils/libdwfl/dwfl_module_getdwarf.c
@@ -96,8 +96,9 @@ open_elf (Dwfl_Module *mod, struct dwfl_file *file)
 	  goto elf_error;
 	if (ph->p_type == PT_LOAD)
 	  {
-	    file->bias = ((mod->low_addr & -ph->p_align)
-			  - (ph->p_vaddr & -ph->p_align));
+	    // Align the vaddr.
+	    Dwarf_Addr vaddr = ph->p_vaddr & -ph->p_align;
+	    file->bias = (mod->low_addr - vaddr);
 	    break;
 	  }
       }


hooks/post-receive
--
frysk system monitor/debugger


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-07 12:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-07 12:18 [SCM] master: Don't align the module's load address cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).