* Re:lib.a
@ 2003-11-03 22:22 David Kesselring
2003-11-04 0:50 ` lib.a Ralf Baechle
0 siblings, 1 reply; 4+ messages in thread
From: David Kesselring @ 2003-11-03 22:22 UTC (permalink / raw)
To: linux-mips
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?
David Kesselring
Atmel MMC
dkesselr@mmc.atmel.com
919-462-6587
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: lib.a
2003-11-03 22:22 David Kesselring
@ 2003-11-04 0:50 ` Ralf Baechle
2003-11-04 9:34 ` lib.a Geert Uytterhoeven
0 siblings, 1 reply; 4+ messages in thread
From: Ralf Baechle @ 2003-11-04 0:50 UTC (permalink / raw)
To: David Kesselring; +Cc: linux-mips
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.
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: lib.a
2003-11-04 0:50 ` lib.a Ralf Baechle
@ 2003-11-04 9:34 ` Geert Uytterhoeven
0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2003-11-04 9:34 UTC (permalink / raw)
To: Ralf Baechle; +Cc: David Kesselring, Linux/MIPS Development
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* lib.a
@ 2003-11-03 18:53 David Kesselring
0 siblings, 0 replies; 4+ messages in thread
From: David Kesselring @ 2003-11-03 18:53 UTC (permalink / raw)
To: linux-mips
For the mips architecture, it seems like arch/mips/lib/lib.a is linked in
and not lib/lib.a. For example on menuconfig when zlib* is selected, it is
not included in the final link. Is my understanding correct? Specifically,
2.4.23 has a firmware library (from lib/) that I would like to use with a
driver but regardless of my .config it is not being linked.
Thanks for your help.
David Kesselring
Atmel MMC
dkesselr@mmc.atmel.com
919-462-6587
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-11-04 9:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-03 22:22 David Kesselring
2003-11-04 0:50 ` lib.a Ralf Baechle
2003-11-04 9:34 ` lib.a Geert Uytterhoeven
-- strict thread matches above, loose matches on Subject: below --
2003-11-03 18:53 lib.a David Kesselring
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.