Subject: Re: CVS commit: src/share/mk
To: Bill Studenmund <wrstuden@netbsd.org>
From: Matt Thomas <matt@3am-software.com>
List: source-changes
Date: 02/25/2003 21:52:03
At 01:50 PM 2/25/2003, Bill Studenmund wrote:
>On Wed, 19 Feb 2003, Matt Thomas wrote:
>
> >
> > Module Name:  src
> > Committed By: matt
> > Date:         Wed Feb 19 19:03:41 UTC 2003
> >
> > Modified Files:
> >       src/share/mk: bsd.kmod.mk
> >
> > Log Message:
> > When making a LKM for powerpc, add function trampolines to undefined
> > functions.  This makes LKMs functional for powerpc.
>
>Cool!
>
>But what we really need is for the linker to be able to do this
>automatically. While this change will help with lkms, (unless I
>misunderstand it) it won't help with large programs, which will face the
>same problem.

I agree.  But I'm not going to do it.  elf32-ppc.c scares me. :)

>While it's unlikely we'll have programs that big, they do exist. :-)
>
>Also, for cross-lkm calls, we'll end up using the trampolines, won't we?
>While they are uncommon now, if we went with an aggressive lkm'd kernel,
>it might be a performance impact.

It's no slower than going through a PLT. :)


-- 
Matt Thomas               Internet:   matt@3am-software.com
3am Software Foundry      WWW URL:    http://www.3am-software.com/bio/matt/
Cupertino, CA             Disclaimer: I avow all knowledge of this message