Index: sim/frv/ChangeLog
authorAndrew Cagney <cagney@redhat.com>
Fri, 31 Oct 2003 05:32:46 +0000 (05:32 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 31 Oct 2003 05:32:46 +0000 (05:32 +0000)
2003-10-30  Andrew Cagney  <cagney@redhat.com>

* traps.c: Replace "struct symbol_cache_entry" with "struct
bfd_symbol".

Index: sim/d10v/ChangeLog
2003-10-30  Andrew Cagney  <cagney@redhat.com>

* simops.c: Replace "struct symbol_cache_entry" with "struct
bfd_symbol".

Index: sim/common/ChangeLog
2003-10-30  Andrew Cagney  <cagney@redhat.com>

* sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
with "struct bfd_symbol".

Index: ld/ChangeLog
2003-10-30  Andrew Cagney  <cagney@redhat.com>

* emultempl/pe.em, pe-dll.c: Replace "struct symbol_cache_entry"
with "struct bfd_symbol".

Index: bfd/ChangeLog
2003-10-30  Andrew Cagney  <cagney@redhat.com>

* syms.c: Replace "struct symbol_cache_entry" with "struct
bfd_symbol".
* vms.h, targets.c, section.c, reloc.c, peicode.h: Ditto.
* mipsbsd.c, elf.c, linker.c, elf-bfd.h, ecoff.c: Ditto.
* cpu-z8k.c, cpu-ns32k.c, cpu-h8500.c, bfd.c, bfd-in.h: Ditto.
* bfd-in2.h: Re-generate.

28 files changed:
bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/bfd.c
bfd/cpu-h8500.c
bfd/cpu-ns32k.c
bfd/cpu-z8k.c
bfd/ecoff.c
bfd/elf-bfd.h
bfd/elf.c
bfd/linker.c
bfd/mipsbsd.c
bfd/peicode.h
bfd/reloc.c
bfd/section.c
bfd/syms.c
bfd/targets.c
bfd/vms.h
ld/ChangeLog
ld/emultempl/pe.em
ld/pe-dll.c
sim/common/ChangeLog
sim/common/sim-base.h
sim/common/sim-trace.c
sim/d10v/ChangeLog
sim/d10v/simops.c
sim/frv/ChangeLog
sim/frv/traps.c

index 7911d081d1875a2a08d31bb555ee3eb6167c5cc1..9307eb9e19939e495126b064a44dc2b2989cb666 100644 (file)
@@ -1,3 +1,12 @@
+2003-10-30  Andrew Cagney  <cagney@redhat.com>
+
+       * syms.c: Replace "struct symbol_cache_entry" with "struct
+       bfd_symbol".
+       * vms.h, targets.c, section.c, reloc.c, peicode.h: Ditto.
+       * mipsbsd.c, elf.c, linker.c, elf-bfd.h, ecoff.c: Ditto.
+       * cpu-z8k.c, cpu-ns32k.c, cpu-h8500.c, bfd.c, bfd-in.h: Ditto.
+       * bfd-in2.h: Re-generate.
+
 2003-10-30  Jakub Jelinek  <jakub@redhat.com>
 
        * elfxx-ia64.c: Include objalloc.h, hashtab.h.
index ae2715032588721a307da25020b641e75f586ede..cba25f4ba2eb28b9766fca44fd046a05aaa73a73 100644 (file)
@@ -303,7 +303,7 @@ typedef struct lineno_cache_entry
   unsigned int line_number;    /* Linenumber from start of function.  */
   union
   {
-    struct symbol_cache_entry *sym;    /* Function name.  */
+    struct bfd_symbol *sym;    /* Function name.  */
     bfd_vma offset;                    /* Offset into section.  */
   } u;
 }
@@ -554,7 +554,7 @@ void bfd_put_bits (bfd_vma, bfd_byte *, int, bfd_boolean);
 struct ecoff_debug_info;
 struct ecoff_debug_swap;
 struct ecoff_extr;
-struct symbol_cache_entry;
+struct bfd_symbol;
 struct bfd_link_info;
 struct bfd_link_hash_entry;
 struct bfd_elf_version_tree;
@@ -584,8 +584,8 @@ extern bfd_boolean bfd_ecoff_debug_accumulate_other
 extern bfd_boolean bfd_ecoff_debug_externals
   (bfd *abfd, struct ecoff_debug_info *debug,
    const struct ecoff_debug_swap *swap, bfd_boolean relocatable,
-   bfd_boolean (*get_extr) (struct symbol_cache_entry *, struct ecoff_extr *),
-   void (*set_index) (struct symbol_cache_entry *, bfd_size_type));
+   bfd_boolean (*get_extr) (struct bfd_symbol *, struct ecoff_extr *),
+   void (*set_index) (struct bfd_symbol *, bfd_size_type));
 extern bfd_boolean bfd_ecoff_debug_one_external
   (bfd *abfd, struct ecoff_debug_info *debug,
    const struct ecoff_debug_swap *swap, const char *name,
@@ -759,13 +759,13 @@ union internal_auxent;
 #endif
 
 extern bfd_boolean bfd_coff_get_syment
-  (bfd *, struct symbol_cache_entry *, struct internal_syment *);
+  (bfd *, struct bfd_symbol *, struct internal_syment *);
 
 extern bfd_boolean bfd_coff_get_auxent
-  (bfd *, struct symbol_cache_entry *, int, union internal_auxent *);
+  (bfd *, struct bfd_symbol *, int, union internal_auxent *);
 
 extern bfd_boolean bfd_coff_set_symbol_class
-  (bfd *, struct symbol_cache_entry *, unsigned int);
+  (bfd *, struct bfd_symbol *, unsigned int);
 
 extern bfd_boolean bfd_m68k_coff_create_embedded_relocs
   (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);
index fb2064fe35d12591f4b687f2e699f0f8537376be..27dbca94b419a5de6c63a135578268f5fc70bba5 100644 (file)
@@ -310,7 +310,7 @@ typedef struct lineno_cache_entry
   unsigned int line_number;    /* Linenumber from start of function.  */
   union
   {
-    struct symbol_cache_entry *sym;    /* Function name.  */
+    struct bfd_symbol *sym;    /* Function name.  */
     bfd_vma offset;                    /* Offset into section.  */
   } u;
 }
@@ -561,7 +561,7 @@ void bfd_put_bits (bfd_vma, bfd_byte *, int, bfd_boolean);
 struct ecoff_debug_info;
 struct ecoff_debug_swap;
 struct ecoff_extr;
-struct symbol_cache_entry;
+struct bfd_symbol;
 struct bfd_link_info;
 struct bfd_link_hash_entry;
 struct bfd_elf_version_tree;
@@ -591,8 +591,8 @@ extern bfd_boolean bfd_ecoff_debug_accumulate_other
 extern bfd_boolean bfd_ecoff_debug_externals
   (bfd *abfd, struct ecoff_debug_info *debug,
    const struct ecoff_debug_swap *swap, bfd_boolean relocatable,
-   bfd_boolean (*get_extr) (struct symbol_cache_entry *, struct ecoff_extr *),
-   void (*set_index) (struct symbol_cache_entry *, bfd_size_type));
+   bfd_boolean (*get_extr) (struct bfd_symbol *, struct ecoff_extr *),
+   void (*set_index) (struct bfd_symbol *, bfd_size_type));
 extern bfd_boolean bfd_ecoff_debug_one_external
   (bfd *abfd, struct ecoff_debug_info *debug,
    const struct ecoff_debug_swap *swap, const char *name,
@@ -766,13 +766,13 @@ union internal_auxent;
 #endif
 
 extern bfd_boolean bfd_coff_get_syment
-  (bfd *, struct symbol_cache_entry *, struct internal_syment *);
+  (bfd *, struct bfd_symbol *, struct internal_syment *);
 
 extern bfd_boolean bfd_coff_get_auxent
-  (bfd *, struct symbol_cache_entry *, int, union internal_auxent *);
+  (bfd *, struct bfd_symbol *, int, union internal_auxent *);
 
 extern bfd_boolean bfd_coff_set_symbol_class
-  (bfd *, struct symbol_cache_entry *, unsigned int);
+  (bfd *, struct bfd_symbol *, unsigned int);
 
 extern bfd_boolean bfd_m68k_coff_create_embedded_relocs
   (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);
@@ -1272,7 +1272,7 @@ typedef struct bfd_section
   /* Nonzero if this section has a gp reloc.  */
   unsigned int has_gp_reloc:1;
 
-  /* Usused bits.  */
+  /* Unused bits.  */
   unsigned int flag13:1;
   unsigned int flag14:1;
   unsigned int flag15:1;
@@ -1384,8 +1384,8 @@ typedef struct bfd_section
   bfd *owner;
 
   /* A symbol which points at this section only.  */
-  struct symbol_cache_entry *symbol;
-  struct symbol_cache_entry **symbol_ptr_ptr;
+  struct bfd_symbol *symbol;
+  struct bfd_symbol **symbol_ptr_ptr;
 
   struct bfd_link_order *link_order_head;
   struct bfd_link_order *link_order_tail;
@@ -1423,10 +1423,10 @@ extern asection bfd_ind_section;
   || ((SEC) == bfd_com_section_ptr)            \
   || ((SEC) == bfd_ind_section_ptr))
 
-extern const struct symbol_cache_entry * const bfd_abs_symbol;
-extern const struct symbol_cache_entry * const bfd_com_symbol;
-extern const struct symbol_cache_entry * const bfd_und_symbol;
-extern const struct symbol_cache_entry * const bfd_ind_symbol;
+extern const struct bfd_symbol * const bfd_abs_symbol;
+extern const struct bfd_symbol * const bfd_com_symbol;
+extern const struct bfd_symbol * const bfd_und_symbol;
+extern const struct bfd_symbol * const bfd_ind_symbol;
 #define bfd_get_section_size_before_reloc(section) \
      ((section)->_raw_size)
 #define bfd_get_section_size_after_reloc(section) \
@@ -1858,7 +1858,7 @@ typedef enum bfd_reloc_status
 typedef struct reloc_cache_entry
 {
   /* A pointer into the canonical table of pointers.  */
-  struct symbol_cache_entry **sym_ptr_ptr;
+  struct bfd_symbol **sym_ptr_ptr;
 
   /* offset in section.  */
   bfd_size_type address;
@@ -1932,7 +1932,7 @@ struct reloc_howto_struct
      strange relocation methods to be accomodated (e.g., i960 callj
      instructions).  */
   bfd_reloc_status_type (*special_function)
-    (bfd *, arelent *, struct symbol_cache_entry *, void *, asection *,
+    (bfd *, arelent *, struct bfd_symbol *, void *, asection *,
      bfd *, char **);
 
   /* The textual name of the relocation type.  */
@@ -3486,7 +3486,7 @@ const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code);
 
 /* Extracted from syms.c.  */
 
-typedef struct symbol_cache_entry
+typedef struct bfd_symbol
 {
   /* A pointer to the BFD which owns the symbol. This information
      is necessary so that a back end can work out what additional
@@ -3745,7 +3745,7 @@ struct bfd
   unsigned int symcount;
 
   /* Symbol table for output BFD (with symcount entries).  */
-  struct symbol_cache_entry  **outsymbols;
+  struct bfd_symbol  **outsymbols;
 
   /* Used for slurped dynamic symbol tables.  */
   unsigned int dynsymcount;
@@ -4232,20 +4232,20 @@ typedef struct bfd_target
 
   long        (*_bfd_get_symtab_upper_bound) (bfd *);
   long        (*_bfd_canonicalize_symtab)
-    (bfd *, struct symbol_cache_entry **);
-  struct symbol_cache_entry *
+    (bfd *, struct bfd_symbol **);
+  struct bfd_symbol *
               (*_bfd_make_empty_symbol) (bfd *);
   void        (*_bfd_print_symbol)
-    (bfd *, void *, struct symbol_cache_entry *, bfd_print_symbol_type);
+    (bfd *, void *, struct bfd_symbol *, bfd_print_symbol_type);
 #define bfd_print_symbol(b,p,s,e) BFD_SEND (b, _bfd_print_symbol, (b,p,s,e))
   void        (*_bfd_get_symbol_info)
-    (bfd *, struct symbol_cache_entry *, symbol_info *);
+    (bfd *, struct bfd_symbol *, symbol_info *);
 #define bfd_get_symbol_info(b,p,e) BFD_SEND (b, _bfd_get_symbol_info, (b,p,e))
   bfd_boolean (*_bfd_is_local_label_name) (bfd *, const char *);
 
-  alent *     (*_get_lineno) (bfd *, struct symbol_cache_entry *);
+  alent *     (*_get_lineno) (bfd *, struct bfd_symbol *);
   bfd_boolean (*_bfd_find_nearest_line)
-    (bfd *, struct bfd_section *, struct symbol_cache_entry **, bfd_vma,
+    (bfd *, struct bfd_section *, struct bfd_symbol **, bfd_vma,
      const char **, const char **, unsigned int *);
  /* Back-door to allow format-aware applications to create debug symbols
     while using BFD for everything else.  Currently used by the assembler
@@ -4269,7 +4269,7 @@ typedef struct bfd_target
 
   long        (*_get_reloc_upper_bound) (bfd *, sec_ptr);
   long        (*_bfd_canonicalize_reloc)
-    (bfd *, sec_ptr, arelent **, struct symbol_cache_entry **);
+    (bfd *, sec_ptr, arelent **, struct bfd_symbol **);
   /* See documentation on reloc types.  */
   reloc_howto_type *
               (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type);
@@ -4302,7 +4302,7 @@ typedef struct bfd_target
   int         (*_bfd_sizeof_headers) (bfd *, bfd_boolean);
   bfd_byte *  (*_bfd_get_relocated_section_contents)
     (bfd *, struct bfd_link_info *, struct bfd_link_order *,
-     bfd_byte *, bfd_boolean, struct symbol_cache_entry **);
+     bfd_byte *, bfd_boolean, struct bfd_symbol **);
 
   bfd_boolean (*_bfd_relax_section)
     (bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *);
@@ -4348,12 +4348,12 @@ typedef struct bfd_target
   long        (*_bfd_get_dynamic_symtab_upper_bound) (bfd *);
   /* Read in the dynamic symbols.  */
   long        (*_bfd_canonicalize_dynamic_symtab)
-    (bfd *, struct symbol_cache_entry **);
+    (bfd *, struct bfd_symbol **);
   /* Get the amount of memory required to hold the dynamic relocs.  */
   long        (*_bfd_get_dynamic_reloc_upper_bound) (bfd *);
   /* Read in the dynamic relocs.  */
   long        (*_bfd_canonicalize_dynamic_reloc)
-    (bfd *, arelent **, struct symbol_cache_entry **);
+    (bfd *, arelent **, struct bfd_symbol **);
 
   /* Opposite endian version of this target.  */
   const struct bfd_target * alternative_target;
index 6924d09e4c2f4745ac859477fb74160922089c8b..ab2db6ab6e084600fda2f2d5db2fda0c2fc552dd 100644 (file)
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -129,7 +129,7 @@ CODE_FRAGMENT
 .  unsigned int symcount;
 .
 .  {* Symbol table for output BFD (with symcount entries).  *}
-.  struct symbol_cache_entry  **outsymbols;
+.  struct bfd_symbol  **outsymbols;
 .
 .  {* Used for slurped dynamic symbol tables.  *}
 .  unsigned int dynsymcount;
index 08fb359868b4656e8a2b33ba5a2397b44efa7b67..cce681609444a61230b9a1ca098e853b580c163c 100644 (file)
@@ -35,7 +35,7 @@ howto16_callback (abfd, reloc_entry, symbol_in, data,
                  ignore_input_section, ignore_bfd)
      bfd *abfd;
      arelent *reloc_entry;
-     struct symbol_cache_entry *symbol_in;
+     struct bfd_symbol *symbol_in;
      PTR data;
      asection *ignore_input_section;
      bfd *ignore_bfd;
@@ -57,7 +57,7 @@ howto8_callback (abfd, reloc_entry, symbol_in, data,
                 ignore_input_section, ignore_bfd)
      bfd *abfd;
      arelent *reloc_entry;
-     struct symbol_cache_entry *symbol_in;
+     struct bfd_symbol *symbol_in;
      PTR data;
      asection *ignore_input_section;
      bfd *ignore_bfd;
@@ -79,7 +79,7 @@ howto8_FFnn_callback (abfd, reloc_entry, symbol_in, data,
                      ignore_input_section, ignore_bfd)
      bfd *abfd;
      arelent *reloc_entry;
-     struct symbol_cache_entry *symbol_in;
+     struct bfd_symbol *symbol_in;
      PTR data;
      asection *ignore_input_section;
      bfd *ignore_bfd;
@@ -102,7 +102,7 @@ howto8_pcrel_callback (abfd, reloc_entry, symbol_in, data,
                       ignore_input_section, ignore_bfd)
      bfd *abfd;
      arelent *reloc_entry;
-     struct symbol_cache_entry *symbol_in;
+     struct bfd_symbol *symbol_in;
      PTR data;
      asection *ignore_input_section;
      bfd *ignore_bfd;
index 1a12b162f20b493a6a41d63ae6301f2c6401ddc8..aab155933237dcdfbb275f68d273351711601e0a 100644 (file)
@@ -37,7 +37,7 @@ const bfd_arch_info_type bfd_ns32k_arch =
   N(32032,"ns32k:32032",FALSE, &arch_info_struct[0]);
 
 static bfd_reloc_status_type do_ns32k_reloc
-  PARAMS ((bfd *, arelent *, struct symbol_cache_entry *, PTR, asection *,
+  PARAMS ((bfd *, arelent *, struct bfd_symbol *, PTR, asection *,
           bfd *, char **,
           bfd_vma (*) (bfd_byte *, int),
           void (*) (bfd_vma, bfd_byte *, int)));
@@ -158,7 +158,7 @@ do_ns32k_reloc (abfd, reloc_entry, symbol, data, input_section, output_bfd,
                error_message, get_data, put_data)
      bfd *abfd;
      arelent *reloc_entry;
-     struct symbol_cache_entry *symbol;
+     struct bfd_symbol *symbol;
      PTR data;
      asection *input_section;
      bfd *output_bfd;
@@ -762,7 +762,7 @@ _bfd_ns32k_reloc_disp (abfd, reloc_entry, symbol, data, input_section,
                       output_bfd, error_message)
      bfd *abfd;
      arelent *reloc_entry;
-     struct symbol_cache_entry *symbol;
+     struct bfd_symbol *symbol;
      PTR data;
      asection *input_section;
      bfd *output_bfd;
@@ -779,7 +779,7 @@ _bfd_ns32k_reloc_imm (abfd, reloc_entry, symbol, data, input_section,
                      output_bfd, error_message)
      bfd *abfd;
      arelent *reloc_entry;
-     struct symbol_cache_entry *symbol;
+     struct bfd_symbol *symbol;
      PTR data;
      asection *input_section;
      bfd *output_bfd;
index 60d82ef62aa0bdf723b396725970c94d9763b351..26fb7b2af7f58f25bce9ccacf3a27e98b4cb8c08 100644 (file)
@@ -36,7 +36,7 @@ howto16_callback (abfd, reloc_entry, symbol_in, data,
                  ignore_input_section, ignore_bfd)
      bfd *abfd;
      arelent *reloc_entry;
-     struct symbol_cache_entry *symbol_in;
+     struct bfd_symbol *symbol_in;
      PTR data;
      asection *ignore_input_section;
      bfd *ignore_bfd;
@@ -58,7 +58,7 @@ howto8_callback (abfd, reloc_entry, symbol_in, data,
                 ignore_input_section, ignore_bfd)
      bfd *abfd;
      arelent *reloc_entry;
-     struct symbol_cache_entry *symbol_in;
+     struct bfd_symbol *symbol_in;
      PTR data;
      asection *ignore_input_section;
      bfd *ignore_bfd;
@@ -80,7 +80,7 @@ howto8_FFnn_callback (abfd, reloc_entry, symbol_in, data,
                      ignore_input_section, ignore_bfd)
      bfd *abfd;
      arelent *reloc_entry;
-     struct symbol_cache_entry *symbol_in;
+     struct bfd_symbol *symbol_in;
      PTR data;
      asection *ignore_input_section;
      bfd *ignore_bfd;
@@ -103,7 +103,7 @@ howto8_pcrel_callback (abfd, reloc_entry, symbol_in, data,
                       ignore_input_section, ignore_bfd)
      bfd *abfd;
      arelent *reloc_entry;
-     struct symbol_cache_entry *symbol_in;
+     struct bfd_symbol *symbol_in;
      PTR data;
      asection *ignore_input_section;
      bfd *ignore_bfd;
index 87db129285c8d01b6fcd7be157765c7b3eabbb6d..4f13c39c222f53fd1c918b05d853241dbf5c5496 100644 (file)
@@ -100,9 +100,9 @@ static asection bfd_debug_section =
   /* target_index, used_by_bfd, constructor_chain, owner,          */
      0,            NULL,        NULL,              NULL,
   /* symbol,                                                       */
-     (struct symbol_cache_entry *) NULL,
+     (struct bfd_symbol *) NULL,
   /* symbol_ptr_ptr,                                               */
-     (struct symbol_cache_entry **) NULL,
+     (struct bfd_symbol **) NULL,
   /* link_order_head, link_order_tail                              */
      NULL,            NULL
 };
index 13f800cde60736431efdfe20474fad7e9921be0d..6f98cc2f769610d4ba1f01b38604d743195af6b3 100644 (file)
@@ -1013,7 +1013,7 @@ struct bfd_elf_section_data
     const char *name;
 
     /* Group signature sym, if this is the SHT_GROUP section.  */
-    struct symbol_cache_entry *id;
+    struct bfd_symbol *id;
   } group;
 
   /* A linked list of sections in the group.  Circular when used by
@@ -1634,7 +1634,7 @@ extern int elf_link_record_local_dynamic_symbol
 extern bfd_boolean _bfd_elf_close_and_cleanup
   (bfd *);
 extern bfd_reloc_status_type _bfd_elf_rel_vtable_reloc_fn
-  (bfd *, arelent *, struct symbol_cache_entry *, void *,
+  (bfd *, arelent *, struct bfd_symbol *, void *,
    asection *, bfd *, char **);
 
 extern bfd_boolean _bfd_elf32_gc_sections
index 77fdfa1b0431373d36126b27d3a03254988a6060..f891fbdedad01831a432f26e04ba17d195a23ca9 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6239,7 +6239,7 @@ _bfd_elf_close_and_cleanup (bfd *abfd)
 bfd_reloc_status_type
 _bfd_elf_rel_vtable_reloc_fn
   (bfd *abfd ATTRIBUTE_UNUSED, arelent *re ATTRIBUTE_UNUSED,
-   struct symbol_cache_entry *symbol ATTRIBUTE_UNUSED,
+   struct bfd_symbol *symbol ATTRIBUTE_UNUSED,
    void *data ATTRIBUTE_UNUSED, asection *is ATTRIBUTE_UNUSED,
    bfd *obfd ATTRIBUTE_UNUSED, char **errmsg ATTRIBUTE_UNUSED)
 {
index b7c557608d606b6aec79b5b47a20969d24a13b1d..a1a8a4ca3cd42cffb47e964e7eb4b7981ca2cc81 100644 (file)
@@ -786,7 +786,7 @@ generic_link_add_object_symbols (bfd *abfd,
                                 bfd_boolean collect)
 {
   bfd_size_type symcount;
-  struct symbol_cache_entry **outsyms;
+  struct bfd_symbol **outsyms;
 
   if (! generic_link_read_symbols (abfd))
     return FALSE;
index af1ba55aeca8bfca35b21f571b14d73eebcd407d..59f231b3b2ee356eaca9111234fcf8dfc30ba093 100644 (file)
@@ -70,7 +70,7 @@ static bfd_boolean MY(write_object_contents) PARAMS ((bfd *abfd));
 #include "aout-target.h"
 
 static bfd_reloc_status_type mips_fix_jmp_addr
-  PARAMS ((bfd *, arelent *, struct symbol_cache_entry *, PTR, asection *,
+  PARAMS ((bfd *, arelent *, struct bfd_symbol *, PTR, asection *,
           bfd *, char **));
 static reloc_howto_type *MY(reloc_howto_type_lookup)
   PARAMS ((bfd *, bfd_reloc_code_real_type));
@@ -203,7 +203,7 @@ mips_fix_jmp_addr (abfd, reloc_entry, symbol, data, input_section, output_bfd,
                   error_message)
      bfd *abfd ATTRIBUTE_UNUSED;
      arelent *reloc_entry;
-     struct symbol_cache_entry *symbol;
+     struct bfd_symbol *symbol;
      PTR data ATTRIBUTE_UNUSED;
      asection *input_section;
      bfd *output_bfd;
index 094f52d2aebe049d636393034d49976042ddb52f..41fcbbcb652e943766f65e89ee2a02773c18c16d 100644 (file)
@@ -135,7 +135,7 @@ static asection_ptr       pe_ILF_make_a_section   PARAMS ((pe_ILF_vars *, const
 static void               pe_ILF_make_a_reloc     PARAMS ((pe_ILF_vars *, bfd_vma, bfd_reloc_code_real_type, asection_ptr));
 static void               pe_ILF_make_a_symbol    PARAMS ((pe_ILF_vars *, const char *, const char *, asection_ptr, flagword));
 static void               pe_ILF_save_relocs      PARAMS ((pe_ILF_vars *, asection_ptr));
-static void              pe_ILF_make_a_symbol_reloc  PARAMS ((pe_ILF_vars *, bfd_vma, bfd_reloc_code_real_type, struct symbol_cache_entry **, unsigned int));
+static void              pe_ILF_make_a_symbol_reloc  PARAMS ((pe_ILF_vars *, bfd_vma, bfd_reloc_code_real_type, struct bfd_symbol **, unsigned int));
 static bfd_boolean        pe_ILF_build_a_bfd      PARAMS ((bfd *, unsigned int, bfd_byte *, bfd_byte *, unsigned int, unsigned int));
 static const bfd_target * pe_ILF_object_p         PARAMS ((bfd *));
 static const bfd_target * pe_bfd_object_p        PARAMS ((bfd *));
@@ -470,7 +470,7 @@ static void
 pe_ILF_make_a_symbol_reloc (pe_ILF_vars *                 vars,
                            bfd_vma                       address,
                            bfd_reloc_code_real_type      reloc,
-                           struct symbol_cache_entry **  sym,
+                           struct bfd_symbol **  sym,
                            unsigned int                  sym_index)
 {
   arelent * entry;
@@ -967,11 +967,11 @@ pe_ILF_build_a_bfd (bfd *           abfd,
       if (magic == MIPS_ARCH_MAGIC_WINCE)
        {
          pe_ILF_make_a_symbol_reloc (&vars, (bfd_vma) 0, BFD_RELOC_HI16_S,
-                                     (struct symbol_cache_entry **) imp_sym,
+                                     (struct bfd_symbol **) imp_sym,
                                      imp_index);
          pe_ILF_make_a_reloc (&vars, (bfd_vma) 0, BFD_RELOC_LO16, text);
          pe_ILF_make_a_symbol_reloc (&vars, (bfd_vma) 4, BFD_RELOC_LO16,
-                                     (struct symbol_cache_entry **) imp_sym,
+                                     (struct bfd_symbol **) imp_sym,
                                      imp_index);
        }
       else
index 5e3a59255495090a68253f91ac6b86eff6d951c5..8fdca41912f9bb6e687e1c65727b8778dff1026c 100644 (file)
@@ -98,7 +98,7 @@ CODE_FRAGMENT
 .typedef struct reloc_cache_entry
 .{
 .  {* A pointer into the canonical table of pointers.  *}
-.  struct symbol_cache_entry **sym_ptr_ptr;
+.  struct bfd_symbol **sym_ptr_ptr;
 .
 .  {* offset in section.  *}
 .  bfd_size_type address;
@@ -278,7 +278,7 @@ SUBSUBSECTION
         information that libbfd needs to know to tie up a back end's data.
 
 CODE_FRAGMENT
-.struct symbol_cache_entry;            {* Forward declaration.  *}
+.struct bfd_symbol;            {* Forward declaration.  *}
 .
 .struct reloc_howto_struct
 .{
@@ -322,7 +322,7 @@ CODE_FRAGMENT
 .     strange relocation methods to be accomodated (e.g., i960 callj
 .     instructions).  *}
 .  bfd_reloc_status_type (*special_function)
-.    (bfd *, arelent *, struct symbol_cache_entry *, void *, asection *,
+.    (bfd *, arelent *, struct bfd_symbol *, void *, asection *,
 .     bfd *, char **);
 .
 .  {* The textual name of the relocation type.  *}
index 3dcfcb297dc01cfec75d37ddff0b7567485f2f33..360d11776738e26fa2fa07b3b1cf638ebbc250d9 100644 (file)
@@ -514,8 +514,8 @@ CODE_FRAGMENT
 .  bfd *owner;
 .
 .  {* A symbol which points at this section only.  *}
-.  struct symbol_cache_entry *symbol;
-.  struct symbol_cache_entry **symbol_ptr_ptr;
+.  struct bfd_symbol *symbol;
+.  struct bfd_symbol **symbol_ptr_ptr;
 .
 .  struct bfd_link_order *link_order_head;
 .  struct bfd_link_order *link_order_tail;
@@ -553,10 +553,10 @@ CODE_FRAGMENT
 .  || ((SEC) == bfd_com_section_ptr)           \
 .  || ((SEC) == bfd_ind_section_ptr))
 .
-.extern const struct symbol_cache_entry * const bfd_abs_symbol;
-.extern const struct symbol_cache_entry * const bfd_com_symbol;
-.extern const struct symbol_cache_entry * const bfd_und_symbol;
-.extern const struct symbol_cache_entry * const bfd_ind_symbol;
+.extern const struct bfd_symbol * const bfd_abs_symbol;
+.extern const struct bfd_symbol * const bfd_com_symbol;
+.extern const struct bfd_symbol * const bfd_und_symbol;
+.extern const struct bfd_symbol * const bfd_ind_symbol;
 .#define bfd_get_section_size_before_reloc(section) \
 .     ((section)->_raw_size)
 .#define bfd_get_section_size_after_reloc(section) \
@@ -650,10 +650,10 @@ static const asymbol global_syms[] =
        0,            NULL,        NULL,              NULL,             \
                                                                        \
     /* symbol,                                                       */        \
-       (struct symbol_cache_entry *) &global_syms[IDX],                        \
+       (struct bfd_symbol *) &global_syms[IDX],                                \
                                                                        \
     /* symbol_ptr_ptr,                                               */        \
-       (struct symbol_cache_entry **) &SYM,                            \
+       (struct bfd_symbol **) &SYM,                                    \
                                                                        \
     /* link_order_head, link_order_tail                              */        \
        NULL,            NULL                                           \
index 86ea521909925a9b03aa7776a05dfcd65ee1a735..62acf12f686c979648707fe3e4750907bcd65733 100644 (file)
@@ -181,7 +181,7 @@ SUBSECTION
 CODE_FRAGMENT
 
 .
-.typedef struct symbol_cache_entry
+.typedef struct bfd_symbol
 .{
 .  {* A pointer to the BFD which owns the symbol. This information
 .     is necessary so that a back end can work out what additional
index 7bf8789c1b2e6714be89d0e8c8ffcbadce1f1154..701d18bdf778705754afe46d76524c90b67d0342 100644 (file)
@@ -341,20 +341,20 @@ BFD_JUMP_TABLE macros.
 .
 .  long        (*_bfd_get_symtab_upper_bound) (bfd *);
 .  long        (*_bfd_canonicalize_symtab)
-.    (bfd *, struct symbol_cache_entry **);
-.  struct symbol_cache_entry *
+.    (bfd *, struct bfd_symbol **);
+.  struct bfd_symbol *
 .              (*_bfd_make_empty_symbol) (bfd *);
 .  void        (*_bfd_print_symbol)
-.    (bfd *, void *, struct symbol_cache_entry *, bfd_print_symbol_type);
+.    (bfd *, void *, struct bfd_symbol *, bfd_print_symbol_type);
 .#define bfd_print_symbol(b,p,s,e) BFD_SEND (b, _bfd_print_symbol, (b,p,s,e))
 .  void        (*_bfd_get_symbol_info)
-.    (bfd *, struct symbol_cache_entry *, symbol_info *);
+.    (bfd *, struct bfd_symbol *, symbol_info *);
 .#define bfd_get_symbol_info(b,p,e) BFD_SEND (b, _bfd_get_symbol_info, (b,p,e))
 .  bfd_boolean (*_bfd_is_local_label_name) (bfd *, const char *);
 .
-.  alent *     (*_get_lineno) (bfd *, struct symbol_cache_entry *);
+.  alent *     (*_get_lineno) (bfd *, struct bfd_symbol *);
 .  bfd_boolean (*_bfd_find_nearest_line)
-.    (bfd *, struct bfd_section *, struct symbol_cache_entry **, bfd_vma,
+.    (bfd *, struct bfd_section *, struct bfd_symbol **, bfd_vma,
 .     const char **, const char **, unsigned int *);
 . {* Back-door to allow format-aware applications to create debug symbols
 .    while using BFD for everything else.  Currently used by the assembler
@@ -378,7 +378,7 @@ BFD_JUMP_TABLE macros.
 .
 .  long        (*_get_reloc_upper_bound) (bfd *, sec_ptr);
 .  long        (*_bfd_canonicalize_reloc)
-.    (bfd *, sec_ptr, arelent **, struct symbol_cache_entry **);
+.    (bfd *, sec_ptr, arelent **, struct bfd_symbol **);
 .  {* See documentation on reloc types.  *}
 .  reloc_howto_type *
 .              (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type);
@@ -411,7 +411,7 @@ BFD_JUMP_TABLE macros.
 .  int         (*_bfd_sizeof_headers) (bfd *, bfd_boolean);
 .  bfd_byte *  (*_bfd_get_relocated_section_contents)
 .    (bfd *, struct bfd_link_info *, struct bfd_link_order *,
-.     bfd_byte *, bfd_boolean, struct symbol_cache_entry **);
+.     bfd_byte *, bfd_boolean, struct bfd_symbol **);
 .
 .  bfd_boolean (*_bfd_relax_section)
 .    (bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *);
@@ -457,12 +457,12 @@ BFD_JUMP_TABLE macros.
 .  long        (*_bfd_get_dynamic_symtab_upper_bound) (bfd *);
 .  {* Read in the dynamic symbols.  *}
 .  long        (*_bfd_canonicalize_dynamic_symtab)
-.    (bfd *, struct symbol_cache_entry **);
+.    (bfd *, struct bfd_symbol **);
 .  {* Get the amount of memory required to hold the dynamic relocs.  *}
 .  long        (*_bfd_get_dynamic_reloc_upper_bound) (bfd *);
 .  {* Read in the dynamic relocs.  *}
 .  long        (*_bfd_canonicalize_dynamic_reloc)
-.    (bfd *, arelent **, struct symbol_cache_entry **);
+.    (bfd *, arelent **, struct bfd_symbol **);
 .
 
 A pointer to an alternative bfd_target in case the current one is not
index 137dc62e3dc860f203e5f4d85e8a62abe1e9a03c..a284693f0ca9da2afca41f1c09fca366f349afb8 100644 (file)
--- a/bfd/vms.h
+++ b/bfd/vms.h
@@ -594,7 +594,7 @@ struct vms_private_data_struct {
   vms_section *vms_section_table[VMS_SECTION_COUNT];
 
   struct bfd_hash_table *vms_symbol_table;
-  struct symbol_cache_entry **symcache;
+  struct bfd_symbol **symcache;
   int symnum;
 
   struct location_struct *location_stack;
index f93129381a4cb922f1e624aa038497314e9358bf..b5efd5c18127041c922cf5d64d84c6bc1c25fa13 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-30  Andrew Cagney  <cagney@redhat.com>
+
+       * emultempl/pe.em, pe-dll.c: Replace "struct symbol_cache_entry"
+       with "struct bfd_symbol".
+
 2003-10-30 Phil Edwards <phil@codesourcery.com>
 
        * Makefile.am (ALL_EMULATIONS): Add elf32mipswindiss.o.
index b16e5fa693adc40535e3e9fb21bb72ba9880f99a..109c4c1b54cf42a09c5912f0891082b7c519ec8d 100644 (file)
@@ -835,7 +835,7 @@ pe_fixup_stdcalls (void)
 static int
 make_import_fixup (arelent *rel, asection *s)
 {
-  struct symbol_cache_entry *sym = *rel->sym_ptr_ptr;
+  struct bfd_symbol *sym = *rel->sym_ptr_ptr;
   int addend = 0;
 
   if (pe_dll_extra_pe_debug)
@@ -1067,7 +1067,7 @@ gld_${EMULATION_NAME}_after_open (void)
 
                    for (i = 0; i < nrelocs; i++)
                      {
-                       struct symbol_cache_entry *s;
+                       struct bfd_symbol *s;
                        struct bfd_link_hash_entry * blhe;
                        bfd *other_bfd;
                        char *n;
index f9417be172a89a721eb6f7e42a2d2c2820fc5975..ebd3711507786b6d10421925f96dced7ad5f283a 100644 (file)
@@ -1031,7 +1031,7 @@ pe_walk_relocs_of_symbol (struct bfd_link_info *info,
 
          for (i = 0; i < nrelocs; i++)
            {
-             struct symbol_cache_entry *sym = *relocs[i]->sym_ptr_ptr;
+             struct bfd_symbol *sym = *relocs[i]->sym_ptr_ptr;
 
              if (!strcmp (name, sym->name))
                cb (relocs[i], s);
@@ -1112,14 +1112,14 @@ generate_reloc (bfd *abfd, struct bfd_link_info *info)
            {
              if (pe_dll_extra_pe_debug)
                {
-                 struct symbol_cache_entry *sym = *relocs[i]->sym_ptr_ptr;
+                 struct bfd_symbol *sym = *relocs[i]->sym_ptr_ptr;
                  printf ("rel: %s\n", sym->name);
                }
              if (!relocs[i]->howto->pc_relative
                  && relocs[i]->howto->type != pe_details->imagebase_reloc)
                {
                  bfd_vma sym_vma;
-                 struct symbol_cache_entry *sym = *relocs[i]->sym_ptr_ptr;
+                 struct bfd_symbol *sym = *relocs[i]->sym_ptr_ptr;
 
                  sym_vma = (relocs[i]->addend
                             + sym->value
@@ -1956,7 +1956,7 @@ make_import_fixup_mark (arelent *rel)
   static char *fixup_name = NULL;
   static size_t buffer_len = 0;
 
-  struct symbol_cache_entry *sym = *rel->sym_ptr_ptr;
+  struct bfd_symbol *sym = *rel->sym_ptr_ptr;
 
   bfd *abfd = bfd_asymbol_bfd (sym);
   struct bfd_link_hash_entry *bh;
@@ -2154,7 +2154,7 @@ void
 pe_create_import_fixup (arelent *rel, asection *s, int addend)
 {
   char buf[300];
-  struct symbol_cache_entry *sym = *rel->sym_ptr_ptr;
+  struct bfd_symbol *sym = *rel->sym_ptr_ptr;
   struct bfd_link_hash_entry *name_thunk_sym;
   const char *name = sym->name;
   char *fixup_name = make_import_fixup_mark (rel);
index 9e316d97c485c34bf7f9bd7f81b6a64109f71071..c7ff60508648e9204c7a7d5ceb38ed6cb669895e 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-30  Andrew Cagney  <cagney@redhat.com>
+
+       * sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
+       with "struct bfd_symbol".
+
 2003-10-21  Andrew Cagney  <cagney@redhat.com>
 
        * callback.c (os_truncate): Call "truncate", and not "stat".
index 6f565c7874b266fac1cae9e1c7a99caec78d0803..fde98470bc84779c2ab2f9195aa35ee9090f107d 100644 (file)
@@ -175,7 +175,7 @@ typedef struct {
 #define STATE_PROG_BFD(sd) ((sd)->base.prog_bfd)
 
   /* Symbol table for prog_bfd */
-  struct symbol_cache_entry **prog_syms;
+  struct bfd_symbol **prog_syms;
 #define STATE_PROG_SYMS(sd) ((sd)->base.prog_syms)
 
   /* The program's text section.  */
index bbdff623486119295098cc2e5b90c5f5a5a58cf2..ccae100c2d71e5d8c325b2f539141e89e21eb002 100644 (file)
@@ -1263,7 +1263,7 @@ trace_one_insn (SIM_DESC sd, sim_cpu *cpu, address_word pc,
 
          if (bfd_find_nearest_line (STATE_PROG_BFD (CPU_STATE (cpu)),
                                     STATE_TEXT_SECTION (CPU_STATE (cpu)),
-                                    (struct symbol_cache_entry **) 0,
+                                    (struct bfd_symbol **) 0,
                                     pc - STATE_TEXT_START (CPU_STATE (cpu)),
                                     &pc_filename, &pc_function, &pc_linenum))
            {
index f8e70a531c5017b86f87c531263793b01d8557d8..e5aff5619898c1753675ac6fcb6d6895fd06b0d8 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-30  Andrew Cagney  <cagney@redhat.com>
+
+       * simops.c: Replace "struct symbol_cache_entry" with "struct
+       bfd_symbol".
+
 2003-06-22  Andrew Cagney  <cagney@redhat.com>
 
        * interp.c (xfer_mem): Simplify.  Only do a single partial
index fbffa4d5602ce3e0807842e7dcb72c7df1e0a1e0..0b58505762214581f6794f1e539e34ab5b24e2fd 100644 (file)
@@ -206,7 +206,7 @@ trace_input_func (name, in1, in2, in3)
          filename = (const char *)0;
          functionname = (const char *)0;
          linenumber = 0;
-         if (bfd_find_nearest_line (prog_bfd, text, (struct symbol_cache_entry **)0, byte_pc - text_start,
+         if (bfd_find_nearest_line (prog_bfd, text, (struct bfd_symbol **)0, byte_pc - text_start,
                                     &filename, &functionname, &linenumber))
            {
              p = buf;
index 12fe6b3f1316a178dc993cde070b8314b40e9222..63c8e98c9743ed58afad4bade7c13c11b2c319f3 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-30  Andrew Cagney  <cagney@redhat.com>
+
+       * traps.c: Replace "struct symbol_cache_entry" with "struct
+       bfd_symbol".
+
 2003-10-10  Dave Brolley  <brolley@redhat.com>
 
        * cpu.h, sem.c: Regenerate.
index 603dc21808e87872c5c7c23a94bb3e2fbae3ee7d..f7b4b746f8608d939c626af2cf6da1c70ca78749 100644 (file)
@@ -191,7 +191,7 @@ frv_itrap (SIM_CPU *current_cpu, PCADDR pc, USI base, SI offset)
 
            if (bfd_find_nearest_line (STATE_PROG_BFD (sd),
                                       STATE_TEXT_SECTION (sd),
-                                      (struct symbol_cache_entry **) 0,
+                                      (struct bfd_symbol **) 0,
                                       pc - STATE_TEXT_START (sd),
                                       &pc_filename, &pc_function, &pc_linenum)
                && (pc_function || pc_filename))
This page took 0.05063 seconds and 4 git commands to generate.