Re:ELF101 a Linux executable walkthrough
by ange4771_ on Wednesday November 20, 2013 @06:24AM
(#6767408)
thx, will fix it. any other typo ?
[ Parent
| on HN ]
Re:ELF101 a Linux executable walkthrough
by lubomir on Wednesday November 20, 2013 @06:33AM
(#6767442)
In code example, the hexdump starts with B9 90 00 00 08, but in the disassembly is listed as 80 00 00 90. I don't think endianness can change 08 to 80.
Re:ELF101 a Linux executable walkthrough
by ange4771_ on Wednesday November 20, 2013 @06:37AM
(#6767458)
not even German endianness ? ;)
thanks for pointing this out.
Re:ELF101 a Linux executable walkthrough
by acc00 on Wednesday November 20, 2013 @06:28AM
(#6767429)
there is no such predefined thing as STDOUT.
you are probably thinking of STDOUT_FILENO. can you just put "1" there?
also, reordering the "mov"s (so they appear in actual call order: edx, ecx, ebx) will simplify the diagram somewhat.