From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20110307144441.GA2862@fangle.proxima.alt.za> References: <12706287ffd78500298ce35f6a5728a5@gmx.de> <20110307144441.GA2862@fangle.proxima.alt.za> Date: Mon, 7 Mar 2011 10:03:41 -0500 Message-ID: Subject: Re: [9fans] realemu update From: Russ Cox To: lucio@proxima.alt.za, Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: b81e426c-ead6-11e9-9d60-3106f5b1d025 >> huh? =C2=A0what does libmach (which takes apart executables) >> have to do with any of this? >> > Did I get the wrong impression when I perceived libmach, as released > with GoLang - cause that's where I looked - seemingly quite capable of > synthesising as well as analysing binary images? i think you did. libmach has routines to read executables and object files (8.out and *.8) but not to write them. the programs that write them (8a, 8l, 8c, 8g) all use custom code, mainly because they have their own internal representations of the instruction stream, tailored to the kinds of annotations they need. 8l even has its own reader for *.8 files, for much the same reason. russ