PATCH: Use a hash table for 26X linker speedup

Paul Brook paul@codesourcery.com
Wed Oct 19 00:59:00 GMT 2005


> bfd/ChangeLog
> 2005-10-04  Nick Clifton  <nickc@redhat.com>
>
> 	* elf32-arm.c (get_arm_elf_section_data): Cache the last pointer
> 	matched so that the typical case of scanning for the previous
> 	section to last one can be handled quickly.

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

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

Tested with cross to arm-none-eabi.
Ok?

Paul

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.64ksec_speedup
Type: text/x-diff
Size: 2868 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20051019/989d837e/attachment.bin>


More information about the Binutils mailing list