as: Previous

1 
1 7.68 '.previous'
1 ================
1 
1 This is one of the ELF section stack manipulation directives.  The
DONTPRINTYET 1 others are '.section' (⇒Section), '.subsection' (*note1DONTPRINTYET 1 others are '.section' (⇒Section), '.subsection' (⇒
 SubSection), '.pushsection' (⇒PushSection), and '.popsection'
1 (⇒PopSection).
1 
1    This directive swaps the current section (and subsection) with most
1 recently referenced section/subsection pair prior to this one.  Multiple
1 '.previous' directives in a row will flip between two sections (and
1 their subsections).  For example:
1 
1      .section A
1       .subsection 1
1        .word 0x1234
1       .subsection 2
1        .word 0x5678
1      .previous
1       .word 0x9abc
1 
1    Will place 0x1234 and 0x9abc into subsection 1 and 0x5678 into
1 subsection 2 of section A. Whilst:
1 
1      .section A
1      .subsection 1
1        # Now in section A subsection 1
1        .word 0x1234
1      .section B
1      .subsection 0
1        # Now in section B subsection 0
1        .word 0x5678
1      .subsection 1
1        # Now in section B subsection 1
1        .word 0x9abc
1      .previous
1        # Now in section B subsection 0
1        .word 0xdef0
1 
1    Will place 0x1234 into section A, 0x5678 and 0xdef0 into subsection 0
1 of section B and 0x9abc into subsection 1 of section B.
1 
1    In terms of the section stack, this directive swaps the current
1 section with the top section on the section stack.
1