x86 kernel build chain - how bzImage gets created

Graeme Russ graeme.russ at gmail.com
Tue Nov 22 06:06:09 EST 2011


Hi Daniel

On 22/11/11 21:59, Daniel Baluta wrote:
> On Tue, Nov 22, 2011 at 12:46 PM, Graeme Russ <graeme.russ at gmail.com> wrote:
>> Hi All,
>>
>> Hopefully this will help demystify the build process
>>
>> Notation:
>> <primary input file> (<file size in bytes>)
>>  |
>>  + <additional input file>
>>  |
>>  * <command>
>>  |
>>  \-> <output file> (<file size in bytes>)
>>
>> The file sizes are arbitrary and are based on the current configuration
>> options I have set for a small kernel. They are simply there to illustrate
>> the relative differences in file sizes.
> 
> Great! Thanks for sharing this.

Your welcome :)

> 
>> Note that vmlinux.o is not used to generate bzImage but I've included it
>> for completeness
> 
> [...]
>> + net/built-in.o
>> |
>> * ld -m elf_i386 -r -o vmlinux.o
>> |
>> \->vmlinux.o (2,889,050)
> 
> What is the purpose of vmlinux.o then?

I don't know - Anyone?

Regards,

Graeme



More information about the Kernelnewbies mailing list