<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 23, 2017 at 1:48 PM, George Rimar <span dir="ltr"><<a href="mailto:grimar@accesssoftek.com" target="_blank">grimar@accesssoftek.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div style="color:rgb(33,33,33)">
<div>
<div class="gmail_extra"><span>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><span style="color:rgb(33,33,33);font-size:12pt">> Is there any way to rewrite that part of the linker script in the Linux kernel so that the kernel doesn't depend on this
 dark-corner behavior of the bfd linker? If > removing `-m` from Makefile which build that particular file fixes the issue, I'd definitely do that.</span><br>
</p>
</span><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;color:rgb(33,33,33)">
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">That probably will work, as well as changing to -m <span style="font-family:"Segoe UI","Segoe WP","Segoe UI WPC",Tahoma,Arial,sans-serif;font-size:13.3333px;background-color:rgb(255,255,255)">elf_i386</span>. But then that
 means we have bfd, gold and LLD all with different behavior.<br>
</div>
<div class="gmail_extra">I am not sure why do you want this incompatibility when we can just ignore -m if have any object files ?<br></div></div></div></div></div></div></blockquote><div><br></div><div>So let's say gold ignores `-m` if at least one .o is present on command line (I did not verify that myself.) It feels weird, doesn't it? Why should we ignore `-m` if an object file is given? If that's the correct behavior for some reason, why don't we completely ignore `-m` even when all object files are in static archives?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif"><div style="color:rgb(33,33,33)"><div><div class="gmail_extra"><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;color:rgb(33,33,33)">
<div class="gmail_extra">(currently patch do override of -m, but I think I can update it to "check that -m is valid value and ignore it if type was inferred from .o"<span style="font-size:12pt">)</span></div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Current way that looks duplicates gold behavior seems logical enough and does not require fix of side applications.<span class="m_-161451195609173821HOEnZb"><font color="#888888"><br>
</font></span></div><span class="m_-161451195609173821HOEnZb"><font color="#888888">
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">
<div class="gmail_quote">George.​<br>
</div>
</div>
</font></span></div>
<br>
</div>
</div>
</div>
</div>

</blockquote></div><br></div></div>