Re: PATCH 2.3.28: drivers/net/Makefile update

David Woodhouse (David.Woodhouse@mvhi.com)
Mon, 15 Nov 1999 17:23:06 +0000


jgarzik@mandrakesoft.com said:
> 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.

But the Makefiles are not supposed to even compile the objects which aren't
required, so what's wrong with --whole-archive?

If there's an object in the archive that isn't used, then it should be
considered a bug in the Makefiles, surely?

--
dwmw2

- 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/