Using OSLib in relocatable modules

David Bryan D.J.Bryan at cranfield.ac.uk
Sat Apr 7 00:46:41 BST 2001


Simon Callan wrote:

> In message <644a22674a.fn952389 at dynamic-047-063.resnet.cranfield.ac.uk>
>           David Bryan <D.J.Bryan at cranfield.ac.uk> wrote:
> 
> > Simon Callan wrote:
> > 
> > > As far as I am aware, there is no RM version of OSLib, and I was
> > > wondering what is likely to be the best solution to this.
> > 
> > The veneers for X SWIs work in SVC mode.
> 
> I wasn't really thinking of SVC mode, as the stuff I am playing with
> is going in the runnable bit, and so will be run in USR mode.
> 
> As it's a module, the static data has to be relocatable at run-time
> which means all data access is register relative. Presumably, if OSLib
> does not have any static data, this would make no difference.

Sorry, as the functions in OSLib are so simple, this didn't cross
my mind.  There is no static data.  The only access to memory is
use of the stack, and through any pointers passed to functions.

-- 
David Bryan




More information about the oslib-user mailing list