linux-mips
[Top] [All Lists]

Re: lib.a

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: lib.a
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Tue, 4 Nov 2003 10:34:25 +0100 (MET)
Cc: David Kesselring <dkesselr@mmc.atmel.com>, Linux/MIPS Development <linux-mips@linux-mips.org>
In-reply-to: <20031104005039.GA27415@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
On Tue, 4 Nov 2003, Ralf Baechle wrote:
> On Mon, Nov 03, 2003 at 05:22:42PM -0500, David Kesselring wrote:
> > The function that I am missing (release_firmware) is compiled into
> > lib/lib.a. and shows up in lib.a.flags. But it does not show up in vmlinux
> > binary or the symbol table. I couldn't see that the generic Malta make
> > file has any garbage collection on but I can't see where it is lost.
> > What I get is unresolved symbols when I insmod my driver.
> > Any ideas from the experts?
> 
> It's a library so if no reference is preceeding the library that member
> won't be linked in.

And to be usable by a module, you have to make sure the symbol is exported by
the kernel using EXPORT_SYMBOL().

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                                            -- Linus Torvalds


<Prev in Thread] Current Thread [Next in Thread>
  • lib.a, David Kesselring
    • Re:lib.a, David Kesselring
      • Re: lib.a, Ralf Baechle
        • Re: lib.a, Geert Uytterhoeven <=