Subject: RE: Shared library support for ARM ELF
To: 'Ben Harris' <bjh21@netbsd.org>
From: Matt Thomas <mthomas@allegronetworks.com>
List: port-arm
Date: 07/16/2001 12:52:00
> From: port-arm-owner@netbsd.org [mailto:port-arm-owner@netbsd.org]On
> Behalf Of Ben Harris
> Sent: Monday, July 16, 2001 12:04 PM
> To: Matt Thomas
> Cc: port-arm@netbsd.org; port-arm32@netbsd.org; port-arm26@netbsd.org
> Subject: Re: Shared library support for ARM ELF
> 
> 
> On Sun, 15 Jul 2001, Matt Thomas wrote:
> 
> > This weekend, in a fit of insanity, I've implemented and
> > committed most of the pieces for ELF shared library support
> > on ARM.  I have no idea whether it works on arm26 but I'd
> > to see if someone (Ben?) can confirm that.
> 
> Seems to work, from my minimal testing.

Cool.

> > ftp://ftp.netbsd.org/pub/incoming/matt/armelf.tgz
> >
> > contains a small sampling of ARM programs (sh, ps, md5)
> > plus libc.so and ld.elf_so.  Just untar it and chroot into
> > it is the easiest way to verify it (which is why I included
> > sh).
> 
> Actually, since sh and ps are in /bin, only md5 is dynamically-linked.
> Still works, though.  Any chance of ldd, so I can convince myself more
> thoroughly?

ftp://ftp.netbsd.org/pub/incoming/matt/armelf2.tgz

is a full set of library and executables to test out.

> > Note that to use it you will need to rebuild your kernel with
> > EXEC_ELF32.  Also, a few new sysctl's were added to better
> > support the comming shared arm (arm32+arm26) environment so
> > I'd appreciate it if you can try the ps and see if it does the
> > right thing for you (since I had to modify libkvm a bit).
> 
> Seems to work, even though I haven't updated my kernel.

I added some backwards compatibility in case they weren't there.

-- 
Matt Thomas                                 email:
mthomas@allegronetworks.com
NetBSD Mucker                           witticism: <under peer review>
Allegro Networks
San Jose, CA