aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1995-10-03 18:48:38 +0000
committerJeff Law <law@redhat.com>1995-10-03 18:48:38 +0000
commit97f1feda833cd5284102b3a4f58044f7b6b9b52e (patch)
tree246902621c5d6dbecc83a1b8af0f05a6c64cdb16 /bfd
parent3ad9d625ebad3ae93ae60a40a90da75e9b8cc795 (diff)
downloadfsf-binutils-gdb-97f1feda833cd5284102b3a4f58044f7b6b9b52e.zip
fsf-binutils-gdb-97f1feda833cd5284102b3a4f58044f7b6b9b52e.tar.gz
fsf-binutils-gdb-97f1feda833cd5284102b3a4f58044f7b6b9b52e.tar.bz2
* som.c (setup_sections): Don't die if a space has no subspaces.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog8
-rw-r--r--bfd/som.c4
2 files changed, 12 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 114a99a..40cf750 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,11 @@
+Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl)
+
+ * som.c (setup_sections): Don't die if a space has no subspaces.
+
+ * elf.c (_bfd_elf_assign_file_position_for_section): Always
+ align to the section's alignment. "align" argument removed;
+ all callers changed.
+
Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
* elflink.h (elf_link_add_object_symbols): Don't let a weak
diff --git a/bfd/som.c b/bfd/som.c
index 3aa44c1..dfba504 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -1802,6 +1802,10 @@ setup_sections (abfd, file_hdr)
space.space_number) == false)
goto error_return;
+ /* If the space has no subspaces, then we're done. */
+ if (space.subspace_quantity == 0)
+ continue;
+
/* Now, read in the first subspace for this space */
if (bfd_seek (abfd, file_hdr->subspace_location
+ space.subspace_index * sizeof subspace,