From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D0F7D-0007U6-Pb for qemu-devel@nongnu.org; Sun, 13 Feb 2005 03:28:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D0F75-0007Qf-3m for qemu-devel@nongnu.org; Sun, 13 Feb 2005 03:28:20 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0F74-0007M9-UB for qemu-devel@nongnu.org; Sun, 13 Feb 2005 03:28:18 -0500 Received: from [203.190.192.17] (helo=wasp.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D0Ede-0005S7-Op for qemu-devel@nongnu.org; Sun, 13 Feb 2005 02:57:55 -0500 Message-ID: <420F0871.10706@wasp.net.au> Date: Sun, 13 Feb 2005 11:57:37 +0400 From: Brad Campbell MIME-Version: 1.0 Subject: Re: [Qemu-devel] Funny Bash Script ... References: <20050213072120.GA25583@mail.13thfloor.at> In-Reply-To: <20050213072120.GA25583@mail.13thfloor.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Herbert Poetzl wrote: > Hi Folks! > > there is a funny bash script available at > > http://vserver.13thfloor.at/Stuff/QEMU/rev_01.sh > > using this on object files (like the kqemu-mod-i386.o) > produces interesting output, which will compile nicely > with gcc to something very similar of the original .. > Anyone can disassemble a binary and re-compile it. Understanding exactly how it works is another story entirely. I believe you would be in violation of the license if you distributed the de-compiled source, so what do you gain by doing this? In addition, we are talking kernel code here. The sort of stuff where random compiler optimisations can cause catastrophic failures. Can you guarantee by doing this you are generating exactly the same code as you started with? I would certainly be loathe to trust the compiled binary. Brad -- "Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so." -- Douglas Adams