* som.c (som_write_fixups): Always emit at least
authorJeff Law <law@redhat.com>
Tue, 12 Apr 1994 20:37:33 +0000 (20:37 +0000)
committerJeff Law <law@redhat.com>
Tue, 12 Apr 1994 20:37:33 +0000 (20:37 +0000)
        one relocation for any non-bss section.

bfd/ChangeLog
bfd/som.c

index 73ea59d2f3e9a6177c89a12f01b76c9d3dda09d3..1a196dd334b0ac16e249ddb2b1f74b5dc4be1bf3 100644 (file)
@@ -1,3 +1,8 @@
+Tue Apr 12 13:36:20 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
+
+       * som.c (som_write_fixups): Always emit at least
+        one relocation for any non-bss section.
+
 Mon Apr 11 14:41:44 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
        * elfcode.h (assign_file_positions_except_relocs): Don't require
index fb4427656f80bad0ce49588ed7ddb13c9678da5a..89ee89a484dd101a970705eef2bd2c3ba3f46957 100644 (file)
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -2339,9 +2339,9 @@ som_write_fixups (abfd, current_offset, total_reloc_sizep)
              || !som_is_container (section, subsection))
            continue;
 
-         /* If this subspace had no relocations, then we're finished 
-            with it.  */
-         if (subsection->reloc_count <= 0)
+         /* If this subspace does not have real data, then we are
+            finised with it.  */
+         if ((subsection->flags & (SEC_LOAD | SEC_DEBUGGING)) == 0)
            {
              som_section_data (subsection)->subspace_dict->fixup_request_index
                = -1;