]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
This commit was manufactured by cvs2svn to create branch 'binutils-csl-
authornobody <>
Fri, 1 Dec 2006 16:42:27 +0000 (16:42 +0000)
committernobody <>
Fri, 1 Dec 2006 16:42:27 +0000 (16:42 +0000)
2_17-branch'.

Cherrypick from master 2006-12-01 16:42:26 UTC Paul Brook <paul@codesourcery.com> '2006-12-01  Paul Brook  <paul@codesourcery.com>':
    gas/testsuite/gas/arm/thumbrel.d
    gas/testsuite/gas/arm/thumbrel.s

gas/testsuite/gas/arm/thumbrel.d [new file with mode: 0644]
gas/testsuite/gas/arm/thumbrel.s [new file with mode: 0644]

diff --git a/gas/testsuite/gas/arm/thumbrel.d b/gas/testsuite/gas/arm/thumbrel.d
new file mode 100644 (file)
index 0000000..495360f
--- /dev/null
@@ -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 (file)
index 0000000..769da16
--- /dev/null
@@ -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: