<div dir="ltr">If you are looking at this then you&#39;ll want to pull my branch again as I just pushed a few fixes to make ARM binaries actually work.<div><br></div><div>Also, a prototype &quot;is this binary stripped&quot; function would be:</div><div><br></div><div><div>elf = oe.elf.Elf.from_file(sys.argv[1])<br></div><div>for h in elf.header.section_headers:</div><div>    if h.type == oe.elf.Elf.ShType.progbits and <a href="http://h.name">h.name</a> == &quot;.debug_info&quot;:</div><div>        return False</div><div>return True</div></div><div><br></div><div>If you&#39;re not working on this yet, please say, as I&#39;ll probably have a look this week.</div><div><br></div><div>Ross</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 December 2017 at 15:33, Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="">On 4 December 2017 at 15:30, Olof Johansson <span dir="ltr">&lt;<a href="mailto:olof.johansson@axis.com" target="_blank">olof.johansson@axis.com</a>&gt;</span> wrote:<br></span><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 17-12-04 12:36 +0000, Burton, Ross wrote:<br>
&gt; You might be interested in some of the patches I&#39;ve got sitting in<br>
&gt; <a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=ross/mutb" rel="noreferrer" target="_blank">http://git.yoctoproject.org/cg<wbr>it/cgit.cgi/poky-contrib/log/?<wbr>h=ross/mutb</a><br>
&gt; specifically around &quot;Add new ELF parser&quot;.  This adds a fully-featured<br>
&gt; Python ELF parser to lib/oe which could be used to inspect the binaries the<br>
&gt; way file does, but without having to call and parse the output of file.<br>
<br>
</span>Oh, that&#39;s awesome. Please disregard v1 of my patch series, and<br>
I&#39;ll try to adapt package.bbclass and lib/oe/package.py to make<br>
use of your changes and see what happens. Thanks!<br></blockquote><div><br></div></span><div>Hopefully to get what you want out of it doesn&#39;t involve too much pain...</div><div><br></div><div>I still need to finish the series of to get it ready for merging, but I&#39;ve just pushed a new branch ross/elf to poky-contrib which has just the patches.  As I clean it up I&#39;ll force push there, so feel free to track/rebase/send improvements.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Ross </div></font></span></div></div></div>
</blockquote></div><br></div>