diff options
author | Nick Clifton <nickc@redhat.com> | 2006-11-10 09:32:42 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-11-10 09:32:42 +0000 |
commit | 0ffdc86ce9b1f13f791d159c60c58e2c87ed0d91 (patch) | |
tree | eb80bff1dc739b86aafb8e2a5fae1e0e61a2cc4f /gas/testsuite | |
parent | 0285182bf2cf7b76b87b96d759d8eb44baa09dba (diff) | |
download | gdb-0ffdc86ce9b1f13f791d159c60c58e2c87ed0d91.zip gdb-0ffdc86ce9b1f13f791d159c60c58e2c87ed0d91.tar.gz gdb-0ffdc86ce9b1f13f791d159c60c58e2c87ed0d91.tar.bz2 |
* config/tc-arm.c (arm_fix_adjustable) [OBJ_COFF]: Delete.
(arm_fix_adjustable) [OBJ_ELF]: Use it on coff targets too.
* gas/arm/local_label_coff.s: New test.
* gas/arm/local_label_coff.d: New test.
* gas/arm/local_label_elf.s: New test.
* gas/arm/local_label_elf.d: New test.
* gas/arm/local_label_wince.s: New test.
* gas/arm/local_label_wince.d: New test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/local_label_coff.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/local_label_coff.s | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/local_label_elf.d | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/local_label_elf.s | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/local_label_wince.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/local_label_wince.s | 3 |
7 files changed, 47 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 0a4b608..180fbf9 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -3,6 +3,13 @@ * gas/arm/undefined.d: Run test on Windows CE. * gas/arm/undefined_coff.d: Don't run test on Windows CE. + * gas/arm/local_label_coff.s: New test. + * gas/arm/local_label_coff.d: New test. + * gas/arm/local_label_elf.s: New test. + * gas/arm/local_label_elf.d: New test. + * gas/arm/local_label_wince.s: New test. + * gas/arm/local_label_wince.d: New test. + 2006-11-09 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/sse2.s: Test movdqa with memory destination. diff --git a/gas/testsuite/gas/arm/local_label_coff.d b/gas/testsuite/gas/arm/local_label_coff.d new file mode 100644 index 0000000..5e45ac8 --- /dev/null +++ b/gas/testsuite/gas/arm/local_label_coff.d @@ -0,0 +1,11 @@ +#nm: -n +#name: ARM local label relocs to section symbol relocs (COFF) +# This test is only valid on COFF based targets, except Windows CE. +# There are ELF and Windows CE versions of this test. +#not-skip: *-unknown-pe *-epoc-pe *-*-*coff + +# Check if relocations against local symbols are converted to +# relocations against section symbols. +0+0 b .bss +0+0 d .data +0+0 t .text diff --git a/gas/testsuite/gas/arm/local_label_coff.s b/gas/testsuite/gas/arm/local_label_coff.s new file mode 100644 index 0000000..985f568 --- /dev/null +++ b/gas/testsuite/gas/arm/local_label_coff.s @@ -0,0 +1,3 @@ + .text +Lused_label: + .word Lused_label diff --git a/gas/testsuite/gas/arm/local_label_elf.d b/gas/testsuite/gas/arm/local_label_elf.d new file mode 100644 index 0000000..d4a8c8e --- /dev/null +++ b/gas/testsuite/gas/arm/local_label_elf.d @@ -0,0 +1,9 @@ +#nm: -n +#name: ARM local label relocs to section symbol relocs (ELF) +# This test is only valid on ELF targets. +# There are COFF and Windows CE versions of this test. +#skip: *-*-*coff *-*-pe *-wince-* *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* + +# Check if relocations against local symbols are converted to +# relocations against section symbols. + diff --git a/gas/testsuite/gas/arm/local_label_elf.s b/gas/testsuite/gas/arm/local_label_elf.s new file mode 100644 index 0000000..e9f5467 --- /dev/null +++ b/gas/testsuite/gas/arm/local_label_elf.s @@ -0,0 +1,3 @@ + .text +.Lused_label: + .word .Lused_label diff --git a/gas/testsuite/gas/arm/local_label_wince.d b/gas/testsuite/gas/arm/local_label_wince.d new file mode 100644 index 0000000..97fc58a --- /dev/null +++ b/gas/testsuite/gas/arm/local_label_wince.d @@ -0,0 +1,11 @@ +#nm: -n +#name: ARM local label relocs to section symbol relocs (WinCE) +# This test is only valid on Windows CE. +# There are ELF and COFF versions of this test. +#not-skip: *-*-wince *-wince-* + +# Check if relocations against local symbols are converted to +# relocations against section symbols. +0+0 b .bss +0+0 d .data +0+0 t .text diff --git a/gas/testsuite/gas/arm/local_label_wince.s b/gas/testsuite/gas/arm/local_label_wince.s new file mode 100644 index 0000000..e9f5467 --- /dev/null +++ b/gas/testsuite/gas/arm/local_label_wince.s @@ -0,0 +1,3 @@ + .text +.Lused_label: + .word .Lused_label |