[Kos-dev] Porter les "binutils"

PETAZZONI,THOMAS (Non-HP-Germany,ex1) kos-dev@enix.org
Thu, 1 Aug 2002 16:45:56 +0200


Salut,

Voici le resultat d'une recherche sur google :

****************************************************************************
*
> From: Pileborg Joachim - FMT <joachim.pileborg@fmt.se>
> Date: Thu, 14 Dec 2000 17:33:01 +0100
> 
> Lets say that I want to create a new OS, and want to use the GNU assembler
> and linker on it. What do I need to do to port binutils to it? This
> hypothetical OS would run on i386 and M68k platforms, and use ELF as its
> object/executable format.
> 
> Does there exist any documentation, or do anyone have any hints about how
I
> should do it?

There's probably very little you need to do, if anything.  

There are two parts to the porting:

- make binutils build on your new OS; and
- make binutils produce binaries for your new OS.

Since binutils already knows about ELF, the second part just consists
of adding the right lines in the config files so that configure knows
the name of your OS and knows it's ELF.  (Just look for files whose
name starts with 'config').

The first part should mostly be handled by autoconf, but you may need
to extend config.guess so that it can guess your OS name correctly.

-- 
- Geoffrey Keating <geoffk@geoffk.org>
****************************************************************************
**

Comme ca on a les emails des personnes pour eventuellement les contacter. Ca
provient des archives de binutils@sources.redhat.com.

Thomas

Thomas Petazzoni
thomas.petazzoni@non.hp.com
KOS : http://kos.enix.org
Perso : http://kos.enix.org/~thomas/