aboutsummaryrefslogtreecommitdiff
path: root/bfd/oasys.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/oasys.c')
-rw-r--r--bfd/oasys.c6
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 **) &section->relocation;
+ relpp = &section->relocation;
+ per->reloc_tail_ptr = (oasys_reloc_type **) relpp;
per->had_vma = FALSE;
per->initialized = TRUE;
section->reloc_count = 0;