]> Git Repo - binutils.git/commitdiff
* elfcode.h (elf_map_symbols): Sort the symbols into a new array,
authorIan Lance Taylor <[email protected]>
Mon, 17 Oct 1994 23:51:25 +0000 (23:51 +0000)
committerIan Lance Taylor <[email protected]>
Mon, 17 Oct 1994 23:51:25 +0000 (23:51 +0000)
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.

bfd/libelf.h

index a92d166337563a599d1dbaae5d017808ffa41aaf..69e58202d8386b3ab7570fc5e5e8fcabfe4e3e28 100644 (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)
This page took 0.028539 seconds and 4 git commands to generate.