From 0ffdc86ce9b1f13f791d159c60c58e2c87ed0d91 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 10 Nov 2006 09:32:42 +0000 Subject: * 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. --- gas/testsuite/ChangeLog | 7 +++++++ gas/testsuite/gas/arm/local_label_coff.d | 11 +++++++++++ gas/testsuite/gas/arm/local_label_coff.s | 3 +++ gas/testsuite/gas/arm/local_label_elf.d | 9 +++++++++ gas/testsuite/gas/arm/local_label_elf.s | 3 +++ gas/testsuite/gas/arm/local_label_wince.d | 11 +++++++++++ gas/testsuite/gas/arm/local_label_wince.s | 3 +++ 7 files changed, 47 insertions(+) create mode 100644 gas/testsuite/gas/arm/local_label_coff.d create mode 100644 gas/testsuite/gas/arm/local_label_coff.s create mode 100644 gas/testsuite/gas/arm/local_label_elf.d create mode 100644 gas/testsuite/gas/arm/local_label_elf.s create mode 100644 gas/testsuite/gas/arm/local_label_wince.d create mode 100644 gas/testsuite/gas/arm/local_label_wince.s (limited to 'gas/testsuite') 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 * 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 -- cgit v1.1