aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index fdc16d9..6ede06a 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -583,6 +583,7 @@ _bfd_elf_link_hash_table_init (table, abfd, newfunc)
table->dynstr = NULL;
table->bucketcount = 0;
table->needed = NULL;
+ table->hgot = NULL;
return _bfd_link_hash_table_init (&table->root, abfd, newfunc);
}
@@ -2078,11 +2079,9 @@ assign_file_positions_for_segments (abfd)
if (i == 0)
abort ();
p->p_memsz += adjust;
+ off += adjust;
if ((flags & SEC_LOAD) != 0)
- {
- p->p_filesz += adjust;
- off += adjust;
- }
+ p->p_filesz += adjust;
}
}