From: Nick Clifton Date: Thu, 14 Jul 2005 07:30:55 +0000 (+0000) Subject: Add testcase for PR 1063 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00f299ffbec4ffcd36b189042ef2a5e54db502e6;p=binutils-gdb.git Add testcase for PR 1063 --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index c7b51c197c3..1cb58c900a5 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-07-14 Nick Clifton + + PR 1063 + * gas/crx/gas-segfault.d: New file. + * gas/crx/gas-segfault.s: New file. + 2005-07-12 Hans-Peter Nilsson * 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 00000000000..9cf772632af --- /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 00000000000..7156665df98 --- /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 + +