aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-07-14 07:30:55 +0000
committerNick Clifton <nickc@redhat.com>2005-07-14 07:30:55 +0000
commit00f299ffbec4ffcd36b189042ef2a5e54db502e6 (patch)
tree62c258969c5f3b835ae8c30382f52aeb25286215
parentcb4aa4730f7e3ad3bef266b28473ceb22573e480 (diff)
downloadfsf-binutils-gdb-00f299ffbec4ffcd36b189042ef2a5e54db502e6.zip
fsf-binutils-gdb-00f299ffbec4ffcd36b189042ef2a5e54db502e6.tar.gz
fsf-binutils-gdb-00f299ffbec4ffcd36b189042ef2a5e54db502e6.tar.bz2
Add testcase for PR 1063
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/crx/gas-segfault.d17
-rw-r--r--gas/testsuite/gas/crx/gas-segfault.s20
3 files changed, 43 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index c7b51c1..1cb58c9 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-14 Nick Clifton <nickc@redhat.com>
+
+ PR 1063
+ * gas/crx/gas-segfault.d: New file.
+ * gas/crx/gas-segfault.s: New file.
+
2005-07-12 Hans-Peter Nilsson <hp@bitrange.com>
* gas/mmix/relax1-n.d, gas/mmix/relax1-rn.d: Avoid "# FIXME: "
diff --git a/gas/testsuite/gas/crx/gas-segfault.d b/gas/testsuite/gas/crx/gas-segfault.d
new file mode 100644
index 0000000..9cf7726
--- /dev/null
+++ b/gas/testsuite/gas/crx/gas-segfault.d
@@ -0,0 +1,17 @@
+#as:
+#objdump: -dr
+#name: GAS segmentation fault
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+00000000 <__Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc>:
+ 0: ee ba jump r14
+ ...
+
+00000004 <_main>:
+ 4: 6f 34 00 40 push r15, {r14}
+ 8: 7e 30 00 00 bal r14, 0x8 <_main\+0x4>
+ 8: R_CRX_REL16 __Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc
+ c: 6f 32 00 40 popret r15, {r14}
diff --git a/gas/testsuite/gas/crx/gas-segfault.s b/gas/testsuite/gas/crx/gas-segfault.s
new file mode 100644
index 0000000..7156665
--- /dev/null
+++ b/gas/testsuite/gas/crx/gas-segfault.s
@@ -0,0 +1,20 @@
+ # PR 1063
+ # This source file used to make GAS crash with a seg fault
+ .section .text
+ .align 4
+ .globl __Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc
+ .type __Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc,@function
+__Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc:
+ jump ra
+
+ .size __Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc,.-__Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc
+ .align 4
+ .globl _main
+ .type _main, @function
+_main:
+ push sp, { ra }
+ bal ra, __Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc
+ popret sp, { ra }
+ .size _main, .-_main
+
+