[PATCH]: Fix slow sparc relocation lookup

Nick Clifton nickc@redhat.com
Tue Mar 2 07:33:00 GMT 2010


Hi David,

> 2010-03-01  David S. Miller<davem@davemloft.net>
>
> 	* elfxx-sparc.c (struct elf_reloc_map): Delete.
> 	(sparc_reloc_map): Delete.
> 	(_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
> 	relocation type in switch statements.

Approved - please apply - although I would recommend adding a comment 
explaining that the switch table is used for efficiency so that some 
future programmer does not decide to replace it with a lookup table and 
a loop...

Cheers
   Nick



More information about the Binutils mailing list