* elfcode.h (elf_map_symbols): Sort the symbols into a new array,

rather than messing with Elf_Sym_Extra.  Store the symbol index in
	the udata.i field.
	(swap_out_syms): Use outbound_syms as a pointer rather than as an
	array.  Don't worry about elf_sym_num.
	(elf_symbol_from_bfd_symbol): Use udata.i rather than just udata.
	* libelf.h (struct elf_sym_extra): Don't define.
	(Elf_Sym_Extra): Don't define.
	(struct elf_obj_tdata): Remove sym_extra field.
	(elf_sym_extra): Don't define.
	* elf32-hppa.c (elf32_hppa_backend_final_write_processing): Use
	udata.i rather than elf_sym_extra array.
	(elf32_hppa_backend_symbol_table_processing): Don't set
	symextn_hdr->size; just use sh_size.
This commit is contained in:
Ian Lance Taylor 1994-10-17 23:51:25 +00:00
parent f16db09225
commit cd5220cd63

View File

@ -393,13 +393,6 @@ struct elf_backend_data
const struct ecoff_debug_swap *elf_backend_ecoff_debug_swap;
};
struct elf_sym_extra
{
int elf_sym_num; /* sym# after locals/globals are reordered */
};
typedef struct elf_sym_extra Elf_Sym_Extra;
/* Information stored for each BFD section in an ELF file. This
structure is allocated by elf_new_section_hook. */
@ -440,7 +433,6 @@ struct elf_obj_tdata
struct bfd_strtab_hash *strtab_ptr;
int num_locals;
int num_globals;
Elf_Sym_Extra *sym_extra;
asymbol **section_syms; /* STT_SECTION symbols for each section */
Elf_Internal_Shdr symtab_hdr;
Elf_Internal_Shdr shstrtab_hdr;
@ -489,7 +481,6 @@ struct elf_obj_tdata
#define elf_dynsymtab(bfd) (elf_tdata(bfd) -> dynsymtab_section)
#define elf_num_locals(bfd) (elf_tdata(bfd) -> num_locals)
#define elf_num_globals(bfd) (elf_tdata(bfd) -> num_globals)
#define elf_sym_extra(bfd) (elf_tdata(bfd) -> sym_extra)
#define elf_section_syms(bfd) (elf_tdata(bfd) -> section_syms)
#define core_prpsinfo(bfd) (elf_tdata(bfd) -> prpsinfo)
#define core_prstatus(bfd) (elf_tdata(bfd) -> prstatus)