* gas/mmix/weak1.d, gas/mmix/weak1.d: New test.
authorHans-Peter Nilsson <hp@axis.com>
Thu, 14 Mar 2002 10:05:25 +0000 (10:05 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Thu, 14 Mar 2002 10:05:25 +0000 (10:05 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/mmix/weak1.d [new file with mode: 0644]
gas/testsuite/gas/mmix/weak1.s [new file with mode: 0644]

index 010bbd80aa324d297107a49fc3f27bbccdedf0ac..af331951b242971440f4206a19ae425063ca914a 100644 (file)
@@ -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 (file)
index 0000000..d0696e0
--- /dev/null
@@ -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 (file)
index 0000000..f5dbefb
--- /dev/null
@@ -0,0 +1,7 @@
+       .weak foo
+foo:
+       POP 1,0
+       .global main
+main:
+       PUSHJ $15,foo
+       .quad foo