Subject: Re: Shared library support for ARM ELF
To: Matt Thomas <>
From: Ben Harris <>
List: port-arm
Date: 07/22/2001 14:47:39
On Sat, 21 Jul 2001, Matt Thomas wrote:

> At 11:20 AM 7/20/2001 +0100, Ben Harris wrote:
> >MASK_RETURN_ADDR needs to be changed to generate code to check what mode
> >the CPU is in at run-time and pick the correct mask appropriately.
> >sys/arch/arm/include/profile.h demonstrates how to do this, but it needs
> >to be converted to a form GCC can understand.
> Is there any reason why this has to be done dynamically?  Why can't crt0.o
> calculate the mask and store it somewhere so that gcc generated code can
> reference it?  (But that gets nasty for PIC code.)

There's no reason why you couldn't do it statically if you really wanted
to, but I suspect this would produce slower and larger code than doing it
on the fly.

Ben Harris                                                   <>
Portmaster, NetBSD/arm26               <URL:>