Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/bfd/libcoff-in.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* BFD COFF object file private structure.
    22   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    3    2000, 2001
     3   2000, 2001, 2002
    44   Free Software Foundation, Inc.
    55   Written by Cygnus Support.
    6 
    7 ** NOTE: libcoff.h is a GENERATED file.  Don't change it; instead,
    8 ** change libcoff-in.h or coffcode.h.
    96
    107This file is part of BFD, the Binary File Descriptor library.
     
    7875     _bfd_coff_get_external_symbols.  */
    7976  PTR external_syms;
    80   /* If this is true, the external_syms may not be freed.  */
    81   boolean keep_syms;
     77  /* If this is TRUE, the external_syms may not be freed.  */
     78  bfd_boolean keep_syms;
    8279
    8380  /* The string table.  May be NULL.  Read by
    8481     _bfd_coff_read_string_table.  */
    8582  char *strings;
    86   /* If this is true, the strings may not be freed.  */
    87   boolean keep_strings;
    88   /* If this is true, the strings have been written out already.  */
    89   boolean strings_written;
     83  /* If this is TRUE, the strings may not be freed.  */
     84  bfd_boolean keep_strings;
     85  /* If this is TRUE, the strings have been written out already.  */
     86  bfd_boolean strings_written;
    9087
    9188  /* is this a PE format coff file */
     
    121118  int dll;
    122119  int has_reloc_section;
    123   boolean (*in_reloc_p) PARAMS((bfd *, reloc_howto_type *));
     120  bfd_boolean (*in_reloc_p) PARAMS((bfd *, reloc_howto_type *));
    124121  flagword real_flags;
    125122  int target_subsystem;
    126   boolean force_minimum_alignment;
     123  bfd_boolean force_minimum_alignment;
    127124} pe_data_type;
    128125
     
    136133  coff_data_type coff;
    137134
    138   /* True if this is an XCOFF64 file. */
    139   boolean xcoff64;
    140 
    141   /* True if a large a.out header should be generated.  */
    142   boolean full_aouthdr;
     135  /* TRUE if this is an XCOFF64 file. */
     136  bfd_boolean xcoff64;
     137
     138  /* TRUE if a large a.out header should be generated.  */
     139  bfd_boolean full_aouthdr;
    143140
    144141  /* TOC value.  */
     
    177174#define xcoff_data(abfd) ((abfd)->tdata.xcoff_obj_data)
    178175
    179 /* We take the address of the first element of a asymbol to ensure that the
     176/* We take the address of the first element of an asymbol to ensure that the
    180177 * macro is only ever applied to an asymbol.  */
    181178#define coffsymbol(asymbol) ((coff_symbol_type *)(&((asymbol)->the_bfd)))
     
    188185  /* The relocs, swapped into COFF internal form.  This may be NULL.  */
    189186  struct internal_reloc *relocs;
    190   /* If this is true, the relocs entry may not be freed.  */
    191   boolean keep_relocs;
     187  /* If this is TRUE, the relocs entry may not be freed.  */
     188  bfd_boolean keep_relocs;
    192189  /* The section contents.  This may be NULL.  */
    193190  bfd_byte *contents;
    194   /* If this is true, the contents entry may not be freed.  */
    195   boolean keep_contents;
     191  /* If this is TRUE, the contents entry may not be freed.  */
     192  bfd_boolean keep_contents;
    196193  /* Information cached by coff_find_nearest_line.  */
    197194  bfd_vma offset;
     
    295292  (bfd_link_hash_traverse                                               \
    296293   (&(table)->root,                                                     \
    297     (boolean (*) PARAMS ((struct bfd_link_hash_entry *, PTR))) (func),  \
     294    (bfd_boolean (*) PARAMS ((struct bfd_link_hash_entry *, PTR))) (func), \
    298295    (info)))
    299296
     
    303300
    304301/* Functions in coffgen.c.  */
    305 extern const bfd_target *coff_object_p PARAMS ((bfd *));
    306 extern struct sec *coff_section_from_bfd_index PARAMS ((bfd *, int));
    307 extern long coff_get_symtab_upper_bound PARAMS ((bfd *));
    308 extern long coff_get_symtab PARAMS ((bfd *, asymbol **));
    309 extern int coff_count_linenumbers PARAMS ((bfd *));
    310 extern struct coff_symbol_struct *coff_symbol_from PARAMS ((bfd *, asymbol *));
    311 extern boolean coff_renumber_symbols PARAMS ((bfd *, int *));
    312 extern void coff_mangle_symbols PARAMS ((bfd *));
    313 extern boolean coff_write_symbols PARAMS ((bfd *));
    314 extern boolean coff_write_linenumbers PARAMS ((bfd *));
    315 extern alent *coff_get_lineno PARAMS ((bfd *, asymbol *));
    316 extern asymbol *coff_section_symbol PARAMS ((bfd *, char *));
    317 extern boolean _bfd_coff_get_external_symbols PARAMS ((bfd *));
    318 extern const char *_bfd_coff_read_string_table PARAMS ((bfd *));
    319 extern boolean _bfd_coff_free_symbols PARAMS ((bfd *));
    320 extern struct coff_ptr_struct *coff_get_normalized_symtab PARAMS ((bfd *));
    321 extern long coff_get_reloc_upper_bound PARAMS ((bfd *, sec_ptr));
    322 extern asymbol *coff_make_empty_symbol PARAMS ((bfd *));
    323 extern void coff_print_symbol PARAMS ((bfd *, PTR filep, asymbol *,
    324                                        bfd_print_symbol_type how));
    325 extern void coff_get_symbol_info PARAMS ((bfd *, asymbol *,
    326                                           symbol_info *ret));
    327 extern boolean _bfd_coff_is_local_label_name PARAMS ((bfd *, const char *));
    328 extern asymbol *coff_bfd_make_debug_symbol PARAMS ((bfd *, PTR,
    329                                                     unsigned long));
    330 extern boolean coff_find_nearest_line PARAMS ((bfd *,
    331                                                asection *,
    332                                                asymbol **,
    333                                                bfd_vma offset,
    334                                                CONST char **filename_ptr,
    335                                                CONST char **functionname_ptr,
    336                                                unsigned int *line_ptr));
    337 extern int coff_sizeof_headers PARAMS ((bfd *, boolean reloc));
    338 extern boolean bfd_coff_reloc16_relax_section
    339   PARAMS ((bfd *, asection *, struct bfd_link_info *, boolean *));
     302extern const bfd_target *coff_object_p
     303  PARAMS ((bfd *));
     304extern struct sec *coff_section_from_bfd_index
     305  PARAMS ((bfd *, int));
     306extern long coff_get_symtab_upper_bound
     307  PARAMS ((bfd *));
     308extern long coff_get_symtab
     309  PARAMS ((bfd *, asymbol **));
     310extern int coff_count_linenumbers
     311  PARAMS ((bfd *));
     312extern struct coff_symbol_struct *coff_symbol_from
     313  PARAMS ((bfd *, asymbol *));
     314extern bfd_boolean coff_renumber_symbols
     315  PARAMS ((bfd *, int *));
     316extern void coff_mangle_symbols
     317  PARAMS ((bfd *));
     318extern bfd_boolean coff_write_symbols
     319  PARAMS ((bfd *));
     320extern bfd_boolean coff_write_linenumbers
     321  PARAMS ((bfd *));
     322extern alent *coff_get_lineno
     323  PARAMS ((bfd *, asymbol *));
     324extern asymbol *coff_section_symbol
     325  PARAMS ((bfd *, char *));
     326extern bfd_boolean _bfd_coff_get_external_symbols
     327  PARAMS ((bfd *));
     328extern const char *_bfd_coff_read_string_table
     329  PARAMS ((bfd *));
     330extern bfd_boolean _bfd_coff_free_symbols
     331  PARAMS ((bfd *));
     332extern struct coff_ptr_struct *coff_get_normalized_symtab
     333  PARAMS ((bfd *));
     334extern long coff_get_reloc_upper_bound
     335  PARAMS ((bfd *, sec_ptr));
     336extern asymbol *coff_make_empty_symbol
     337  PARAMS ((bfd *));
     338extern void coff_print_symbol
     339  PARAMS ((bfd *, PTR filep, asymbol *, bfd_print_symbol_type));
     340extern void coff_get_symbol_info
     341  PARAMS ((bfd *, asymbol *, symbol_info *ret));
     342extern bfd_boolean _bfd_coff_is_local_label_name
     343  PARAMS ((bfd *, const char *));
     344extern asymbol *coff_bfd_make_debug_symbol
     345  PARAMS ((bfd *, PTR, unsigned long));
     346extern bfd_boolean coff_find_nearest_line
     347  PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **,
     348           const char **, unsigned int *));
     349extern int coff_sizeof_headers
     350  PARAMS ((bfd *, bfd_boolean));
     351extern bfd_boolean bfd_coff_reloc16_relax_section
     352  PARAMS ((bfd *, asection *, struct bfd_link_info *, bfd_boolean *));
    340353extern bfd_byte *bfd_coff_reloc16_get_relocated_section_contents
    341354  PARAMS ((bfd *, struct bfd_link_info *, struct bfd_link_order *,
    342            bfd_byte *, boolean relocateable, asymbol **));
    343 extern bfd_vma bfd_coff_reloc16_get_value PARAMS ((arelent *,
    344                                                    struct bfd_link_info *,
    345                                                    asection *));
    346 extern void bfd_perform_slip PARAMS ((bfd *abfd, unsigned int slip,
    347                                       asection *input_section,
    348                                       bfd_vma val));
     355           bfd_byte *, bfd_boolean, asymbol **));
     356extern bfd_vma bfd_coff_reloc16_get_value
     357   PARAMS ((arelent *, struct bfd_link_info *, asection *));
     358extern void bfd_perform_slip
     359  PARAMS ((bfd *, unsigned int, asection *, bfd_vma));
    349360
    350361/* Functions and types in cofflink.c.  */
     
    444455  bfd *output_bfd;
    445456  /* Used to indicate failure in traversal routine.  */
    446   boolean failed;
     457  bfd_boolean failed;
    447458  /* If doing "task linking" set only during the time when we want the
    448459     global symbol writer to convert the storage class of defined global
    449460     symbols from global to static. */
    450   boolean global_to_static;
     461  bfd_boolean global_to_static;
    451462  /* Hash table for long symbol names.  */
    452463  struct bfd_strtab_hash *strtab;
     
    522533extern struct bfd_hash_entry *_bfd_coff_link_hash_newfunc
    523534  PARAMS ((struct bfd_hash_entry *, struct bfd_hash_table *, const char *));
    524 extern boolean _bfd_coff_link_hash_table_init
     535extern bfd_boolean _bfd_coff_link_hash_table_init
    525536  PARAMS ((struct coff_link_hash_table *, bfd *,
    526537           struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
     
    531542extern const char *_bfd_coff_internal_syment_name
    532543  PARAMS ((bfd *, const struct internal_syment *, char *));
    533 extern boolean _bfd_coff_link_add_symbols
     544extern bfd_boolean _bfd_coff_link_add_symbols
    534545  PARAMS ((bfd *, struct bfd_link_info *));
    535 extern boolean _bfd_coff_final_link
     546extern bfd_boolean _bfd_coff_final_link
    536547  PARAMS ((bfd *, struct bfd_link_info *));
    537548extern struct internal_reloc *_bfd_coff_read_internal_relocs
    538   PARAMS ((bfd *, asection *, boolean, bfd_byte *, boolean,
     549  PARAMS ((bfd *, asection *, bfd_boolean, bfd_byte *, bfd_boolean,
    539550           struct internal_reloc *));
    540 extern boolean _bfd_coff_generic_relocate_section
     551extern bfd_boolean _bfd_coff_generic_relocate_section
    541552  PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
    542553           struct internal_reloc *, struct internal_syment *, asection **));
     
    544555extern struct bfd_hash_entry *_bfd_coff_debug_merge_hash_newfunc
    545556  PARAMS ((struct bfd_hash_entry *, struct bfd_hash_table *, const char *));
    546 extern boolean _bfd_coff_write_global_sym
     557extern bfd_boolean _bfd_coff_write_global_sym
    547558  PARAMS ((struct coff_link_hash_entry *, PTR));
    548 extern boolean _bfd_coff_write_task_globals
     559extern bfd_boolean _bfd_coff_write_task_globals
    549560  PARAMS ((struct coff_link_hash_entry *, PTR));
    550 extern boolean _bfd_coff_link_input_bfd
     561extern bfd_boolean _bfd_coff_link_input_bfd
    551562  PARAMS ((struct coff_final_link_info *, bfd *));
    552 extern boolean _bfd_coff_reloc_link_order
     563extern bfd_boolean _bfd_coff_reloc_link_order
    553564  PARAMS ((bfd *, struct coff_final_link_info *, asection *,
    554565           struct bfd_link_order *));
     
    560571/* Functions in xcofflink.c.  */
    561572
    562 extern long _bfd_xcoff_get_dynamic_symtab_upper_bound PARAMS ((bfd *));
     573extern long _bfd_xcoff_get_dynamic_symtab_upper_bound
     574  PARAMS ((bfd *));
    563575extern long _bfd_xcoff_canonicalize_dynamic_symtab
    564576  PARAMS ((bfd *, asymbol **));
    565 extern long _bfd_xcoff_get_dynamic_reloc_upper_bound PARAMS ((bfd *));
     577extern long _bfd_xcoff_get_dynamic_reloc_upper_bound
     578  PARAMS ((bfd *));
    566579extern long _bfd_xcoff_canonicalize_dynamic_reloc
    567580  PARAMS ((bfd *, arelent **, asymbol **));
    568581extern struct bfd_link_hash_table *_bfd_xcoff_bfd_link_hash_table_create
    569582  PARAMS ((bfd *));
    570 extern boolean _bfd_xcoff_bfd_link_add_symbols
     583extern void _bfd_xcoff_bfd_link_hash_table_free
     584  PARAMS ((struct bfd_link_hash_table *));
     585extern bfd_boolean _bfd_xcoff_bfd_link_add_symbols
    571586  PARAMS ((bfd *, struct bfd_link_info *));
    572 extern boolean _bfd_xcoff_bfd_final_link
     587extern bfd_boolean _bfd_xcoff_bfd_final_link
    573588  PARAMS ((bfd *, struct bfd_link_info *));
    574 extern boolean _bfd_ppc_xcoff_relocate_section
     589extern bfd_boolean _bfd_ppc_xcoff_relocate_section
    575590  PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
    576591           struct internal_reloc *, struct internal_syment *, asection **));
     
    579594   linker, and so should start with bfd and be declared in bfd.h.  */
    580595
    581 extern boolean ppc_allocate_toc_section PARAMS ((struct bfd_link_info *));
    582 extern boolean ppc_process_before_allocation
     596extern bfd_boolean ppc_allocate_toc_section
     597  PARAMS ((struct bfd_link_info *));
     598extern bfd_boolean ppc_process_before_allocation
    583599  PARAMS ((bfd *, struct bfd_link_info *));
    584600
    585 /* And more taken from the source .. */
    586 
Note: See TracChangeset for help on using the changeset viewer.