diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-10-27 17:45:53 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-10-27 17:45:53 +0000 |
commit | 9cfc3331a8ecc462c89a8e8d7891c8024291a5c9 (patch) | |
tree | 014af7bf85c16be4928e0ccf0017ea4763cfd256 /gas/testsuite | |
parent | bfe10c0faee24948aab639bac91ba4b8d659aaa7 (diff) | |
download | gdb-9cfc3331a8ecc462c89a8e8d7891c8024291a5c9.zip gdb-9cfc3331a8ecc462c89a8e8d7891c8024291a5c9.tar.gz gdb-9cfc3331a8ecc462c89a8e8d7891c8024291a5c9.tar.bz2 |
gas/
2007-10-27 H.J. Lu <hongjiu.lu@intel.com>
PR gas/5221
* config/obj-elf.c (obj_elf_section): Handle optional
parameters for .pushsection.
* doc/as.texinfo: Document optional parameters for
.pushsection.
gas/testsuite/
2007-10-27 H.J. Lu <hongjiu.lu@intel.com>
PR gas/5221
* gas/elf/elf.exp: Run section7.
* gas/elf/section7.d: New.
* gas/elf/section7.s: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/elf.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/section7.d | 21 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/section7.s | 38 |
4 files changed, 68 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index e18ddd4..8616469 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2007-10-27 H.J. Lu <hongjiu.lu@intel.com> + + PR gas/5221 + * gas/elf/elf.exp: Run section7. + + * gas/elf/section7.d: New. + * gas/elf/section7.s: Likewise. + 2007-10-23 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/katmai.s: Remove cmpps opcode test. diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp index 1bcb101..c5e2921 100644 --- a/gas/testsuite/gas/elf/elf.exp +++ b/gas/testsuite/gas/elf/elf.exp @@ -104,4 +104,5 @@ if { ([istarget "*-*-*elf*"] run_dump_test "symver" run_elf_list_test "type" "" "" "-s" "| grep \"1 \\\[FONTC\\\]\"" run_dump_test "section6" + run_dump_test "section7" } diff --git a/gas/testsuite/gas/elf/section7.d b/gas/testsuite/gas/elf/section7.d new file mode 100644 index 0000000..94c57c6 --- /dev/null +++ b/gas/testsuite/gas/elf/section7.d @@ -0,0 +1,21 @@ +#objdump: -s +#name: elf section7 + +.*: +file format .* + +# The MIPS includes a 'section .reginfo' and such here. +#... +Contents of section .bar: + 0000 00000000 00000000 0000 .* +Contents of section .bar1: + 0000 0102 .* +Contents of section .bar2: + 0000 0102 .* +Contents of section .bar3: + 0000 0103 .* +Contents of section .bar4: + 0000 04 .* +Contents of section .text: + 0000 feff .* +# Arm includes a .ARM.attributes section here +#... diff --git a/gas/testsuite/gas/elf/section7.s b/gas/testsuite/gas/elf/section7.s new file mode 100644 index 0000000..fe9aaa1 --- /dev/null +++ b/gas/testsuite/gas/elf/section7.s @@ -0,0 +1,38 @@ + .section .bar,"a" + .byte 0 +.pushsection .bar1,2,"a" + .byte 2 +.popsection + .byte 0 +.pushsection .bar2,3,"a" + .byte 2 +.popsection + .byte 0 +.pushsection .bar3,2,"a", %progbits + .byte 3 +.popsection + .byte 0 +.pushsection .bar4 + .byte 4 +.popsection + .byte 0 +.pushsection .text,1,"axG",%progbits,foo,comdat + .byte -1 +.popsection + .byte 0 +.pushsection .text,"axG",%progbits,foo,comdat + .byte -2 +.popsection + .byte 0 +.pushsection .bar1,"a" + .byte 1 +.popsection + .byte 0 +.pushsection .bar3,"a", %progbits + .byte 1 +.popsection + .byte 0 +.pushsection .bar2,"a" + .byte 1 +.popsection + .byte 0 |