aboutsummaryrefslogtreecommitdiff
path: root/bfd/som.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-04-12 20:37:33 +0000
committerJeff Law <law@redhat.com>1994-04-12 20:37:33 +0000
commit41194a4a597de558c9bdd663722e87ab2ac5763e (patch)
tree7e7e718ee9344a6e04ba9ca0274524a9609139d3 /bfd/som.c
parent01de31edb9fcd3036886c3c7459524e3f6f4ff9c (diff)
downloadgdb-41194a4a597de558c9bdd663722e87ab2ac5763e.zip
gdb-41194a4a597de558c9bdd663722e87ab2ac5763e.tar.gz
gdb-41194a4a597de558c9bdd663722e87ab2ac5763e.tar.bz2
* som.c (som_write_fixups): Always emit at least
one relocation for any non-bss section.
Diffstat (limited to 'bfd/som.c')
-rw-r--r--bfd/som.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/som.c b/bfd/som.c
index fb44276..89ee89a 100644
--- 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;