From 01fb1836cef65536bcb25fd593a8e230702fa509 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 24 Jul 2009 23:49:51 +0000 Subject: [PATCH] 2009-07-24 Roland McGrath * config/obj-elf.c (obj_elf_ident): Set SEC_MERGE | SEC_STRINGS flags on .comment section. --- gas/ChangeLog | 17 +++++++++++------ gas/config/obj-elf.c | 6 ++++-- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index a32183578e5..8f9edd23e32 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2009-07-24 Roland McGrath + + * config/obj-elf.c (obj_elf_ident): Set SEC_MERGE | SEC_STRINGS + flags on .comment section. + 2009-07-24 Trevor Smigiel Alan Modra @@ -200,7 +205,7 @@ * config/tc-i386.c (cpu_arch): Add .fma4 and CPU_FMA4_FLAGS. (build_modrm_byte): Add support to handle FMA4 instructions. (md_show_usage): Add fma4. - + 2009-07-04 Alan Modra * config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections. @@ -219,7 +224,7 @@ (i386_target_format): Add a case for bfd_target_mach_o_flavour. * config/obj-macho.h: New file. * config/obj-macho.c: New file. - + 2009-07-01 Nick Clifton PR 10168 @@ -250,7 +255,7 @@ * config/tc-mep.h ((mep_relax_frag): New. 2009-06-22 Martin Thuresson - + * gas/app, gas/as.c, gas/as.h, gas/atof-generic.c, gas/cgen.c, gas/config/atof-ieee.c, gas/config/obj-aout.c, gas/config/obj-coff.c, gas/config/obj-ecoff.c, @@ -436,7 +441,7 @@ (insns_between): Add 24k errata checks. (append_insn): Remove declaration and references to nhdx_24k. Remove calls to check_for_24k_errata. - + 2009-05-26 Nick Clifton * po/id.po: Updated Indonesian translation. @@ -484,7 +489,7 @@ (md_assemble): Remove DREX handling support. (process_operands): Remove DREX, SSE5 support. (i386_insn): Remove DREX. - + 2009-05-22 Alan Modra * Makefile.am: Run "make dep-am". @@ -553,7 +558,7 @@ BFD_RELOC_THUMB_PCREL_BRANCH20, BFD_RELOC_THUMB_PCREL_BRANCH23, BFD_RELOC_THUMB_PCREL_BRANCH25. (arm_apply_sym_value): New function. - + 2009-05-04 Tristan Gingold * config/tc-alpha.c: Also declare alpha_prologue_label for OBJ_EVAX. diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index c9c7a9c7ee2..f85267bb774 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; } -- 2.30.2