This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/RFC] Map .coment/.note to BSD/POSIX symbol types


Hello!

Both .comment and .note sections do not have a BSD/POSIX symbol type. They
are shown as '?'. I don't like the following patch very much, since it may
bring confusion to parsers. What about adding a new, 'n' maybe, symbol type?

Regards,
Elias

-- 
University of Athens			I bet the human brain 
Physics Department				is a kludge --Marvin Minsky 


bfd/ChangeLog	

23-05-2003  Elias Athanasopoulos  <elathan@phys.uoa.gr>

	* syms.c (decode_section_type): Return 'r' 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/05/23 15:21:40
@@ -617,6 +617,10 @@
       else
 	return 'b';
     }
+  /* FIXME: .note/.comment sections.  */
+  if ((section->flags & SEC_HAS_CONTENTS) &&
+      (section->flags & SEC_READONLY))
+    return 'r';
   if (section->flags & SEC_DEBUGGING)
     return 'N';
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]