This is the mail archive of the 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]
Other format: [Raw text]

Re: Adding MIPS support to GOLD

Rick Mann <> writes:

> What would it take to add MIPS support? We work on a large embedded
> platform (designed in-house) that uses both ia32 and MIPS. Our builds
> take FOR-E-VER, and linking is a big part of that.
> I have no idea what's involved in targeting a new architecture. How
> hard is it?

That's an excellent question, and I encourage you to find out.

Basically you have to implement the interface in target.h.  It should
be pretty easy to get the basic stuff working. is 2466 lines
long.  About 10% of that is C++ boilerplate and about 20% of it is TLS

As David says, MIPS uses multi-GOT.  Without actually looking into it,
I think that should actually be fairly simple.  gold provides basic
GOT classes in output.h, and Cary just added GOT types on a per-symbol
basis.  Other than that, gold doesn't know about the GOT outside of
the target specific code.  The MIPS backend should be able to just
track the different GOT sections itself.  I hope.


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