<div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">11.10.2018, 17:48, "Carter Cheng" <cartercheng@gmail.com>:</div><blockquote xmlns="http://www.w3.org/1999/xhtml" type="cite"><div><div>Hi,</div><div> </div></div></blockquote><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">Hello,</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">I want to ask pardon me and have you ever compiled a linux kernel?</div><div xmlns="http://www.w3.org/1999/xhtml"><div>In my opinion you should first examine gcc ld and make process :)</div><div> </div><div>The elf format executable format and  the process after compiling the c code.</div><div>Please read:</div><div> </div><div><a href="http://www.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html">http://www.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html</a></div><div> </div><div>keep calm and go step by step and continue to learn c, gcc, ld, make, c code compile to machine code.</div><div> </div><div>Ozgur</div><div> </div><div> </div><div> </div></div><blockquote xmlns="http://www.w3.org/1999/xhtml" type="cite"><div>There are some detaills about the current procedures for linking the kernel that I am unfamiliar with. My understanding is that GCC and Clang both have the ability to do link time analysis and transforms on code but is it possible to write link time passes that will run on the kernel since the linking phase is a bit different (i.e. doesnt produce an ELF file)?<div> </div><div>Regards,</div><div> </div><div>Carter.</div></div>,<p>_______________________________________________<br />Kernelnewbies mailing list<br /><a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br /><a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a></p></blockquote>