Re: What's the deal with building intermediate .o vs .a files?

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Fri Apr 07 2000 - 15:32:38 EST


Graham Stoney wrote:
> I've noticed that a number of subdirectories in the kernel build intermediate
> object files using "ld -r", whereas others build archives using "ar c". Can
> someone please point me to a rationale for which is the prefered behaviour?

"ld -r" is preferred, because when you use an 'ar' library, the linker
does not know to pull in special "initcall" code sections, as there is
no hard symbol reference to initcall code sections.

-- 
Jeff Garzik              | Nothing cures insomnia like the
Building 1024            | realization that it's time to get up.
MandrakeSoft, Inc.       |        -- random fortune

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



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:19 EST