[PATCH/RFC] Map .coment/.note to BSD/POSIX symbol types
Elias Athanasopoulos
elathan@phys.uoa.gr
Sun Jun 1 19:52:00 GMT 2003
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 '?';
}
More information about the Binutils
mailing list