From: nobody <> Date: Fri, 1 Dec 2006 16:42:27 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'binutils-csl- X-Git-Tag: binutils-csl-coldfire-4_1-32~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2219f2b3715ddbee477ded32d5b2af06737f3464;p=thirdparty%2Fbinutils-gdb.git This commit was manufactured by cvs2svn to create branch 'binutils-csl- 2_17-branch'. Cherrypick from master 2006-12-01 16:42:26 UTC Paul Brook '2006-12-01 Paul Brook ': gas/testsuite/gas/arm/thumbrel.d gas/testsuite/gas/arm/thumbrel.s --- diff --git a/gas/testsuite/gas/arm/thumbrel.d b/gas/testsuite/gas/arm/thumbrel.d new file mode 100644 index 00000000000..495360fe74e --- /dev/null +++ b/gas/testsuite/gas/arm/thumbrel.d @@ -0,0 +1,14 @@ +#objdump: -sr +# This test is only valid on ELF based ports. +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* + +.*: file format.* + +RELOCATION RECORDS FOR \[.text\]: +OFFSET TYPE VALUE +00000004 R_ARM_REL32 b + +Contents of section .text: + 0000 00000000 (00000004|04000000) 00000000 00000000 .* +# Ignore .ARM.attributes section +#... diff --git a/gas/testsuite/gas/arm/thumbrel.s b/gas/testsuite/gas/arm/thumbrel.s new file mode 100644 index 00000000000..769da16156c --- /dev/null +++ b/gas/testsuite/gas/arm/thumbrel.s @@ -0,0 +1,11 @@ +@ Check that PC-relative relocs against local function symbols are +@ generated correctly. +.text +.thumb +a: +.word 0 +.word b - a +.word 0 +.word 0 +.type b, %function +b: