This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH/RFC] Map .coment/.note to BSD/POSIX symbol types
- From: Elias Athanasopoulos <elathan at phys dot uoa dot gr>
- To: binutils at sources dot redhat dot com
- Date: Sun, 1 Jun 2003 22:53:57 +0300
- Subject: Re: [PATCH/RFC] Map .coment/.note to BSD/POSIX symbol types
- References: <20030523183235.C7065@neutrino.particles.org> <m3d6i9y6k0.fsf@gossamer.airs.com>
On Fri, May 23, 2003 at 09:24:47AM -0700, Ian Lance Taylor wrote:
> Otherwise, I think it would be quite reasonable to use 'N', which
> indicates a debugging section. If you think it would be useful to
> distinguish these symbols from symbols which are strictly for
> debugging, then 'n' would be OK by me.
Since noone added any comments, I concluded to the patch below.
Regards,
Elias
--
University of Athens I bet the human brain
Physics Department is a kludge --Marvin Minsky
bfd/ChangeLog
2003-06-01 Elias Athanasopoulos <elathan@phys.uoa.gr>
* syms.c (decode_section_type): Return 'n' if section flags are
SEC_HAS_CONTENTS && SEC_READONLY.
===================================================================
RCS file: /home/anteater/bucvs/src/bfd/syms.c,v
retrieving revision 1.1
diff -u -r1.1 /home/anteater/bucvs/src/bfd/syms.c
--- /home/anteater/bucvs/src/bfd/syms.c 2003/05/22 18:17:20 1.1
+++ /home/anteater/bucvs/src/bfd/syms.c 2003/06/01 07:44:57
@@ -619,7 +619,9 @@
}
if (section->flags & SEC_DEBUGGING)
return 'N';
-
+ if ((section->flags & SEC_HAS_CONTENTS) &&
+ (section->flags & SEC_READONLY))
+ return 'n';
return '?';
}