Mail Archives: djgpp/1998/11/30/17:13:09
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 <robert DOT hoehne AT gmx DOT net> *
* Post: Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW: http://www.tu-chemnitz.de/~sho/rho *
******************************************************
- Raw text -