binutils-gdb/gas/doc
Nicolas Pitre 451133cefa gas: section name substitution sequence
This patch adds the ability to automatically construct a section name
based on the prior section.

When gas is invoked with --sectname-subst, the occurrence of %S in a
section name will be substituted by the name of the current section. For
example:

	.macro exception_code
	.pushsection %S.exception
	[exception code here]
	.popsection
	.endm

	.text
	[code]
	exception_code
	[...]

	.section .init
	[init code]
	exception_code
	[...]

The first and second exception_code invocations create the
.text.exception and the .init.exception sections respectively.  This is
useful e.g. to discriminate between anciliary sections that are tied to
.init code and can be discarded at run time when initialization is over
vs anciliary sections tied to .text sections that need to stay resident.

	* as.c (show_usage): Document --sectname-subst.
	(parse_args): Add --sectname-subst.
	* as.h (flag_sectname_subst): New.
	* config/obj-elf.c (obj_elf_section_name): Add %S substitution.
	* doc/as.texinfo: Document it.
2015-06-17 08:52:00 +09:30
..
all.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
as.texinfo gas: section name substitution sequence 2015-06-17 08:52:00 +09:30
c-aarch64.texi [AArch64] Add support for ARMv8.1 command line option 2015-06-04 11:14:07 +01:00
c-alpha.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-arc.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-arm.texi [ARM] Support for ARMv8.1 command line option 2015-06-03 10:03:50 +01:00
c-avr.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-bfin.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-cr16.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-cris.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-d10v.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-d30v.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-epiphany.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-h8300.texi Add support for the h8300-linux target. 2015-02-23 17:04:53 +00:00
c-hppa.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-i370.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-i386.texi Support AMD64/Intel ISAs in assembler/disassembler 2015-05-15 09:48:10 -07:00
c-i860.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-i960.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-ia64.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-ip2k.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-lm32.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-m32c.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-m32r.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-m68hc11.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-m68k.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-metag.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-microblaze.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-mips.texi Add i6400 entry to the MIPS CPU table. 2015-03-12 16:37:09 +00:00
c-mmix.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-msp430.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-mt.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-nds32.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-nios2.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-ns32k.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-pdp11.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-pj.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-ppc.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-rl78.texi Add support for G13 and G14 flag bits in RL78 ELF binaries. 2015-03-19 15:37:43 +00:00
c-rx.texi doc/c-rx.texi: Fix markup typos in last change. 2015-04-09 21:09:02 +02:00
c-s390.texi S/390: Add support for IBM z13. 2015-01-16 12:28:58 +01:00
c-score.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-sh64.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-sh.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-sparc.texi gas: support for the sparc %ncc condition codes register. 2015-05-06 09:26:23 -07:00
c-tic6x.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-tic54x.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-tilegx.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-tilepro.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-v850.texi Adds support for generating notes in V850 binaries. 2015-02-24 17:54:09 +00:00
c-vax.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-visium.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-xc16x.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-xgate.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-xstormy16.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-xtensa.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-z8k.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
c-z80.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
fdl.texi
h8.texi ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
internals.texi Compact EH Support 2015-05-28 15:21:17 -07:00
Makefile.am ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
Makefile.in Revert the AM_ZLIB change in gas 2015-03-31 06:39:57 -07:00