This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Porting binutils to another OS?


> 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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]