<div dir="ltr">Hasznos lehet a readelf is. Pl:<div><br></div><div style>$ readelf -h my_powerpc_program</div><div style><div>ELF Header:</div><div> Magic: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00 </div><div> Class: ELF32</div>
<div> Data: 2's complement, big endian</div><div> Version: 1 (current)</div><div> OS/ABI: UNIX - System V</div><div> ABI Version: 0</div>
<div> Type: EXEC (Executable file)</div><div> Machine: PowerPC</div><div> Version: 0x1</div><div> Entry point address: 0x10001cb8</div>
<div> Start of program headers: 52 (bytes into file)</div><div> Start of section headers: 23156 (bytes into file)</div><div> Flags: 0x0</div><div> Size of this header: 52 (bytes)</div>
<div> Size of program headers: 32 (bytes)</div><div> Number of program headers: 8</div><div> Size of section headers: 40 (bytes)</div><div> Number of section headers: 40</div><div> Section header string table index: 37</div>
<div><br></div><div style>$ readelf -h /bin/bash</div><div style><div>ELF Header:</div><div> Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 </div><div> Class: ELF64</div><div> Data: 2's complement, little endian</div>
<div> Version: 1 (current)</div><div> OS/ABI: UNIX - System V</div><div> ABI Version: 0</div><div> Type: EXEC (Executable file)</div>
<div> Machine: Advanced Micro Devices X86-64</div><div> Version: 0x1</div><div> Entry point address: 0x419490</div><div> Start of program headers: 64 (bytes into file)</div>
<div> Start of section headers: 719608 (bytes into file)</div><div> Flags: 0x0</div><div> Size of this header: 64 (bytes)</div><div> Size of program headers: 56 (bytes)</div>
<div> Number of program headers: 10</div><div> Size of section headers: 64 (bytes)</div><div> Number of section headers: 27</div><div> Section header string table index: 26</div><div><br></div>
</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013. április 25. 13:49 írta, <span dir="ltr"><<a href="mailto:gabor@zahemszky.hu" target="_blank">gabor@zahemszky.hu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2013-04-25 13:48 időpontban Potoczky Andras ezt írta:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
A boxon nem tudom kiadni, mert nincs file, de elozo emailben pont<br>
elkuldtem, a fordito gepen a file kimenetet. Valami ilyen hiba lesz<br>
amit irsz, nem ertelmezi, csak meg nem jottem ra mitol fogja<br>
ertelmezni.<br>
</blockquote>
<br></div>
De azt is írtam, hogy egy a dobozról származó binárist (/bin/sh) is<br>
nézzél meg a fejlesztői gépeden és hasonlítsd össze őket.<div class="HOEnZb"><div class="h5"><br>
<br>
Zahy < Gabor at Zahemszky dot HU ><br>
______________________________<u></u>_________________<br>
BSD levlista<br>
<a href="mailto:BSD@hu.freebsd.org" target="_blank">BSD@hu.freebsd.org</a><br>
<a href="https://lists.hu.freebsd.org/mailman/listinfo/bsd" target="_blank">https://lists.hu.freebsd.org/<u></u>mailman/listinfo/bsd</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Üdvözlettel:<br>Bukuli Norbert
</div>