position independent code on MIPS

Ian Lance Taylor ian@airs.com
Tue Jan 17 03:43:00 GMT 2006


"Paul Kohout" <pkohout@evitechnology.com> writes:

> So what would a dynamic linker have to do differently using "-mabicalls
> -fpic -G 0" versus "-membedded-pic"? I assume that there would be some
> processing of relocation tables. Is this documented somewhere?

The -mabicalls case works with ELF.  See the MIPS ELF Processor
Supplement:
    http://refspecs.freestandards.org/elf/mipsabi.pdf

The -membedded-pic case works with a very simpleminded format I
designed a long time ago.

Ian



More information about the Gcc-help mailing list