diff options
Diffstat (limited to 'bfd/oasys.c')
-rw-r--r-- | bfd/oasys.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/oasys.c b/bfd/oasys.c index 2647f82..74d2c31 100644 --- a/bfd/oasys.c +++ b/bfd/oasys.c @@ -384,11 +384,13 @@ oasys_slurp_section_data (bfd *const abfd) if (! per->initialized) { + arelent **relpp; + per->data = bfd_zalloc (abfd, section->size); if (!per->data) return FALSE; - per->reloc_tail_ptr - = (oasys_reloc_type **) §ion->relocation; + relpp = §ion->relocation; + per->reloc_tail_ptr = (oasys_reloc_type **) relpp; per->had_vma = FALSE; per->initialized = TRUE; section->reloc_count = 0; |