[COMMITTED-PATCH] give .comment sections SHF_MERGE|SHF_STRINGS
Roland McGrath
roland@redhat.com
Sat Jul 25 01:10:00 GMT 2009
Committed:
2009-07-24 Roland McGrath <roland@redhat.com>
Mark Wielaard <mjw@redhat.com>
* config/obj-elf.c (obj_elf_ident): Set SEC_MERGE | SEC_STRINGS
flags on .comment section.
Index: config/obj-elf.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-elf.c,v
retrieving revision 1.115
diff -u -r1.115 obj-elf.c
--- config/obj-elf.c 23 Jul 2009 13:00:27 -0000 1.115
+++ config/obj-elf.c 24 Jul 2009 23:49:31 -0000
@@ -1723,7 +1723,9 @@
char *p;
comment_section = subseg_new (".comment", 0);
bfd_set_section_flags (stdoutput, comment_section,
- SEC_READONLY | SEC_HAS_CONTENTS);
+ SEC_READONLY | SEC_HAS_CONTENTS
+ | SEC_MERGE | SEC_STRINGS);
+ comment_section->entsize = 1;
p = frag_more (1);
*p = 0;
}
More information about the Binutils
mailing list