aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-12-29 03:56:20 +0000
committerJeff Law <law@redhat.com>1994-12-29 03:56:20 +0000
commitc3a1888801fa75aa44a417b2c62b66b08cf68c6b (patch)
tree777c1758047375718d2ba569ee57047b32051276
parent3200aa595ba623e1dbc0aa0ebf801835cfa751f2 (diff)
downloadgdb-c3a1888801fa75aa44a417b2c62b66b08cf68c6b.zip
gdb-c3a1888801fa75aa44a417b2c62b66b08cf68c6b.tar.gz
gdb-c3a1888801fa75aa44a417b2c62b66b08cf68c6b.tar.bz2
* som.c (som_write_fixups): Use SEC_HAS_CONTENTS to identify
bss-like sections. (som_get_section_contents): Likewise. (som_set_section_contents): Likewise.
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/som.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 03f4f3c..b0b8f05 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+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
+ bss-like sections.
+ (som_get_section_contents): Likewise.
+ (som_set_section_contents): Likewise.
+
Tue Dec 27 14:03:47 1994 Jeff Law (law@snake.cs.utah.edu)
* som.c (setup_sections): Turn off SEC_HAS_CONTENTS for bss-like
diff --git a/bfd/som.c b/bfd/som.c
index e124b55..c84c631 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -2381,7 +2381,7 @@ som_write_fixups (abfd, current_offset, total_reloc_sizep)
/* If this subspace does not have real data, then we are
finised with it. */
- if ((subsection->flags & (SEC_LOAD | SEC_DEBUGGING)) == 0)
+ if ((subsection->flags & SEC_HAS_CONTENTS) == 0)
{
som_section_data (subsection)->subspace_dict->fixup_request_index
= -1;
@@ -4571,7 +4571,7 @@ som_get_section_contents (abfd, section, location, offset, count)
file_ptr offset;
bfd_size_type count;
{
- if (count == 0 || ((section->flags & (SEC_LOAD | SEC_DEBUGGING)) == 0))
+ if (count == 0 || ((section->flags & SEC_HAS_CONTENTS) == 0))
return true;
if ((bfd_size_type)(offset+count) > section->_raw_size
|| bfd_seek (abfd, (file_ptr)(section->filepos + offset), SEEK_SET) == -1
@@ -4602,7 +4602,7 @@ som_set_section_contents (abfd, section, location, offset, count)
/* Only write subspaces which have "real" contents (eg. the contents
are not generated at run time by the OS). */
if (!som_is_subspace (section)
- || ((section->flags & (SEC_LOAD | SEC_DEBUGGING)) == 0))
+ || ((section->flags & SEC_HAS_CONTENTS) == 0))
return true;
/* Seek to the proper offset within the object file and write the