PATCH: Use a hash table for 26X linker speedup

Nick Clifton nickc@redhat.com
Wed Oct 19 15:39:00 GMT 2005


Hi Paul,

> It's still quite slow with this patch.  
> unrecord_section_with_arm_elf_section_data has the same problem.

Good point.

> The attached patch uses the cache for this as well, and avoids leaving 
> last_entry pointing a free'd object.

Also a very good point.

I have applied your patch together with an extra comment describing why 
we set last_found to entry->prev, since I felt that it was not entirely 
obvious.

Cheers
   Nick

> 2005-10-19  Paul Brook  <paul@codesourcery.com>
> 
> 	* elf32-arm.c (find_arm_elf_section_entry): New function.
> 	(get_arm_elf_section_data,
> 	unrecord_section_with_arm_elf_section_data): Use it.



More information about the Binutils mailing list