--- /Users/stranche/Documents/devel/MPlayer-1.0pre8/loader/wrapper.S	2006-06-11 20:35:46.000000000 +0200
+++ wrapper.S	2006-06-21 00:38:04.000000000 +0200
@@ -1,27 +1,27 @@
-.section .data
+.data
 .globl caller_return
 caller_return:
 	.long 0
-.globl report_entry
-report_entry:
+.globl _report_entry
+_report_entry:
 	.long null_call
-.globl report_ret
-report_ret:	
+.globl _report_ret
+_report_ret:	
 	.long null_call
-.global wrapper_target
-wrapper_target:	
+.globl _wrapper_target
+_wrapper_target:	
 	.long null_call
 
-.section .text
+.text
 .globl null_call
-	.type null_call, @function
-	.balign 16,0x90
+#	.type null_call, @function
+	.p2align 4,0x90
 null_call:
 	ret
-.globl wrapper
-	.type wrapper, @function
-	.balign 16,0x90
-wrapper:
+.globl _wrapper
+#	.type wrapper, @function
+	.p2align 4,0x90
+_wrapper:
 	pusha			# store registers (EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI) 
 	pushf			# store flags
 	
@@ -39,7 +39,7 @@
 	push %eax
 	push %edx
 	
-	call *report_entry	# report entry
+	call *_report_entry	# report entry
 	
 	test %eax, %eax
 	jnz .Ldone
@@ -51,9 +51,9 @@
 	popl caller_return	# switch return addresses
 	pushl $.Lwrapper_return 
 	
-	jmp *wrapper_target	# wrapper_target should return at .Lwrapper_return
+	jmp *_wrapper_target	# wrapper_target should return at .Lwrapper_return
 
-	.balign 16, 0x90
+	.p2align 4, 0x90
 .Lwrapper_return:	
 	pushl caller_return	# restore the original return address
 	pusha			# more for reference sake here
@@ -73,7 +73,7 @@
 	push %eax
 	push %edx
 
-	call *report_ret	# report the return information (same args)
+	call *_report_ret	# report the return information (same args)
 .Ldone:	
 
 	leave
