On Thu, 2005-03-03 at 09:30 -0800, chromatic wrote: > Adding -mregnames to the as call makes it compile for me, but it > apparently doesn't export the symbol properly:
Ah, here it is. For whatever reason, it doesn't strip the leading underscore from the symbol name. (GNU as allows symbols to start with word characters, but I don't see a flag to remove a prefix.) Compiling the file manually with the -mregnames flag and applying this patch fixes the build for me. -- c
Index: jit/ppc/asm.s =================================================================== RCS file: /cvs/public/parrot/jit/ppc/asm.s,v retrieving revision 1.1 diff -u -u -r1.1 asm.s --- jit/ppc/asm.s 3 Mar 2005 10:55:37 -0000 1.1 +++ jit/ppc/asm.s 3 Mar 2005 17:33:12 -0000 @@ -1,7 +1,7 @@ .text .align 12 - .globl _Parrot_ppc_jit_restore_nonvolatile_registers -_Parrot_ppc_jit_restore_nonvolatile_registers: + .globl Parrot_ppc_jit_restore_nonvolatile_registers +Parrot_ppc_jit_restore_nonvolatile_registers: lfd f14,-84(r1) lfd f15,-92(r1)