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]
Other format: [Raw text]

Re: n32, irix 6.5, bfd


Timothy Daly wrote:
> 
> --- Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de> wrote:
> [snip]
> > The solution is to add n32 support to elf32-mips.c. :-)
> 
> I would love to!  Now if only somebody would wave a wand and give me
> a little skillset upgrade..
> 
> Do you have any tips?  Where I should start, or what kinds of changes
> will probably need to be made?

I appended a rough TODO list to give some overview. Feel free to ask
me if you have questions.


HTH,
Thiemo


TODO list for MIPS NewABI support (n32/n64) in GNU binutils
-----------------------------------------------------------

Current state [binutils CVS 2002-02-12]:
----------------------------------------
	
	     |      n32  n32-PIC      n64  n64-PIC
	------------------------------------------
	gas  |     fail     fail     work     fail
	     |
	ld   |     fail     fail     work     fail

This means NewABI userland applications can't be built yet because this
normally needs PIC support.


Files which need work for NewABI support:
-----------------------------------------

gas/testsuite/gas/mips/*:
	Create testcases for -mabi=64.

gas/config/tc-mips.c:
	Add support for more NewABI relocations, especially
	R_MIPS_GOT_{DISP,PAGE,OFST,HI16,LO16}. Test this implementation
	on IRIX6 and compare the results with the native as one's.
	This will (AFAICS) allow assembly of n32 and n64 PIC objects.

gas/testsuite/gas/mips/*:
	Create testcases for -mabi=64 -KPIC.

bfd/elf64-mips.c:
	Add support for more NewABI relocations, especially
	R_MIPS_GOT_{DISP,PAGE,OFST,HI16,LO16}. Test this implementation
	on IRIX6 and compare the results with the native ld one's.
	This will (AFAICS) allow linking of n64 PIC objects.

bfd/elf32-mips.c:
	Introduce new target vectors for n32 objects
	bfd_elf32_n{trad,}{little,big}mips_vec. Add/Fix handling of RELA
	relocations. This will (AFAICS) allow linking of n32 non-PIC
	objects.

bfd/elf32-mips.c:
	Add support for more NewABI relocations, especially
	R_MIPS_GOT_{DISP,PAGE,OFST,HI16,LO16}. Test this implementation
	on IRIX6 and compare the results with the native ld one's.
	This will (AFAICS) allow linking of n32 PIC objects.


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