On Fri, 4 Mar 2005, Adrian Bunk wrote:

> > [...] So ld looks into the lib .a archive, determines that none of 
> > the symbols in that object file are needed to resolve a reference and 
> > drops the entire .o file.

> Silly question:
> What's the advantage of lib-y compared to obj-y?

Basically exactly what I quoted above -- unused object files don't get
linked into the kernel image and don't take up (wasted) space. On the
other hand, files in obj-y get linked into the kernel unconditionally.

--Kai


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to