mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
* gas/elf/elf.exp: New directory.
* gas/elf/section0.[sd]: New test. * gas/elf/section1.[sd]: New test.
This commit is contained in:
parent
58b5739a4e
commit
9894490542
@ -1,3 +1,9 @@
|
||||
1999-06-05 Richard Henderson <rth@cygnus.com>
|
||||
|
||||
* gas/elf/elf.exp: New directory.
|
||||
* gas/elf/section0.[sd]: New test.
|
||||
* gas/elf/section1.[sd]: New test.
|
||||
|
||||
1999-06-03 Philip Blundell <philb@gnu.org>
|
||||
|
||||
* gas/arm/arm7t.d, gas/arm/inst.d: Update to match current gas,
|
||||
|
14
gas/testsuite/gas/elf/elf.exp
Normal file
14
gas/testsuite/gas/elf/elf.exp
Normal file
@ -0,0 +1,14 @@
|
||||
#
|
||||
# elf tests
|
||||
#
|
||||
|
||||
# We're testing bits in obj-elf -- don't run on anything else.
|
||||
if { [istarget "*-elf*"]
|
||||
|| [istarget "*-linux*"]
|
||||
|| [istarget "sparc*-*-solaris*"]
|
||||
|| [istarget "mips*-*-irix6*"] } then {
|
||||
|
||||
run_dump_test "section0"
|
||||
run_dump_test "section1"
|
||||
|
||||
}
|
14
gas/testsuite/gas/elf/section0.d
Normal file
14
gas/testsuite/gas/elf/section0.d
Normal file
@ -0,0 +1,14 @@
|
||||
#objdump: -s
|
||||
#name: elf section0
|
||||
|
||||
.*: +file format .*
|
||||
|
||||
Contents of section .text:
|
||||
Contents of section .data:
|
||||
0000 0000 ..
|
||||
Contents of section A:
|
||||
0000 010101 ...
|
||||
Contents of section B:
|
||||
0000 0202 ..
|
||||
Contents of section C:
|
||||
0000 03 .
|
16
gas/testsuite/gas/elf/section0.s
Normal file
16
gas/testsuite/gas/elf/section0.s
Normal file
@ -0,0 +1,16 @@
|
||||
.data
|
||||
.byte 0
|
||||
.section A
|
||||
.byte 1
|
||||
.pushsection B
|
||||
.byte 2
|
||||
.pushsection C
|
||||
.byte 3
|
||||
.popsection
|
||||
.byte 2
|
||||
.popsection
|
||||
.byte 1
|
||||
.previous
|
||||
.byte 0
|
||||
.previous
|
||||
.byte 1
|
14
gas/testsuite/gas/elf/section1.d
Normal file
14
gas/testsuite/gas/elf/section1.d
Normal file
@ -0,0 +1,14 @@
|
||||
#objdump: -s
|
||||
#name: elf section1
|
||||
|
||||
.*: +file format .*
|
||||
|
||||
Contents of section .text:
|
||||
Contents of section .data:
|
||||
0000 000000 ...
|
||||
Contents of section A:
|
||||
0000 01010101 0101 ......
|
||||
Contents of section B:
|
||||
0000 02020202 02 .....
|
||||
Contents of section C:
|
||||
0000 0303 ..
|
32
gas/testsuite/gas/elf/section1.s
Normal file
32
gas/testsuite/gas/elf/section1.s
Normal file
@ -0,0 +1,32 @@
|
||||
.data
|
||||
.byte 0
|
||||
.section A
|
||||
.byte 1
|
||||
.previous
|
||||
.byte 0
|
||||
.previous
|
||||
.byte 1
|
||||
.pushsection B
|
||||
.byte 2
|
||||
.previous
|
||||
.byte 1
|
||||
.previous
|
||||
.byte 2
|
||||
.pushsection C
|
||||
.byte 3
|
||||
.previous
|
||||
.byte 2
|
||||
.previous
|
||||
.byte 3
|
||||
.popsection
|
||||
.byte 2
|
||||
.previous
|
||||
.byte 1
|
||||
.previous
|
||||
.byte 2
|
||||
.popsection
|
||||
.byte 1
|
||||
.previous
|
||||
.byte 0
|
||||
.previous
|
||||
.byte 1
|
Loading…
Reference in New Issue
Block a user