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]

Patch for section.c


Hi Jakub,

bfd-in2.h is a generated file. section.c should be used instead. I
checked in the following patch to fix it.

Thanks.


H.J.
------
2001-04-13  H.J. Lu  <hjl@gnu.org>

	* section.c (SEC_MERGE): Define new flag for merging.
	(SEC_STRINGS): Likewise.
	(entsize): New field.

Index: section.c
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/section.c,v
retrieving revision 1.20
diff -u -p -r1.20 section.c
--- section.c	2001/03/09 19:38:00	1.20
+++ section.c	2001/04/14 04:08:39
@@ -350,6 +350,15 @@ CODE_FRAGMENT
 .     references found to any symbol in the section.  *}
 .#define SEC_CLINK 0x10000000
 .
+.  {* Attempt to merge identical entities in the section.
+.     Entity size is given in the entsize field.  *}
+.#define SEC_MERGE 0x20000000
+.
+.  {* If given with SEC_MERGE, entities to merge are zero terminated
+.     strings where entsize specifies character size instead of fixed
+.     size entries.  *}
+.#define SEC_STRINGS 0x40000000
+.
 .  {*  End of section flags.  *}
 .
 .  {* Some internal packed boolean fields.  *}
@@ -461,6 +470,10 @@ CODE_FRAGMENT
 .  {* Number of line number records.  *}
 .
 .  unsigned int lineno_count;
+.
+.  {* Entity size for merging purposes.  *}
+.
+.  unsigned int entsize;
 .
 .  {* Optional information about a COMDAT entry; NULL if not COMDAT.  *}
 .


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