From c15f73f9319e84a648c552dffae308877e657e6b Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 2 Feb 2007 21:10:50 +0000 Subject: * 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. --- bfd/elf-bfd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/elf-bfd.h') diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 3798322..a9d51a3 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1392,7 +1392,7 @@ struct elf_obj_tdata bfd_boolean flags_init; /* Symbol buffer. */ - Elf_Internal_Sym *symbuf; + void *symbuf; }; #define elf_tdata(bfd) ((bfd) -> tdata.elf_obj_data) -- cgit v1.1