This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Patch for section.c
- To: jakub at redhat dot com
- Subject: Patch for section.c
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Fri, 13 Apr 2001 21:16:45 -0700
- Cc: binutils at sourceware dot cygnus dot com
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. *}
.