aboutsummaryrefslogtreecommitdiff
path: root/bfd/syms.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-06-03 17:45:49 +0000
committerNick Clifton <nickc@redhat.com>2003-06-03 17:45:49 +0000
commita3b6428fe79103e838aea22ef2acd6578178bf25 (patch)
tree4ae86ce1df347dd28ad4ea171c561d6520aca4f9 /bfd/syms.c
parent7579829884ab4340f4b6980e10c3797d9ed30294 (diff)
downloadbinutils-a3b6428fe79103e838aea22ef2acd6578178bf25.zip
binutils-a3b6428fe79103e838aea22ef2acd6578178bf25.tar.gz
binutils-a3b6428fe79103e838aea22ef2acd6578178bf25.tar.bz2
Return 'n' if section flags are SEC_HAS_CONTENTS && SEC_READONLY.
Diffstat (limited to 'bfd/syms.c')
-rw-r--r--bfd/syms.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/syms.c b/bfd/syms.c
index d65a868..0fcb7b3 100644
--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -619,6 +619,9 @@ decode_section_type (section)
}
if (section->flags & SEC_DEBUGGING)
return 'N';
+ if ((section->flags & SEC_HAS_CONTENTS) &&
+ (section->flags & SEC_READONLY))
+ return 'n';
return '?';
}