<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 29, 2013 at 3:27 AM, Laurentiu Palcu <span dir="ltr"><<a href="mailto:laurentiu.palcu@intel.com" target="_blank">laurentiu.palcu@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Chris,<br>
<div class="im"><br>
On Mon, Oct 28, 2013 at 07:54:51PM -0400, Chris Patterson wrote:<br>
><br>
> I'm not terribly familiar with the nativesdk, and (foolishly) neglected to test<br>
> that. However, I looked into it, and it looks like the relocatable_sdk.patch<br>
> affects a linker script that is no longer available. I dropped the patch and<br>
> tested installing an oe-core sdk sysroot (via bitbake -c populate_sdk<br>
> core-image-minimal) and qemu appears to work fine from within the sdk<br>
> environment.<br>
><br>
> I'm open to suggestions for further testing this upgrade (particularly a case<br>
> to cover what relocatable_sdk.patch was originally intended to resolve). I'm<br>
> certainly not the expert here, but am willing to help out.<br>
><br>
</div>To test this particular case, build meta-toolchain and install it in a<br>
different location than the default one. Then, just do a 'readelf -s"<br>
on any qemu binary and make sure the .interp section has a size of 0x1000 bytes.<br>
<br>
If it does, then it's ok to drop the patch. That patch was needed<br>
because qemu happened to use their own linker scripts and, in order to<br>
have the SDK relocatable, we needed to reseve space in the .interp<br>
section to squeeze the new path.</blockquote><div><br></div><div>Thanks Laurentiu - I did validate that the interp section looks to be 0x1000 bytes for the qemu-* binaries:</div><div><br></div><div>$ /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/qemu-system-arm --version</div>
<div>QEMU emulator version 1.6.1, Copyright (c) 2003-2008 Fabrice Bellard</div><div><br></div><div>$ readelf -S /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/qemu-system-arm </div><div>There are 29 section headers, starting at offset 0x5a14b8:</div>
<div><br></div><div>Section Headers:</div><div> [Nr] Name Type Address Offset</div><div> Size EntSize Flags Link Info Align</div><div> [ 0] NULL 0000000000000000 00000000</div>
<div> 0000000000000000 0000000000000000 0 0 0</div><div> [ 1] .interp PROGBITS 0000000000000270 00000270</div><div> 0000000000001000 0000000000000000 A 0 0 1</div>
<div> [ 2] .note.ABI-tag NOTE 0000000000001270 00001270</div><div> 0000000000000020 0000000000000000 A 0 0 4</div><div> [ 3] .note.gnu.build-i NOTE 0000000000001290 00001290</div>
<div>...</div><div><br></div><div>If anyone has any other suggestions to test, I will gladly attempt them before posting a v2.</div><div><br></div><div>Cheers!</div><div>-Chris</div></div></div></div>