From a3b6428fe79103e838aea22ef2acd6578178bf25 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 3 Jun 2003 17:45:49 +0000 Subject: [PATCH] Return 'n' if section flags are SEC_HAS_CONTENTS && SEC_READONLY. --- bfd/ChangeLog | 5 +++++ bfd/syms.c | 3 +++ binutils/ChangeLog | 5 +++++ binutils/NEWS | 4 ++++ 4 files changed, 17 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5c76004f84..cbd2b41e44 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-06-03 Elias Athanasopoulos + + * syms.c (decode_section_type): Return 'n' if section flags are + SEC_HAS_CONTENTS && SEC_READONLY. + 2003-06-03 Nick Clifton * elf32-v850.c (v850_elf_howto_t): Rename R_V850_32to diff --git a/bfd/syms.c b/bfd/syms.c index d65a8689ca..0fcb7b3662 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 '?'; } diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 536d761ca4..0b42501d68 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2003-06-03 Elias Athanasopoulos + + * NEWS: Document the new BSD/POSIX single-character mapping for + .comment/.note sections. + 2003-06-02 Chris Demetriou Jason Thorpe diff --git a/binutils/NEWS b/binutils/NEWS index 3730a7b926..2531bf2f86 100644 --- a/binutils/NEWS +++ b/binutils/NEWS @@ -1,5 +1,9 @@ -*- text -*- +* BFD marks the sections .comment and .note as 'n' in the BSD/POSIX + single-character representation. This can be checked by running nm + with the -a switch. + * Added --info switch to objcopy and strip. * Support for Vitesse IQ2000 added by Red Hat. -- 2.34.1