[Mono-bugs] [Bug 59008][Wis] New - PowerPC --aot option generates garbage assembler
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 25 May 2004 00:13:08 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by pcbeard@mac.com.
http://bugzilla.ximian.com/show_bug.cgi?id=59008
--- shadow/59008 2004-05-25 00:13:08.000000000 -0400
+++ shadow/59008.tmp.16136 2004-05-25 00:13:08.000000000 -0400
@@ -0,0 +1,261 @@
+Bug#: 59008
+Product: Mono: Runtime
+Version: unspecified
+OS: Mac OS X 10.3
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: pcbeard@mac.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: PowerPC --aot option generates garbage assembler
+
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+I have compiled CVS top of tree as of May 23, 2004, and when I try to use "mono --aot hello.exe"
+it fails with a long error message:
+
+Mono Ahead of Time compiler - compiling assembly /Users/pcbeard/hello.exe
+Executing the native assembler: as /var/tmp/mono_aot_eK2BH5 -o /var/tmp/
+mono_aot_eK2BH5.o
+/var/tmp/mono_aot_eK2BH5:1:Spurious digit 1.
+/var/tmp/mono_aot_eK2BH5:4:Unknown pseudo-op: .string
+/var/tmp/mono_aot_eK2BH5:4:Rest of line ignored. 1st junk character valued 34 (").
+/var/tmp/mono_aot_eK2BH5:5:Spurious digit 1.
+/var/tmp/mono_aot_eK2BH5:8:Unknown pseudo-op: .string
+/var/tmp/mono_aot_eK2BH5:8:Rest of line ignored. 1st junk character valued 34 (").
+/var/tmp/mono_aot_eK2BH5:9:Spurious digit 1.
+/var/tmp/mono_aot_eK2BH5:12:Unknown pseudo-op: .string
+/var/tmp/mono_aot_eK2BH5:12:Rest of line ignored. 1st junk character valued 34 (").
+/var/tmp/mono_aot_eK2BH5:13:Spurious digit 0.
+/var/tmp/mono_aot_eK2BH5:14:Alignment too large: 15. assumed.
+/var/tmp/mono_aot_eK2BH5:16:Unknown pseudo-op: .type
+/var/tmp/mono_aot_eK2BH5:16:Rest of line ignored. 1st junk character valued 109 (m).
+/var/tmp/mono_aot_eK2BH5:16:Invalid mnemonic 'function'
+/var/tmp/mono_aot_eK2BH5:74:Spurious digit 1.
+/var/tmp/mono_aot_eK2BH5:85:Spurious digit 0.
+/var/tmp/mono_aot_eK2BH5:86:Alignment too large: 15. assumed.
+/var/tmp/mono_aot_eK2BH5:88:Unknown pseudo-op: .type
+/var/tmp/mono_aot_eK2BH5:88:Rest of line ignored. 1st junk character valued 109 (m).
+/var/tmp/mono_aot_eK2BH5:88:Invalid mnemonic 'function'
+/var/tmp/mono_aot_eK2BH5:146:Spurious digit 1.
+/var/tmp/mono_aot_eK2BH5:164:Spurious digit 1.
+/var/tmp/mono_aot_eK2BH5:169:Spurious digit 1.
+/var/tmp/mono_aot_eK2BH5:174:Unknown pseudo-op: .string
+/var/tmp/mono_aot_eK2BH5:174:Rest of line ignored. 1st junk character valued 34 (").
+/var/tmp/mono_aot_eK2BH5:175:Unknown pseudo-op: .string
+/var/tmp/mono_aot_eK2BH5:175:Rest of line ignored. 1st junk character valued 34 (").
+/var/tmp/mono_aot_eK2BH5:176:Spurious digit 1.
+AOT RESULT 1
+
+Steps to reproduce the problem:
+1. Compile the following program "mcs hello.cs":
+
+using System;
+public class Hello {
+ public static void Main() {
+ Console.Write("x is alive!\n");
+ }
+}
+
+2. Try to run it with "mono --aot hello.exe"
+
+
+Actual Results:
+Generates spurious assembly code (or do I need a different assembler installed?)
+
+Expected Results:
+Should produce assemblable code using the stock assembler (/usr/bin/as).
+
+How often does this happen?
+Every time.
+
+Additional Information:
+Here's the generated assembly file from the run above:
+
+.text 1
+.globl mono_assembly_guid
+mono_assembly_guid:
+ .string "206D6526-B266-4848-AC9D-66A4687DBFE7"
+.text 1
+.globl mono_aot_version
+mono_aot_version:
+ .string "7"
+.text 1
+.globl mono_aot_opt_flags
+mono_aot_opt_flags:
+ .string "67723"
+.text 0
+ .align 16
+.globl m_1
+ .type m_1,@function
+m_1:
+.byte 124
+.byte 8
+.byte 2
+.byte 166
+.byte 144
+.byte 1
+.byte 0
+.byte 8
+.byte 147
+.byte 193
+.byte 255
+.byte 252
+.byte 147
+.byte 161
+.byte 255
+.byte 248
+.byte 148
+.byte 33
+.byte 255
+.byte 176
+.byte 144
+.byte 97
+.byte 0
+.byte 48
+.byte 128
+.byte 97
+.byte 0
+.byte 48
+.byte 72
+.byte 14
+.byte 228
+.byte 179
+.byte 128
+.byte 1
+.byte 0
+.byte 88
+.byte 124
+.byte 8
+.byte 3
+.byte 166
+.byte 48
+.byte 33
+.byte 0
+.byte 80
+.byte 131
+.byte 193
+.byte 255
+.byte 252
+.byte 131
+.byte 161
+.byte 255
+.byte 248
+.byte 78
+.byte 128
+.byte 0
+.byte 32
+.text 1
+.globl m_1_p
+ .align 4
+m_1_p:
+ .long 56
+ .long 1610612736
+ .byte 12
+ .byte 28
+ .long 1
+ .long 0
+ .long 0
+.text 0
+ .align 16
+.globl m_2
+ .type m_2,@function
+m_2:
+.byte 124
+.byte 8
+.byte 2
+.byte 166
+.byte 144
+.byte 1
+.byte 0
+.byte 8
+.byte 147
+.byte 193
+.byte 255
+.byte 252
+.byte 147
+.byte 161
+.byte 255
+.byte 248
+.byte 148
+.byte 33
+.byte 255
+.byte 192
+.byte 60
+.byte 96
+.byte 0
+.byte 9
+.byte 96
+.byte 99
+.byte 239
+.byte 160
+.byte 72
+.byte 14
+.byte 247
+.byte 75
+.byte 128
+.byte 1
+.byte 0
+.byte 72
+.byte 124
+.byte 8
+.byte 3
+.byte 166
+.byte 48
+.byte 33
+.byte 0
+.byte 64
+.byte 131
+.byte 193
+.byte 255
+.byte 252
+.byte 131
+.byte 161
+.byte 255
+.byte 248
+.byte 78
+.byte 128
+.byte 0
+.byte 32
+.text 1
+ .align 8
+m_2_p_0:
+ .long 0x00000001
+ .long 0x70000001
+.globl m_2_p
+ .align 4
+m_2_p:
+ .long 56
+ .long 1610612736
+ .byte 68
+ .byte 20
+ .long m_2_p_0
+ .byte 12
+ .byte 8
+ .long 2962
+ .long 0
+ .long 0
+.text 1
+.globl mono_icall_table
+ .align 8
+mono_icall_table:
+.long 0
+.text 1
+.globl mono_image_table
+ .align 8
+mono_image_table:
+.long 2
+.string "E48BE513-D946-D34E-B4A5-91FF4B94D50C"
+.string "206D6526-B266-4848-AC9D-66A4687DBFE7"
+.text 1
+.globl mono_methods_present_table
+ .align 8
+mono_methods_present_table:
+ .long 34003