<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 24, 2019 at 2:14 PM Karan, Cem F CIV USARMY CCDC ARL (USA) via License-discuss <<a href="mailto:license-discuss@lists.opensource.org">license-discuss@lists.opensource.org</a>> wrote:<br></div><div dir="ltr" class="gmail_attr"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This is actually starting to sound like an interesting/good idea.  For GPL compliance, you can't get much better than having the source artifacts stored with the binary itself.  So, the question is, what is the easiest way to test storing all artifacts within a binary?  I did an extremely fast perusal of what 'apt search' would  give me for editing ELF files, but haven't installed or tested anything.  Is there a command-line tool that already exists that would let us store arbitrary data in an ELF binary?  I'd like to see how far we can push the concept...<br></blockquote><div><br></div><div>ELF format is divided into sections, and NOTE sections contain arbitrary key-value pairs, where the value can be up to 2 GB.  There seems to be no utility for adding and removing these, but there is no problem in principle: the ELF format is well documented, and a tool (called elftar, perhaps) to add, remove, and extract such chunks would be straightforward.  It would just be necessary to establish a convention about which keys correspond to source files.</div></div></div>