aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2002-03-14 10:05:25 +0000
committerHans-Peter Nilsson <hp@axis.com>2002-03-14 10:05:25 +0000
commitc5096a3c51e518393452b94e9d04757f00935266 (patch)
tree650d2d7e7d0a22e2aeb5a69c89496f6e46ee2fe3 /gas/testsuite
parent2be11e7eccaec6de8a45797741d2331181819a95 (diff)
downloadgdb-c5096a3c51e518393452b94e9d04757f00935266.zip
gdb-c5096a3c51e518393452b94e9d04757f00935266.tar.gz
gdb-c5096a3c51e518393452b94e9d04757f00935266.tar.bz2
* gas/mmix/weak1.d, gas/mmix/weak1.d: New test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog4
-rw-r--r--gas/testsuite/gas/mmix/weak1.d23
-rw-r--r--gas/testsuite/gas/mmix/weak1.s7
3 files changed, 34 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 010bbd8..af33195 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * gas/mmix/weak1.d, gas/mmix/weak1.d: New test.
+
2002-03-05 Paul Koning <pkoning@equallogic.com>
* gas/pdp11/pdp11.exp: New file.
diff --git a/gas/testsuite/gas/mmix/weak1.d b/gas/testsuite/gas/mmix/weak1.d
new file mode 100644
index 0000000..d0696e0
--- /dev/null
+++ b/gas/testsuite/gas/mmix/weak1.d
@@ -0,0 +1,23 @@
+#as: -x
+#objdump: -str
+
+# Relaxation thought a weak symbol was within reach.
+
+.*: file format elf64-mmix
+
+SYMBOL TABLE:
+0+ l d \.text 0+
+0+ l d \.data 0+
+0+ l d \.bss 0+
+0+ w \.text 0+ foo
+0+4 g \.text 0+ main
+
+RELOCATION RECORDS FOR \[\.text\]:
+OFFSET TYPE VALUE
+0+18 R_MMIX_64 foo
+0+4 R_MMIX_PUSHJ foo
+
+Contents of section \.text:
+ 0000 f8010000 f20f0000 fd000000 fd000000 .*
+ 0010 fd000000 fd000000 00000000 00000000 .*
+Contents of section \.data:
diff --git a/gas/testsuite/gas/mmix/weak1.s b/gas/testsuite/gas/mmix/weak1.s
new file mode 100644
index 0000000..f5dbefb
--- /dev/null
+++ b/gas/testsuite/gas/mmix/weak1.s
@@ -0,0 +1,7 @@
+ .weak foo
+foo:
+ POP 1,0
+ .global main
+main:
+ PUSHJ $15,foo
+ .quad foo