Re: PATCH 2.3.28: drivers/net/Makefile update

Jeff Garzik (jgarzik@mandrakesoft.com)
Sat, 13 Nov 1999 11:01:21 +0000


Peter Samuelson wrote:
>
> [Jeff Garzik]
> > Long term, it would be nice to output *.a files again. How can ld be
> > told it needs to link those initcall-only modules into vmlinux?
>
> Does "--whole-archive" work or does it have unwanted side effects?

The whole idea behind *.a is to be able to remove dead objects, which is
totally opposite of --whole-archive.

The problem lies in that drivers which use module_init() can be valid,
linkable objects, with no external references at all. There needs to be
some way to tell the linker to include all objects which have
module_init() in them.

-- 
Jeff Garzik              | Just once, I wish we would encounter
Building 1024            | an alien menace that wasn't immune to
MandrakeSoft, Inc.       | bullets.   -- The Brigadier, "Dr. Who"

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/