aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-11-13 14:19:01 +0000
committerNick Clifton <nickc@redhat.com>2003-11-13 14:19:01 +0000
commit6057a28fab69bec497751ab60161975a4b546f2b (patch)
tree8f7e6ea724e6c8305777b42b5f0a8c9016c14ab8 /gas/testsuite
parent39add00a8a2831b679d1333f026f5e106c6fdeaf (diff)
downloadgdb-6057a28fab69bec497751ab60161975a4b546f2b.zip
gdb-6057a28fab69bec497751ab60161975a4b546f2b.tar.gz
gdb-6057a28fab69bec497751ab60161975a4b546f2b.tar.bz2
Add support for ARM ELF Mapping symbols
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/arm/arm.exp2
-rw-r--r--gas/testsuite/gas/arm/mapping.d18
-rw-r--r--gas/testsuite/gas/arm/mapping.s19
4 files changed, 46 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 1036558..c10a143 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2003-11-13 Nick Clifton <nickc@redhat.com>
+
+ * gas/arm/mapping.s: New test: Source for ARM ELF mapping
+ symbols test.
+ * gas/arm/mapping.d: New file: Expected output.
+ * gas/arm/arm.exp: Run new test.
+
2003-11-06 Nick Clifton <nickc@redhat.com>
* gas/arm/req.s: New test file. Check .req and .unreq psuedo ops.
diff --git a/gas/testsuite/gas/arm/arm.exp b/gas/testsuite/gas/arm/arm.exp
index 20e5178..3d9685d 100644
--- a/gas/testsuite/gas/arm/arm.exp
+++ b/gas/testsuite/gas/arm/arm.exp
@@ -68,6 +68,8 @@ if {[istarget *arm*-*-*] || [istarget "xscale-*-*"]} then {
if {[istarget *-*-elf*] || [istarget *-*-linux*]} then {
run_dump_test "pic"
+
+ run_dump_test "mapping"
}
gas_test "offset.s" "" $stdoptlist "OFFSET_IMM regression"
diff --git a/gas/testsuite/gas/arm/mapping.d b/gas/testsuite/gas/arm/mapping.d
new file mode 100644
index 0000000..8102209
--- /dev/null
+++ b/gas/testsuite/gas/arm/mapping.d
@@ -0,0 +1,18 @@
+#objdump: --syms
+#name: ARM Mapping Symbols
+
+# Test the generation of ARM ELF Mapping Symbols
+
+.*: +file format.*arm.*
+
+SYMBOL TABLE:
+0+00 l d .text 0+0
+0+00 l d .data 0+0
+0+00 l d .bss 0+0
+0+00 l F .text 0+0 \$a
+0+08 l .text 0+0 \$t
+0+00 l O .data 0+0 \$d
+0+00 l d foo 0+0
+0+00 l foo 0+0 \$t
+0+00 g .text 0+0 mapping
+0+08 g .text 0+0 thumb_mapping
diff --git a/gas/testsuite/gas/arm/mapping.s b/gas/testsuite/gas/arm/mapping.s
new file mode 100644
index 0000000..c9cee8d
--- /dev/null
+++ b/gas/testsuite/gas/arm/mapping.s
@@ -0,0 +1,19 @@
+ .text
+ .arm
+ .global mapping
+mapping:
+ nop
+ bl mapping
+
+ .global thumb_mapping
+ .thumb_func
+thumb_mapping:
+ .thumb
+ nop
+ bl thumb_mapping
+
+ .data
+ .word 0x123456
+
+ .section foo,"ax"
+ nop