OSDN Git Service

* elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
authorjakub <jakub>
Fri, 2 Feb 2007 21:10:50 +0000 (21:10 +0000)
committerjakub <jakub>
Fri, 2 Feb 2007 21:10:50 +0000 (21:10 +0000)
commita278c0960254a972653e43547ef0eec1a106b934
tree89397640402f28e656b5dcfdbf058e97dea25234
parent69a10b03f0d09c8c6ddbea4dd8c48ea30e37458b
* 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/ChangeLog
bfd/elf-bfd.h
bfd/elf.c