From: Valdis.Kletnieks@vt.edu (Valdis.Kletnieks at vt.edu) Date: Sat, 02 Mar 2013 12:45:39 -0500 Subject: Why vmlinux.bin are changed from raw image to elf for x86 ? In-Reply-To: Your message of "Sat, 02 Mar 2013 16:36:43 +0800." <3196c13f.6b42.13d2a3efa19.Coremail.jackyclivia@163.com> References: <372b1e2d.626e.13d2a185fd9.Coremail.jackyclivia@163.com> <3196c13f.6b42.13d2a3efa19.Coremail.jackyclivia@163.com> Message-ID: <165998.1362246339@turing-police.cc.vt.edu> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Sat, 02 Mar 2013 16:36:43 +0800, Jacky said: > The "-O binary" is removed. And I don't find any changelog. A quick course on researching kernel development history... Step 1: 'git blame arch/x86/boot/compressed/Maekfile' That gives us the line: 099e1377 (Ian Campbell 2008-02-13 20:54:58 +0000 42) OBJCOPYFLAGS_vmlinux.bin := -R .comment -S (Fortunately, this is the commit we wanted - figuring out how to get git to trace through the history if a subsequent commit had touched this line is left as an exercise for the reader :) Step 2: 'git log 099e1377' gives us this: commit 099e1377269a47ed30a00ee131001988e5bcaa9c Author: Ian Campbell Date: Wed Feb 13 20:54:58 200 x86: use ELF format in compressed images. Signed-off-by: Ian Campbell Cc: Ian Campbell Cc: Jeremy Fitzhardinge Cc: virtualization at lists.linux-foundation.org Cc: H. Peter Anvin Cc: Jeremy Fitzhardinge Cc: virtualization at lists.linux-foundation.org Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner The one-liner summary matches exactly with what we're interested in, so it's quite likely the commit we care about. Step 3: That's a pretty damned sparse Changelog. Fortunately, that's enough to feed to Google, and in about 25 seconds, I find this message: http://www.gossamer-threads.com/lists/linux/kernel/902407 [PATCHv3 1/3] x86: use ELF format in compressed images. This allows other boot loaders such as the Xen domain builder the opportunity to extract the ELF file. So there's the complete patch, including the things it touched besides the Makefile, plus the reason for doing it. Have a nice day.. ;) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 865 bytes Desc: not available Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130302/116ce1ed/attachment.bin