Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 308608 Details for
Bug 450218
dwfl_module_getdwarf shouldn't align the base address for bias
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
don't align module's load address
diffs (text/plain), 1.12 KB, created by
Andrew Cagney
on 2008-06-07 12:23:09 UTC
(
hide
)
Description:
don't align module's load address
Filename:
MIME Type:
Creator:
Andrew Cagney
Created:
2008-06-07 12:23:09 UTC
Size:
1.12 KB
patch
obsolete
>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; > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 450218
: 308608