daily update
[deliverable/binutils-gdb.git] / gdb / nto-tdep.c
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);
This page took 0.023828 seconds and 4 git commands to generate.