<div dir="ltr"><br><div class="gmail_quote">Small mistake, this should go to the list.<br><br><br><div dir="ltr">Joerg<div><br></div><div>Here is how to contruct ELF files. Not for you so much, but whoever comes after us:</div><div><br></div><div><a href="http://sourceforge.net/projects/elftoolchain/files/Documentation/libelf-by-example/20120308/" target="_blank">http://sourceforge.net/projects/elftoolchain/files/Documentation/libelf-by-example/20120308/</a><br></div><div><br></div><div>download the pdf.</div><div><br></div><div>the issue it appears is not bitrot. It is a student :) and a very convenient unix box for bootstrapping, that we now dont have.</div><div>Das ist eine von die Unschönheiten, wie der Borchert damals sagte.</div><div>The oberon object files are more or less rightly disassembled, but the fault is in the building of the ascii tables: there is exactly one name in the elf file.</div><div>In any case: it is the usual building of C fairy castles with lots of pointers pointing and offsets offsetting and drummers drumming and so on. </div><div>And then at the end libelf graciously writes the fairy castles to disk for us. So plenty of room for mistakes and no good way of debugging afterwards, unless you break into the kernel source files.</div><div><br></div><div>So I think I will perhaps rebuild the fairy castles 'working bit' by 'working bit' and write to disk and test after each added bit, to see what is produced. It is maddening.</div><div><br></div><div>cheers,</div><div><br></div><div>j.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Oct 15, 2015 at 9:35 AM, Jörg <span dir="ltr"><<a href="mailto:joerg.straube@iaeth.ch" target="_blank">joerg.straube@iaeth.ch</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="DE-CH" link="blue" vlink="purple"><div><p class="MsoNormal"><font size="2" face="Trebuchet MS"><span lang="EN-US" style="font-size:11.0pt;font-family:"Trebuchet MS","sans-serif"">Jan <u></u><u></u></span></font></p><p><u></u><font size="2" face="Trebuchet MS"><span lang="EN-US" style="font-size:11.0pt;font-family:"Trebuchet MS","sans-serif""><span>1)<font size="1" face="Times New Roman"><span style="font:7.0pt "Times New Roman""> </span></font></span></span></font><u></u><font size="2" face="Trebuchet MS"><span lang="EN-US" style="font-size:11.0pt;font-family:"Trebuchet MS","sans-serif"">Ulm: No. I don’t have time to try.<u></u><u></u></span></font></p><p><u></u><font size="2" face="Trebuchet MS"><span lang="EN-US" style="font-size:11.0pt;font-family:"Trebuchet MS","sans-serif""><span>2)<font size="1" face="Times New Roman"><span style="font:7.0pt "Times New Roman""> </span></font></span></span></font><u></u><font size="2" face="Trebuchet MS"><span lang="EN-US" style="font-size:11.0pt;font-family:"Trebuchet MS","sans-serif"">Pattern matching: If you are interested I can send you my matching procedure </span></font><font size="2" face="Wingdings"><span lang="EN-US" style="font-size:11.0pt;font-family:Wingdings">J</span></font><font size="2" face="Trebuchet MS"><span lang="EN-US" style="font-size:11.0pt;font-family:"Trebuchet MS","sans-serif""><u></u><u></u></span></font></p><p class="MsoNormal"><font size="2" face="Trebuchet MS"><span lang="EN-US" style="font-size:11.0pt;font-family:"Trebuchet MS","sans-serif"">br<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2" face="Trebuchet MS"><span lang="EN-US" style="font-size:11.0pt;font-family:"Trebuchet MS","sans-serif"">Jörg <u></u><u></u></span></font></p><p class="MsoNormal"><font size="2" face="Trebuchet MS"><span lang="EN-US" style="font-size:11.0pt;font-family:"Trebuchet MS","sans-serif""><u></u> <u></u></span></font></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Oberon [mailto:<a href="mailto:oberon-bounces@lists.inf.ethz.ch" target="_blank">oberon-bounces@lists.inf.ethz.ch</a>] <b><span style="font-weight:bold">On Behalf Of </span></b>Jan de Kruyf<br><b><span style="font-weight:bold">Sent:</span></b> Mittwoch, 14. Oktober 2015 11:10<br><b><span style="font-weight:bold">To:</span></b> ETH Oberon and related systems<br><b><span style="font-weight:bold">Subject:</span></b> Re: [Oberon] Ulm Oberon<u></u><u></u></span></font></p></div><div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Got it. Thanks. <u></u><u></u></span></font></p><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">I like it for the excellent doku and it comes nearest to a linux programming environment <u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">and also I did find the Borchert dissertation about the library design.<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">But he was not scared of adding layers of German complexity.<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Did you get that system to go Joerg?<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">jan.<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">On Wed, Oct 14, 2015 at 8:34 AM, Jörg Straube <<a href="mailto:joerg.straube@iaeth.ch" target="_blank">joerg.straube@iaeth.ch</a>> wrote:<u></u><u></u></span></font></p><div><div><p class="MsoNormal"><font size="3" face="Monaco"><span style="font-size:12.0pt;font-family:"Monaco","serif"">Look at „I386OberonTransportableObjectFormat.om“<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Monaco"><span style="font-size:12.0pt;font-family:"Monaco","serif""><u></u> <u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Monaco"><span style="font-size:12.0pt;font-family:"Monaco","serif"">Jörg<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Monaco"><span style="font-size:12.0pt;font-family:"Monaco","serif""><u></u> <u></u></span></font></p></div><div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Am 13.10.2015 um 21:59 schrieb Jan de Kruyf <<a href="mailto:jan.de.kruyf@gmail.com" target="_blank">jan.de.kruyf@gmail.com</a>>:<u></u><u></u></span></font></p></div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div></div><div><div><div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Hallo,<u></u><u></u></span></font></p><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Has anybody got any idea where to find the spec for the 'tof' intermediate file that the compiler produces?<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">The tof2elf program has bitrotted, the 'elf' it produces is corrupt according to 'ar' , 'nm' and 'ld'.<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">None of the present day elf formats (as in nm) work on it. And readelf complains about corrupt Section Header names.<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">There is not much to the program but it would be handy to have the file spec.<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">It would be nice to resurrect that old beast.<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">cheers,<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">j.<u></u><u></u></span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div></div></div></div><p class="MsoNormal"><span><font size="3" color="#888888" face="Times New Roman"><span style="font-size:12.0pt;color:#888888">--</span></font></span><font color="#888888"><span style="color:#888888"><br><span><a href="mailto:Oberon@lists.inf.ethz.ch" target="_blank">Oberon@lists.inf.ethz.ch</a> mailing list for ETH Oberon and related systems</span><br><span><a href="https://lists.inf.ethz.ch/mailman/listinfo/oberon" target="_blank">https://lists.inf.ethz.ch/mailman/listinfo/oberon</a></span></span></font><u></u><u></u></p></div></blockquote></div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div><p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>--<br><a href="mailto:Oberon@lists.inf.ethz.ch" target="_blank">Oberon@lists.inf.ethz.ch</a> mailing list for ETH Oberon and related systems<br><a href="https://lists.inf.ethz.ch/mailman/listinfo/oberon" target="_blank">https://lists.inf.ethz.ch/mailman/listinfo/oberon</a><u></u><u></u></span></font></p></div><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p></div></div></div></div></div></blockquote></div></div></div><br></div>
</div><br></div>