This is the mail archive of the binutils@sourceware.org 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: [PATCH] Speed up bfd_elf_match_symbols_in_sections


On Thu, Feb 01, 2007 at 09:12:17PM +0100, Jakub Jelinek wrote:
> 	* elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
> 	* elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
> 	(struct elf_symbol): Change first member into union.
> 	(elf_sort_elf_symbol): Compare pointers to internal syms rather than
> 	internal syms.  Only compare st_shndx fields.
> 	(elf_create_symbuf): New function.
> 	(bfd_elf_match_symbols_in_sections): Use it.  If symbufs are available
> 	for bfds, use a binary search, otherwise don't qsort symbols
> 	unnecessarily only to select which symbols are for the particular
> 	shndx.

OK.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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