public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: cagney@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Don't align the module's load address. Date: Sat, 07 Jun 2008 12:18:00 -0000 [thread overview] Message-ID: <20080607121850.11595.qmail@sourceware.org> (raw) 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
reply other threads:[~2008-06-07 12:18 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20080607121850.11595.qmail@sourceware.org \ --to=cagney@sourceware.org \ --cc=frysk-cvs@sourceware.org \ --cc=frysk@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: linkBe 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; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).