From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: "Douglas A. Gwyn" Message-ID: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit References: , <430070383b94972b041c1bccc7bcb5d9@caldo.demon.co.uk> Subject: Re: [9fans] gcc trouble Date: Mon, 10 Nov 2003 10:01:37 +0000 Topicbox-Message-UUID: 83e0ff30-eacc-11e9-9e20-41e7f4b1d025 Charles Forsyth wrote: > the plan 9 object files (if you mean .8 etc) are binary, but not binary object code. > they contain instructions in a symbolic form. only the loader knows > the machine encoding, and it does final machine instruction selection. > ... > you'd therefore need to disassemble the code inside gnu ld to produce .8 > files. Not unless you need to link gcc-compiled code against .8 libraries. I assume the libraries could be rebuilt in ELF format by recompiling with the putative Plan9 gcc. Without even looking, one knows that there has to be a way to embed binary data within .8 object files, so just copy the linked image out as binary data within the .8 file.