]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* symfile.c (build_section_addr_info_from_objfile): Do not mask
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 5 Mar 2010 19:32:44 +0000 (19:32 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 5 Mar 2010 19:32:44 +0000 (19:32 +0000)
off high address bits.

gdb/ChangeLog
gdb/symfile.c

index 16107074431d71ab633a735f6c78ea42b7ae5123..d922c27e9f13d0544f8f56e124e12e90c814007d 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * symfile.c (build_section_addr_info_from_objfile): Do not mask
+       off high address bits.
+
 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
index 20b3daf892c2db69c702dd73012b9ab87b07a804..dbb396caff56bccae1847ba2d6a819c7947d6996 100644 (file)
@@ -364,18 +364,13 @@ build_section_addr_info_from_objfile (const struct objfile *objfile)
   struct section_addr_info *sap;
   int i;
   struct bfd_section *sec;
-  int addr_bit = gdbarch_addr_bit (objfile->gdbarch);
-  CORE_ADDR mask = CORE_ADDR_MAX;
-
-  if (addr_bit < (sizeof (CORE_ADDR) * HOST_CHAR_BIT))
-    mask = ((CORE_ADDR) 1 << addr_bit) - 1;
 
   sap = alloc_section_addr_info (objfile->num_sections);
   for (i = 0, sec = objfile->obfd->sections; sec != NULL; sec = sec->next)
     if (bfd_get_section_flags (objfile->obfd, sec) & (SEC_ALLOC | SEC_LOAD))
       {
        sap->other[i].addr = (bfd_get_section_vma (objfile->obfd, sec)
-                             + objfile->section_offsets->offsets[i]) & mask;
+                             + objfile->section_offsets->offsets[i]);
        sap->other[i].name = xstrdup (bfd_get_section_name (objfile->obfd,
                                                            sec));
        sap->other[i].sectindex = sec->index;