aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/coff-sh.c')
-rw-r--r--bfd/coff-sh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c
index 314b796..50e9043 100644
--- a/bfd/coff-sh.c
+++ b/bfd/coff-sh.c
@@ -717,6 +717,7 @@ sh_relax_section (bfd *abfd,
*again = false;
if (bfd_link_relocatable (link_info)
+ || (sec->flags & SEC_HAS_CONTENTS) == 0
|| (sec->flags & SEC_RELOC) == 0
|| sec->reloc_count == 0)
return true;
@@ -1364,6 +1365,7 @@ sh_relax_delete_bytes (bfd *abfd,
bfd_byte *ocontents;
if (o == sec
+ || (o->flags & SEC_HAS_CONTENTS) == 0
|| (o->flags & SEC_RELOC) == 0
|| o->reloc_count == 0)
continue;