Browse Source
comma then the following argument must be a subsection number. * testsuite/gas/elf/elf.exp (run_elf_list_test): Run section6 test. * testsuite/gas/elf/section6.s: New file: Check behaviour of .pushsection with a subsection argument. * testsuite/gas/elf/section6.d: New file: Expected disassembly.insight_6_8-branch
6 changed files with 48 additions and 3 deletions
@ -0,0 +1,13 @@ |
|||
#objdump: -s |
|||
#name: elf section6 |
|||
|
|||
.*: +file format .* |
|||
|
|||
# The MIPS includes a 'section .reginfo' and such here. |
|||
#... |
|||
Contents of section sec1: |
|||
0+000 01 ?02 ?05.* |
|||
Contents of section sec2: |
|||
0+000 04 ?03.* |
|||
# Arm includes a .ARM.attributes section here |
|||
#... |
|||
@ -0,0 +1,10 @@ |
|||
.section sec1 |
|||
.byte 1 |
|||
.subsection 2 |
|||
.byte 2 |
|||
.pushsection sec2,1 |
|||
.byte 3 |
|||
.subsection 0 |
|||
.byte 4 |
|||
.popsection |
|||
.byte 5 |
|||
Loading…
Reference in new issue