* som.c (som_begin_writing): Don't forget to bump the
authorJeff Law <law@redhat.com>
Wed, 4 Jan 1995 21:15:42 +0000 (21:15 +0000)
committerJeff Law <law@redhat.com>
Wed, 4 Jan 1995 21:15:42 +0000 (21:15 +0000)
total_subspaces when writing the unloadable subspaces.

bfd/ChangeLog
bfd/som.c

index b0b8f05d855b5cce9b771b01701483c42a6f780a..b59f4e7670a8159da6c2b15ba97ba94142460337 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jan  4 14:14:05 1995  Jeff Law  (law@snake.cs.utah.edu)
+
+       * som.c (som_begin_writing): Don't forget to bump the
+       total_subspaces when writing the unloadable subspaces.
+
 Wed Dec 28 20:54:47 1994  Jeff Law  (law@snake.cs.utah.edu)
 
        * som.c (som_write_fixups): Use SEC_HAS_CONTENTS to identify
index c84c63129e40502291cbd789973045a5905bb55f..d0c9fc60d864dfdbbd4323baef26923d5fe39156 100644 (file)
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -3139,7 +3139,7 @@ som_begin_writing (abfd)
              || (subsection->flags & SEC_ALLOC) != 0)
            continue;
 
-         subsection->target_index = total_subspaces;
+         subsection->target_index = total_subspaces++;
          /* This is real data to be loaded from the file.  */
          if ((subsection->flags & SEC_LOAD) == 0)
            {