Hi Guys, I am planning on applying the attached patch, but I wondered if anyone had any comments or thoughts first. The patch adds a new gas directive: ".attach_to_group " which can be used to attach the current section to a named group. I need this functionality for the annobin plugin for gcc. The plugin creates new note sections and it wants to place them into section groups with their associated code section. (So the .annobin.text section is grouped with the .text section, the .annobin.text.hot section is grouped with the .text.hot section and so on). The problem is that the compiler creates the .section directives for (most of) these code sections, and it does not add a group section to their declaration. So I need a way to retroactively add a section to a group. Hence the new directive. Tested with a wide variety of different configurations and no problems. Thoughts ? Cheers Nick gas/ * config/obj-elf (elf_pseudo_table): Add attach_to_group. (obj_elf_attach_to_group): New function. * doc/as.texi: Document the new directive. * NEWS: Mention the new feature. * testsuite/gas/elf/attach-1.s: New test. * testsuite/gas/elf/attach-1.d: New test driver. * testsuite/gas/elf/attach-2.s: New test. * testsuite/gas/elf/attach-2.d: New test driver. * testsuite/gas/elf/attach-err.s: New test. * testsuite/gas/elf/attach-err.d: New test driver. * testsuite/gas/elf/attach-err.err: New test error output. * testsuite/gas/elf/elf.exp: Run the new tests.