aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2006-05-11 15:05:17 +0000
committerPaul Brook <paul@codesourcery.com>2006-05-11 15:05:17 +0000
commite28387c3bf6b1358d3a438443fc790c8e0fefa22 (patch)
treee1f439f9bacefe5b007e5a1b1cc1a599f345fab1 /gas/testsuite
parent89ee2ebe8b9182015a1bf8643bb87c312c92474c (diff)
downloadgdb-e28387c3bf6b1358d3a438443fc790c8e0fefa22.zip
gdb-e28387c3bf6b1358d3a438443fc790c8e0fefa22.tar.gz
gdb-e28387c3bf6b1358d3a438443fc790c8e0fefa22.tar.bz2
2006-05-11 Paul Brook <paul@codesourcery.com>
gas/ * config/tc-arm.c (arm_fix_adjustable): Return 0 for function symbols. gas/testsuite/ * gas/arm/local_function.d: New test. * gas/arm/local_function.s: New test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/arm/local_function.d10
-rw-r--r--gas/testsuite/gas/arm/local_function.s10
3 files changed, 25 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 9ef3da9..e9745b1 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-11 Paul Brook <paul@codesourcery.com>
+
+ * gas/arm/local_function.d: New test.
+ * gas/arm/local_function.s: New test.
+
2006-05-11 Thiemo Seufer <ths@mips.com>
* gas/mips/jal-range.l: Don't check the range of j or jal
diff --git a/gas/testsuite/gas/arm/local_function.d b/gas/testsuite/gas/arm/local_function.d
new file mode 100644
index 0000000..46da8ec
--- /dev/null
+++ b/gas/testsuite/gas/arm/local_function.d
@@ -0,0 +1,10 @@
+#objdump: -r
+#name: Relocations agains local function symbols
+# 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
+00000000 R_ARM_(CALL|PC24) bar
diff --git a/gas/testsuite/gas/arm/local_function.s b/gas/testsuite/gas/arm/local_function.s
new file mode 100644
index 0000000..1d98a37
--- /dev/null
+++ b/gas/testsuite/gas/arm/local_function.s
@@ -0,0 +1,10 @@
+ .text
+ .type foo, %function
+foo:
+ bl bar
+
+ .section .text.bar
+ nop
+ .type bar, %function
+bar:
+ nop