* nto-tdep.c (nto_relocate_section_addresses): Update,
authorDoug Evans <dje@google.com>
Wed, 17 Jul 2013 05:28:04 +0000 (05:28 +0000)
committerDoug Evans <dje@google.com>
Wed, 17 Jul 2013 05:28:04 +0000 (05:28 +0000)
target_section.bfd deleted.
* ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
* s390-tdep.c (s390_load): Ditto.
* solib-aix.c (solib_aix_relocate_section_addresses): Ditto.

gdb/ChangeLog
gdb/nto-tdep.c
gdb/ppc64-tdep.c
gdb/s390-tdep.c
gdb/solib-aix.c

index a0f22da6838967ca3341fc555ef9e9402e1b7c3f..065484de417e74957160dcb4437034126a7a96fd 100644 (file)
@@ -1,3 +1,11 @@
+2013-07-16  Doug Evans  <dje@google.com>
+
+       * nto-tdep.c (nto_relocate_section_addresses): Update,
+       target_section.bfd deleted.
+       * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
+       * s390-tdep.c (s390_load): Ditto.
+       * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
+
 2013-07-16  Andrew Burgess  <aburgess@broadcom.com>
 
        * common/format.c (parse_format_string): Add checks for NULL
index 3ed48a95f8749bd344b668de3554d3e7f03f596b..fa31f140dfabcf4f71f7af63b19ec529ec23d452 100644 (file)
@@ -306,7 +306,7 @@ nto_relocate_section_addresses (struct so_list *so, struct target_section *sec)
   /* Neutrino treats the l_addr base address field in link.h as different than
      the base address in the System V ABI and so the offset needs to be
      calculated and applied to relocations.  */
-  Elf_Internal_Phdr *phdr = find_load_phdr (sec->bfd);
+  Elf_Internal_Phdr *phdr = find_load_phdr (sec->the_bfd_section->owner);
   unsigned vaddr = phdr ? phdr->p_vaddr : 0;
 
   sec->addr = nto_truncate_ptr (sec->addr + lm_addr (so) - vaddr);
index 8732182db3049b5f0a4b1e915b2d5a84756ff049..a2098fee345972625d93c40b4b8ca312cabc00c1 100644 (file)
@@ -383,7 +383,8 @@ ppc64_convert_from_func_ptr_addr (struct gdbarch *gdbarch,
       gdb_byte buf[8];
       int res;
 
-      res = bfd_get_section_contents (s->bfd, s->the_bfd_section,
+      res = bfd_get_section_contents (s->the_bfd_section->owner,
+                                     s->the_bfd_section,
                                      &buf, addr - s->addr, 8);
       if (res != 0)
        return extract_unsigned_integer (buf, 8, byte_order)
index 6111bbf96a0276ac4c71f9925aa73b6194a45594..72d55450225e89da4394079efac1fa33b36cb68c 100644 (file)
@@ -1179,7 +1179,8 @@ s390_load (struct s390_prologue_data *data,
       struct target_section *secp;
       secp = target_section_by_addr (&current_target, addr.k);
       if (secp != NULL
-          && (bfd_get_section_flags (secp->bfd, secp->the_bfd_section)
+          && (bfd_get_section_flags (secp->the_bfd_section->owner,
+                                    secp->the_bfd_section)
               & SEC_READONLY))
         return pv_constant (read_memory_integer (addr.k, size,
                                                 data->byte_order));
index efc0dc5e259eb7216e8bdef8a9789685920a52cf..29574f273d4110cf9136d223a44bf7650b8446e9 100644 (file)
@@ -390,8 +390,8 @@ static void
 solib_aix_relocate_section_addresses (struct so_list *so,
                                      struct target_section *sec)
 {
-  bfd *abfd = sec->bfd;
   struct bfd_section *bfd_sect = sec->the_bfd_section;
+  bfd *abfd = bfd_sect->owner;
   const char *section_name = bfd_section_name (abfd, bfd_sect);
   struct lm_info *info = so->lm_info;
 
This page took 0.032955 seconds and 4 git commands to generate.