This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: More problems with MIPS gas relocations
"H . J . Lu" <hjl@lucon.org> writes:
> > > I
> > > don't use -membedded-pic and I have no idea what it does.
> >
> > It's a way of generating PIC code for embedded use.
> >
> > It's not currently fully supported on MIPS ELF, though it was
> > apparently supported at one time in ECOFF. (Based on test results, it
> > seems broken there now, though.)
>
> If the -membedded-pic is not compatible with the SVR4 MIPS ABI, I
> don't know how you can get it to work without creating a new BFD
> target for it.
By defining new relocation types which are extensions to the SVR4 MIPS
ABI, just as we've done with, e.g., R_386_16 for i386.
When I wrote -membedded-pic for MIPS ECOFF, I defined 4 new relocation
types. It did work at that time.
Ian