<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><span style="color: rgb(33, 33, 33); font-size: 12pt;">>At this point I'm able to link Linux kernel with LLD and objcopy doen't give me any errors.</span><br>
</p>
<div style="color: rgb(33, 33, 33);">
<div>
<div>> </div>
<div>>The versions are:</div>
<div>> </div>
<div>>Linux 4.10.0-rc5 (+ applied the patch from my previous message)</div>
<div>>LLD 5.0.0 (https://github.com/llvm-mirror/lld db83a5cc3968b3aac1dbe3270190bd3282862e74) (+ applied D28612)</div>
<div>>GNU objcopy (GNU Binutils) 2.27</div>
<div>> <br>
</div>
<div>>The problem is that the resulting kernel doesn't boot. Does anybody have any suggestions on how to debug it or any guesses what did go wrong while linking?</div>
<div>> </div>
<div>>Regards,</div>
<div>>Dmitry<br>
</div>
<div><br>
</div>
<div>It should not boot atm, I believe.<br>
I mentioned earlier, LLD currently generates wrong output for scripts like:<br>
</div>
<div><br>
</div>
<div>
<pre class="remarkup-code" style="margin-top: 0px; margin-bottom: 0px; padding: 12px; border: 0px; background: rgba(71, 87, 120, 0.0784314); overflow: auto; border-radius: 3px; white-space: pre-wrap; font-stretch: normal; font-size: 12px; line-height: 15px; font-family: Menlo, Consolas, Monaco, monospace;">.rodata : {
*(.rodata)
*(.rodata.*)
. = ALIGN(16);
video_cards = .;
*(.videocards)
video_cards_end = .;<br></pre>
<br>
</div>
<div>That is sample from kernel realmode script. We produce wrong values for video_cards/video_cards_end.<br>
</div>
<div>Reduced sample is D29217, and thread with possible patch for that is D27415 which is under discussions now.<br>
</div>
<div>(Though there are also probably can be other issues, but that one is obvious atm).<br>
</div>
<div><br>
</div>
<div>I have a question also. You added <span style="font-family: "Segoe UI", "Segoe UI Web Regular", "Segoe UI Symbol", Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);">-m elf_i386 </span>to workaround
emulation conflict issue in LLD, do you know<br>
</div>
<div>does output produced by BFD boot fine after that change ?<br>
</div>
<div><br>
</div>
<div>George.<br>
</div>
</div>
</div>
</body>
</html>