Why is -O binary used in kbuild ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 
	I am going through the kbuild process and found that at some stage after 
building vmlinux inside "/usr/src/linux/" somewhere kbuild uses objcopy to build 
bzImage inside /usr/src/linux/arch/i386/boot/compressed :- 
 
1. objcopy -O binary -R .note -R .comment /usr/src/linux/vmlinux vmlinux.bin 
 
Here, kbuild removes .note and .comment sections from vmlinux before making 
vmlinux.bin. 
Could anyone please explain why we are creating binary image of vmlinux here. 
Basically, -O binary option creates a raw binary file which contains the memory 
dumps of the contents of the input object files. What is the purpose behind this ? 
objcopy with -O binary has been used in many places in kbuild process. Anyone 
please help me... 
 
Thanks in advance. 
Sumit. 

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux