diff options
author | Roland McGrath <roland@gnu.org> | 2009-07-24 23:49:51 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2009-07-24 23:49:51 +0000 |
commit | 01fb1836cef65536bcb25fd593a8e230702fa509 (patch) | |
tree | 489a3956cbbd893607abfaf97f714f9b725a8ab9 /gas/config | |
parent | c3b65ac4d0f98770c149f41a5a80a1b34a3a821a (diff) | |
download | gdb-01fb1836cef65536bcb25fd593a8e230702fa509.zip gdb-01fb1836cef65536bcb25fd593a8e230702fa509.tar.gz gdb-01fb1836cef65536bcb25fd593a8e230702fa509.tar.bz2 |
2009-07-24 Roland McGrath <roland@redhat.com>
* config/obj-elf.c (obj_elf_ident): Set SEC_MERGE | SEC_STRINGS
flags on .comment section.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/obj-elf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index c9c7a9c..f85267b 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -496,7 +496,7 @@ get_section (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, void *inf) { const char *gname = inf; const char *group_name = elf_group_name (sec); - + return (group_name == gname || (group_name != NULL && gname != NULL @@ -1723,7 +1723,9 @@ obj_elf_ident (int ignore ATTRIBUTE_UNUSED) 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; } |