This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Porting binutils to other OS
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: "Alfeiks Kaanoken (MadTirra)" <madtirra at jarios dot org>
- Cc: binutils at sourceware dot org
- Date: Thu, 23 Apr 2009 17:58:10 -0400 (EDT)
- Subject: Re: Porting binutils to other OS
- References: <49F0C0D3.2060101@jarios.org>
On Thu, 23 Apr 2009, Alfeiks Kaanoken (MadTirra) wrote:
> I want to port binutils to new OS (Jari), in this case I have several
> questions.
> First - is it anything linux or bsd specific stuff in binutils code base (Jari
> OS has POSIX, but doesn't contain any GNU extensions yet) ?
> I mean, what I need to inject to the source code of binutils to run it in new
> OS.
Linux-specific binutils stuff? Most of it is ELF and
architecture-specific... You'd better read for yourself, like
the least difference between *-unknown-linux-gnu and
*-unknown-freebsd for some *. Though, one (or two) example(s)
that come to mind are the elf_backend_grok_prstatus and
elf_backend_grok_psinfo hooks, for understanding core-dumps.
brgds, H-P