Arla on MkLinux (Linux-ppc)

Artur Grabowski art at stacken.kth.se
Mon Mar 16 21:23:32 CET 1998


From: Eric Cronin <ecronin at engin.umich.edu>
Subject: Arla on MkLinux (Linux-ppc)
Date: Mon, 16 Mar 1998 14:49:31 -0500 (EST)

> I'm working on compiling arla for PPC linux, and the gcc/as I'm using
> doesn't like part of the lwp/process.S assembly file.  Specifically,
> these two lines get stripped out during the preprocess:
> 
>       mr      r1,r5
> 90:   blr                                     /* Return */
> 
> leaving the 
>       beq     90f
> 
> above it pointing to nowhere.  If I do a two-step assembly and add the
> lines back in (mr 1,5 since it won't get preprocessed again), and use as
> on that, it has no problems.  Removing the mr line itself also stops gcc
> from striping out the 90: line for some reason.  If one of you has a
> better knowledge of how gcc does its thing, I can test a new process.S
> file, or I can give you my process.ss file which works fine in as as-is.

I don't think anyone has tested this on ppc, but on common sense this diff
could fix it. Don't forget to edit the magic in lwp/Makefile.in

If you have any success with your arla on ppc or you have some patches
we will be glad to hear about that.

Index: process.S
===================================================================
RCS file: /usr/local/cvsroot/arla/lwp/process.S,v
retrieving revision 1.1.1.1
diff -u -w -u -r1.1.1.1 process.S
--- process.S   1997/10/23 16:06:27     1.1.1.1
+++ process.S   1998/03/16 20:09:48
@@ -1276,7 +1276,7 @@
       mflr    r0
       stw     r0,RETURN(r4)
       mtlr    r3
-      beq     90f                             /* No - don't muck with pointer 
+      beq     90f                          /* No - don't muck with pointer*/
 
       mr      r1,r5
 90:   blr                                     /* Return */


//art








More information about the Arla-drinkers mailing list