Message-ID: <3663340A.4524C8F9@gmx.net> Date: Mon, 30 Nov 1998 23:10:50 -0100 From: Robert Hoehne Organization: none provided X-Mailer: Mozilla 4.07 [de] (Win95; I) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: How to build a different output file? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Wojciech Piechowski wrote : > > I took a look into binutils. It seems that I need to write my own > definition script. This depends on what a format you want to create. If you want to create a complete new format, you will need to invest many time and knowlage. > Is there any good source to learn how to write this? Yes. (see below) > Or maybe I will choose one of those formats that already exist - where can This would be probably the best solution. > I find some docs on them (headers, segments, relocations) ? Install the binutils sources (bnu281s.zip), apply there the following patch --- gnu/binutl-2.81/configure.ba~ Tue Jul 15 22:55:00 1997 +++ gnu/binutl-2.81/configure.bat Mon Nov 30 22:55:00 1998 @@ -1,7 +1,7 @@ @echo off if exist patch_ok goto patch_done echo Applying DJGPP specific patches ... -patch < diffs.djg +patch -p 0 < diffs.djg touch patch_ok :patch_done then run the configure.bat and go to the bfd/doc directory and run there make info and then read the bfd.info file with your preferred INFO reader. This document is overfull of usefull and detailed information about the BFD library which is the core of any binutils program including gas, which is normally responsible for creating the output object files from your C/C++ sources. Then, if you understood BFD :-)) you can "simply" write your own object format :-)) Robert -- ****************************************************** * email: Robert Hoehne * * Post: Am Berg 3, D-09573 Dittmannsdorf, Germany * * WWW: http://www.tu-chemnitz.de/~sho/rho * ******************************************************