* som.c (setup_sections): Don't die if a space has no subspaces.
authorJeff Law <law@redhat.com>
Tue, 3 Oct 1995 18:48:38 +0000 (18:48 +0000)
committerJeff Law <law@redhat.com>
Tue, 3 Oct 1995 18:48:38 +0000 (18:48 +0000)
bfd/ChangeLog
bfd/som.c

index 114a99a1be9c80ec82c52a8fa812cb9e4d9c0ad8..40cf7507109fc5e355576bf09c2f23f782fd531a 100644 (file)
@@ -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
index 3aa44c181738a258097f21f90d0fc0e521f1c8b1..dfba504bce36b4882083ee30efff5e92faf4bb06 100644 (file)
--- 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,