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/libbfd-in.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    22   (This include file is not for users of the library.)
    33   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4    2000, 2001
     4   2000, 2001, 2002
    55   Free Software Foundation, Inc.
    66   Written by Cygnus Support.
    7 
    8 ** NOTE: libbfd.h is a GENERATED file.  Don't change it; instead,
    9 ** change libbfd-in.h or the other BFD source files processed to
    10 ** generate this file.
    117
    128This file is part of BFD, the Binary File Descriptor library.
     
    3026   to wrap around if the address is within boundary-1 of the end of the
    3127   address space.  */
    32 #define BFD_ALIGN(this, boundary)                                       \
    33   ((((bfd_vma) (this) + (boundary) - 1) >= (bfd_vma) (this))            \
    34    ? (((bfd_vma) (this) + ((boundary) - 1)) & (~((boundary)-1)))        \
     28#define BFD_ALIGN(this, boundary)                                         \
     29  ((((bfd_vma) (this) + (boundary) - 1) >= (bfd_vma) (this))              \
     30   ? (((bfd_vma) (this) + ((boundary) - 1)) & ~ (bfd_vma) ((boundary)-1)) \
    3531   : ~ (bfd_vma) 0)
    3632
     
    8884#define arelt_size(bfd) (((struct areltdata *)((bfd)->arelt_data))->parsed_size)
    8985
    90 extern PTR bfd_malloc PARAMS ((size_t));
    91 extern PTR bfd_realloc PARAMS ((PTR, size_t));
    92 extern PTR bfd_zmalloc PARAMS ((size_t));
     86extern PTR bfd_malloc
     87  PARAMS ((bfd_size_type));
     88extern PTR bfd_realloc
     89  PARAMS ((PTR, bfd_size_type));
     90extern PTR bfd_zmalloc
     91  PARAMS ((bfd_size_type));
    9392
    9493extern bfd_error_handler_type _bfd_error_handler;
     
    9695/* These routines allocate and free things on the BFD's objalloc.  */
    9796
    98 extern PTR bfd_alloc PARAMS ((bfd *, size_t));
    99 extern PTR bfd_zalloc PARAMS ((bfd *, size_t));
    100 extern void bfd_release PARAMS ((bfd *, PTR));
    101 
    102 bfd *   _bfd_create_empty_archive_element_shell PARAMS ((bfd *obfd));
    103 bfd *   _bfd_look_for_bfd_in_cache PARAMS ((bfd *arch_bfd, file_ptr index));
    104 boolean _bfd_add_bfd_to_archive_cache PARAMS ((bfd *, file_ptr, bfd *));
    105 boolean _bfd_generic_mkarchive PARAMS ((bfd *abfd));
    106 const bfd_target *bfd_generic_archive_p PARAMS ((bfd *abfd));
    107 boolean bfd_slurp_armap PARAMS ((bfd *abfd));
    108 boolean bfd_slurp_bsd_armap_f2 PARAMS ((bfd *abfd));
     97extern PTR bfd_alloc
     98  PARAMS ((bfd *, bfd_size_type));
     99extern PTR bfd_zalloc
     100  PARAMS ((bfd *, bfd_size_type));
     101extern void bfd_release
     102  PARAMS ((bfd *, PTR));
     103
     104bfd * _bfd_create_empty_archive_element_shell
     105  PARAMS ((bfd *obfd));
     106bfd * _bfd_look_for_bfd_in_cache
     107  PARAMS ((bfd *, file_ptr));
     108bfd_boolean _bfd_add_bfd_to_archive_cache
     109  PARAMS ((bfd *, file_ptr, bfd *));
     110bfd_boolean _bfd_generic_mkarchive
     111  PARAMS ((bfd *abfd));
     112const bfd_target *bfd_generic_archive_p
     113  PARAMS ((bfd *abfd));
     114bfd_boolean bfd_slurp_armap
     115  PARAMS ((bfd *abfd));
     116bfd_boolean bfd_slurp_bsd_armap_f2
     117  PARAMS ((bfd *abfd));
    109118#define bfd_slurp_bsd_armap bfd_slurp_armap
    110119#define bfd_slurp_coff_armap bfd_slurp_armap
    111 boolean _bfd_slurp_extended_name_table PARAMS ((bfd *abfd));
    112 extern boolean _bfd_construct_extended_name_table
    113   PARAMS ((bfd *, boolean, char **, bfd_size_type *));
    114 boolean _bfd_write_archive_contents PARAMS ((bfd *abfd));
    115 boolean _bfd_compute_and_write_armap PARAMS ((bfd *, unsigned int elength));
    116 bfd *_bfd_get_elt_at_filepos PARAMS ((bfd *archive, file_ptr filepos));
    117 extern bfd *_bfd_generic_get_elt_at_index PARAMS ((bfd *, symindex));
    118 bfd * _bfd_new_bfd PARAMS ((void));
    119 
    120 boolean bfd_false PARAMS ((bfd *ignore));
    121 boolean bfd_true PARAMS ((bfd *ignore));
    122 PTR     bfd_nullvoidptr PARAMS ((bfd *ignore));
    123 int     bfd_0 PARAMS ((bfd *ignore));
    124 unsigned int    bfd_0u PARAMS ((bfd *ignore));
    125 long    bfd_0l PARAMS ((bfd *ignore));
    126 long    _bfd_n1 PARAMS ((bfd *ignore));
    127 void    bfd_void PARAMS ((bfd *ignore));
    128 
    129 bfd *_bfd_new_bfd_contained_in PARAMS ((bfd *));
    130 const bfd_target *_bfd_dummy_target PARAMS ((bfd *abfd));
    131 
    132 void    bfd_dont_truncate_arname PARAMS ((bfd *abfd, const char *filename,
    133                                         char *hdr));
    134 void    bfd_bsd_truncate_arname PARAMS ((bfd *abfd, const char *filename,
    135                                         char *hdr));
    136 void    bfd_gnu_truncate_arname PARAMS ((bfd *abfd, const char *filename,
    137                                         char *hdr));
    138 
    139 boolean bsd_write_armap PARAMS ((bfd *arch, unsigned int elength,
    140                                   struct orl *map, unsigned int orl_count, int stridx));
    141 
    142 boolean coff_write_armap PARAMS ((bfd *arch, unsigned int elength,
    143                                    struct orl *map, unsigned int orl_count, int stridx));
    144 
    145 extern PTR _bfd_generic_read_ar_hdr PARAMS ((bfd *));
    146 
    147 extern PTR _bfd_generic_read_ar_hdr_mag PARAMS ((bfd *, const char *));
    148 
    149 bfd *   bfd_generic_openr_next_archived_file PARAMS ((bfd *archive,
    150                                                      bfd *last_file));
    151 
    152 int     bfd_generic_stat_arch_elt PARAMS ((bfd *, struct stat *));
     120bfd_boolean _bfd_slurp_extended_name_table
     121  PARAMS ((bfd *abfd));
     122extern bfd_boolean _bfd_construct_extended_name_table
     123  PARAMS ((bfd *, bfd_boolean, char **, bfd_size_type *));
     124bfd_boolean _bfd_write_archive_contents
     125  PARAMS ((bfd *abfd));
     126bfd_boolean _bfd_compute_and_write_armap
     127  PARAMS ((bfd *, unsigned int elength));
     128bfd *_bfd_get_elt_at_filepos
     129  PARAMS ((bfd *archive, file_ptr filepos));
     130extern bfd *_bfd_generic_get_elt_at_index
     131  PARAMS ((bfd *, symindex));
     132bfd * _bfd_new_bfd
     133  PARAMS ((void));
     134void _bfd_delete_bfd
     135  PARAMS ((bfd *));
     136
     137bfd_boolean bfd_false
     138  PARAMS ((bfd *ignore));
     139bfd_boolean bfd_true
     140  PARAMS ((bfd *ignore));
     141PTR bfd_nullvoidptr
     142  PARAMS ((bfd *ignore));
     143int bfd_0
     144  PARAMS ((bfd *ignore));
     145unsigned int bfd_0u
     146  PARAMS ((bfd *ignore));
     147long bfd_0l
     148  PARAMS ((bfd *ignore));
     149long _bfd_n1
     150  PARAMS ((bfd *ignore));
     151void bfd_void
     152  PARAMS ((bfd *ignore));
     153
     154bfd *_bfd_new_bfd_contained_in
     155  PARAMS ((bfd *));
     156const bfd_target *_bfd_dummy_target
     157  PARAMS ((bfd *abfd));
     158
     159void bfd_dont_truncate_arname
     160  PARAMS ((bfd *abfd, const char *filename, char *hdr));
     161void bfd_bsd_truncate_arname
     162  PARAMS ((bfd *abfd, const char *filename, char *hdr));
     163void bfd_gnu_truncate_arname
     164  PARAMS ((bfd *abfd, const char *filename, char *hdr));
     165
     166bfd_boolean bsd_write_armap
     167  PARAMS ((bfd *arch, unsigned int elength, struct orl *map,
     168           unsigned int orl_count, int stridx));
     169
     170bfd_boolean coff_write_armap
     171  PARAMS ((bfd *arch, unsigned int elength, struct orl *map,
     172           unsigned int orl_count, int stridx));
     173
     174extern PTR _bfd_generic_read_ar_hdr
     175  PARAMS ((bfd *));
     176
     177extern PTR _bfd_generic_read_ar_hdr_mag
     178  PARAMS ((bfd *, const char *));
     179
     180bfd * bfd_generic_openr_next_archived_file
     181  PARAMS ((bfd *archive, bfd *last_file));
     182
     183int bfd_generic_stat_arch_elt
     184  PARAMS ((bfd *, struct stat *));
    153185
    154186#define _bfd_read_ar_hdr(abfd) \
     
    162194#define _bfd_generic_bfd_free_cached_info bfd_true
    163195#define _bfd_generic_new_section_hook \
    164   ((boolean (*) PARAMS ((bfd *, asection *))) bfd_true)
    165 extern boolean _bfd_generic_get_section_contents
    166   PARAMS ((bfd *, asection *, PTR location, file_ptr offset,
    167            bfd_size_type count));
    168 extern boolean _bfd_generic_get_section_contents_in_window
     196  ((bfd_boolean (*) PARAMS ((bfd *, asection *))) bfd_true)
     197extern bfd_boolean _bfd_generic_get_section_contents
     198  PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type));
     199extern bfd_boolean _bfd_generic_get_section_contents_in_window
    169200  PARAMS ((bfd *, asection *, bfd_window *, file_ptr, bfd_size_type));
    170201
     
    173204
    174205#define _bfd_generic_bfd_copy_private_bfd_data \
    175   ((boolean (*) PARAMS ((bfd *, bfd *))) bfd_true)
     206  ((bfd_boolean (*) PARAMS ((bfd *, bfd *))) bfd_true)
    176207#define _bfd_generic_bfd_merge_private_bfd_data \
    177   ((boolean (*) PARAMS ((bfd *, bfd *))) bfd_true)
     208  ((bfd_boolean (*) PARAMS ((bfd *, bfd *))) bfd_true)
    178209#define _bfd_generic_bfd_set_private_flags \
    179   ((boolean (*) PARAMS ((bfd *, flagword))) bfd_true)
     210  ((bfd_boolean (*) PARAMS ((bfd *, flagword))) bfd_true)
    180211#define _bfd_generic_bfd_copy_private_section_data \
    181   ((boolean (*) PARAMS ((bfd *, asection *, bfd *, asection *))) bfd_true)
     212  ((bfd_boolean (*) PARAMS ((bfd *, asection *, bfd *, asection *))) bfd_true)
    182213#define _bfd_generic_bfd_copy_private_symbol_data \
    183   ((boolean (*) PARAMS ((bfd *, asymbol *, bfd *, asymbol *))) bfd_true)
     214  ((bfd_boolean (*) PARAMS ((bfd *, asymbol *, bfd *, asymbol *))) bfd_true)
    184215#define _bfd_generic_bfd_print_private_bfd_data \
    185   ((boolean (*) PARAMS ((bfd *, PTR))) bfd_true)
     216  ((bfd_boolean (*) PARAMS ((bfd *, PTR))) bfd_true)
    186217
    187218/* Routines to use for BFD_JUMP_TABLE_CORE when there is no core file
    188219   support.  Use BFD_JUMP_TABLE_CORE (_bfd_nocore).  */
    189220
    190 extern char *_bfd_nocore_core_file_failing_command PARAMS ((bfd *));
    191 extern int _bfd_nocore_core_file_failing_signal PARAMS ((bfd *));
    192 extern boolean _bfd_nocore_core_file_matches_executable_p
     221extern char *_bfd_nocore_core_file_failing_command
     222  PARAMS ((bfd *));
     223extern int _bfd_nocore_core_file_failing_signal
     224  PARAMS ((bfd *));
     225extern bfd_boolean _bfd_nocore_core_file_matches_executable_p
    193226  PARAMS ((bfd *, bfd *));
    194227
     
    199232#define _bfd_noarchive_slurp_extended_name_table bfd_false
    200233#define _bfd_noarchive_construct_extended_name_table \
    201   ((boolean (*) PARAMS ((bfd *, char **, bfd_size_type *, const char **))) \
     234  ((bfd_boolean (*) \
     235    PARAMS ((bfd *, char **, bfd_size_type *, const char **))) \
    202236   bfd_false)
    203237#define _bfd_noarchive_truncate_arname \
    204238  ((void (*) PARAMS ((bfd *, const char *, char *))) bfd_void)
    205239#define _bfd_noarchive_write_armap \
    206   ((boolean (*) \
     240  ((bfd_boolean (*) \
    207241    PARAMS ((bfd *, unsigned int, struct orl *, unsigned int, int))) \
    208242   bfd_false)
     
    221255#define _bfd_archive_bsd_slurp_extended_name_table \
    222256  _bfd_slurp_extended_name_table
    223 extern boolean _bfd_archive_bsd_construct_extended_name_table
     257extern bfd_boolean _bfd_archive_bsd_construct_extended_name_table
    224258  PARAMS ((bfd *, char **, bfd_size_type *, const char **));
    225259#define _bfd_archive_bsd_truncate_arname bfd_bsd_truncate_arname
     
    231265#define _bfd_archive_bsd_generic_stat_arch_elt \
    232266  bfd_generic_stat_arch_elt
    233 extern boolean _bfd_archive_bsd_update_armap_timestamp PARAMS ((bfd *));
     267extern bfd_boolean _bfd_archive_bsd_update_armap_timestamp
     268  PARAMS ((bfd *));
    234269
    235270/* Routines to use for BFD_JUMP_TABLE_ARCHIVE to get COFF style
     
    239274#define _bfd_archive_coff_slurp_extended_name_table \
    240275  _bfd_slurp_extended_name_table
    241 extern boolean _bfd_archive_coff_construct_extended_name_table
     276extern bfd_boolean _bfd_archive_coff_construct_extended_name_table
    242277  PARAMS ((bfd *, char **, bfd_size_type *, const char **));
    243278#define _bfd_archive_coff_truncate_arname bfd_dont_truncate_arname
     
    257292#define _bfd_nosymbols_get_symtab \
    258293  ((long (*) PARAMS ((bfd *, asymbol **))) _bfd_n1)
    259 #define _bfd_nosymbols_make_empty_symbol \
    260   ((asymbol *(*) PARAMS ((bfd *))) bfd_nullvoidptr)
     294#define _bfd_nosymbols_make_empty_symbol _bfd_generic_make_empty_symbol
    261295#define _bfd_nosymbols_print_symbol \
    262296  ((void (*) PARAMS ((bfd *, PTR, asymbol *, bfd_print_symbol_type))) bfd_void)
     
    264298  ((void (*) PARAMS ((bfd *, asymbol *, symbol_info *))) bfd_void)
    265299#define _bfd_nosymbols_bfd_is_local_label_name \
    266   ((boolean (*) PARAMS ((bfd *, const char *))) bfd_false)
     300  ((bfd_boolean (*) PARAMS ((bfd *, const char *))) bfd_false)
    267301#define _bfd_nosymbols_get_lineno \
    268302  ((alent *(*) PARAMS ((bfd *, asymbol *))) bfd_nullvoidptr)
    269303#define _bfd_nosymbols_find_nearest_line \
    270   ((boolean (*) \
     304  ((bfd_boolean (*) \
    271305    PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **, \
    272306             const char **, unsigned int *))) \
     
    275309  ((asymbol *(*) PARAMS ((bfd *, PTR, unsigned long))) bfd_nullvoidptr)
    276310#define _bfd_nosymbols_read_minisymbols \
    277   ((long (*) PARAMS ((bfd *, boolean, PTR *, unsigned int *))) _bfd_n1)
     311  ((long (*) PARAMS ((bfd *, bfd_boolean, PTR *, unsigned int *))) _bfd_n1)
    278312#define _bfd_nosymbols_minisymbol_to_symbol \
    279   ((asymbol *(*) PARAMS ((bfd *, boolean, const PTR, asymbol *))) \
     313  ((asymbol *(*) PARAMS ((bfd *, bfd_boolean, const PTR, asymbol *))) \
    280314   bfd_nullvoidptr)
    281315
     
    295329
    296330#define _bfd_nowrite_set_arch_mach \
    297   ((boolean (*) PARAMS ((bfd *, enum bfd_architecture, unsigned long))) \
     331  ((bfd_boolean (*) PARAMS ((bfd *, enum bfd_architecture, unsigned long))) \
    298332   bfd_false)
    299333#define _bfd_nowrite_set_section_contents \
    300   ((boolean (*) PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type))) \
     334  ((bfd_boolean (*) \
     335   PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type))) \
    301336   bfd_false)
    302337
     
    305340
    306341#define _bfd_generic_set_arch_mach bfd_default_set_arch_mach
    307 extern boolean _bfd_generic_set_section_contents
     342extern bfd_boolean _bfd_generic_set_section_contents
    308343  PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type));
    309344
     
    311346   support linking.  Use BFD_JUMP_TABLE_LINK (_bfd_nolink).  */
    312347
    313 #define _bfd_nolink_sizeof_headers ((int (*) PARAMS ((bfd *, boolean))) bfd_0)
     348#define _bfd_nolink_sizeof_headers ((int (*) PARAMS ((bfd *, bfd_boolean))) bfd_0)
    314349#define _bfd_nolink_bfd_get_relocated_section_contents \
    315350  ((bfd_byte *(*) \
    316351    PARAMS ((bfd *, struct bfd_link_info *, struct bfd_link_order *, \
    317              bfd_byte *, boolean, asymbol **))) \
     352             bfd_byte *, bfd_boolean, asymbol **))) \
    318353   bfd_nullvoidptr)
    319354#define _bfd_nolink_bfd_relax_section \
    320   ((boolean (*) \
    321     PARAMS ((bfd *, asection *, struct bfd_link_info *, boolean *))) \
     355  ((bfd_boolean (*) \
     356    PARAMS ((bfd *, asection *, struct bfd_link_info *, bfd_boolean *))) \
    322357   bfd_false)
    323358#define _bfd_nolink_bfd_gc_sections \
    324   ((boolean (*) \
     359  ((bfd_boolean (*) \
    325360    PARAMS ((bfd *, struct bfd_link_info *))) \
     361   bfd_false)
     362#define _bfd_nolink_bfd_merge_sections \
     363  ((bfd_boolean (*) \
     364    PARAMS ((bfd *, struct bfd_link_info *))) \
     365   bfd_false)
     366#define _bfd_nolink_bfd_discard_group \
     367  ((bfd_boolean (*) \
     368    PARAMS ((bfd *, struct sec *))) \
    326369   bfd_false)
    327370#define _bfd_nolink_bfd_link_hash_table_create \
    328371  ((struct bfd_link_hash_table *(*) PARAMS ((bfd *))) bfd_nullvoidptr)
     372#define _bfd_nolink_bfd_link_hash_table_free \
     373  ((void (*) PARAMS ((struct bfd_link_hash_table *))) bfd_void)
    329374#define _bfd_nolink_bfd_link_add_symbols \
    330   ((boolean (*) PARAMS ((bfd *, struct bfd_link_info *))) bfd_false)
     375  ((bfd_boolean (*) PARAMS ((bfd *, struct bfd_link_info *))) bfd_false)
     376#define _bfd_nolink_bfd_link_just_syms \
     377  ((void (*) PARAMS ((asection *, struct bfd_link_info *))) bfd_void)
    331378#define _bfd_nolink_bfd_final_link \
    332   ((boolean (*) PARAMS ((bfd *, struct bfd_link_info *))) bfd_false)
     379  ((bfd_boolean (*) PARAMS ((bfd *, struct bfd_link_info *))) bfd_false)
    333380#define _bfd_nolink_bfd_link_split_section \
    334   ((boolean (*) PARAMS ((bfd *, struct sec *))) bfd_false)
     381  ((bfd_boolean (*) PARAMS ((bfd *, struct sec *))) bfd_false)
    335382
    336383/* Routines to use for BFD_JUMP_TABLE_DYNAMIC for targets which do not
     
    348395/* Generic routine to determine of the given symbol is a local
    349396   label.  */
    350 extern boolean bfd_generic_is_local_label_name PARAMS ((bfd *, const char *));
     397extern bfd_boolean bfd_generic_is_local_label_name
     398  PARAMS ((bfd *, const char *));
    351399
    352400/* Generic minisymbol routines.  */
    353401extern long _bfd_generic_read_minisymbols
    354   PARAMS ((bfd *, boolean, PTR *, unsigned int *));
     402  PARAMS ((bfd *, bfd_boolean, PTR *, unsigned int *));
    355403extern asymbol *_bfd_generic_minisymbol_to_symbol
    356   PARAMS ((bfd *, boolean, const PTR, asymbol *));
     404  PARAMS ((bfd *, bfd_boolean, const PTR, asymbol *));
    357405
    358406/* Find the nearest line using .stab/.stabstr sections.  */
    359 extern boolean _bfd_stab_section_find_nearest_line
    360   PARAMS ((bfd *, asymbol **, asection *, bfd_vma, boolean *, const char **,
    361            const char **, unsigned int *, PTR *));
     407extern bfd_boolean _bfd_stab_section_find_nearest_line
     408  PARAMS ((bfd *, asymbol **, asection *, bfd_vma, bfd_boolean *,
     409           const char **, const char **, unsigned int *, PTR *));
    362410
    363411/* Find the neaderst line using DWARF 1 debugging information.  */
    364 extern boolean _bfd_dwarf1_find_nearest_line
     412extern bfd_boolean _bfd_dwarf1_find_nearest_line
    365413  PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **,
    366414           const char **, unsigned int *));
    367415
    368416/* Find the nearest line using DWARF 2 debugging information.  */
    369 extern boolean _bfd_dwarf2_find_nearest_line
     417extern bfd_boolean _bfd_dwarf2_find_nearest_line
    370418  PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **,
    371419           const char **, unsigned int *, unsigned int,
    372420           PTR *));
     421
     422/* Create a new section entry.  */
     423extern struct bfd_hash_entry *bfd_section_hash_newfunc
     424  PARAMS ((struct bfd_hash_entry *, struct bfd_hash_table *, const char *));
    373425
    374426/* A routine to create entries for a bfd_link_hash_table.  */
     
    379431
    380432/* Initialize a bfd_link_hash_table.  */
    381 extern boolean _bfd_link_hash_table_init
     433extern bfd_boolean _bfd_link_hash_table_init
    382434  PARAMS ((struct bfd_link_hash_table *, bfd *,
    383435           struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
     
    389441  PARAMS ((bfd *));
    390442
     443/* Generic link hash table destruction routine.  */
     444extern void _bfd_generic_link_hash_table_free
     445  PARAMS ((struct bfd_link_hash_table *));
     446
    391447/* Generic add symbol routine.  */
    392 extern boolean _bfd_generic_link_add_symbols
     448extern bfd_boolean _bfd_generic_link_add_symbols
    393449  PARAMS ((bfd *, struct bfd_link_info *));
    394450
     
    396452   which the linker must collect constructors and destructors by name,
    397453   as the collect2 program does.  */
    398 extern boolean _bfd_generic_link_add_symbols_collect
     454extern bfd_boolean _bfd_generic_link_add_symbols_collect
    399455  PARAMS ((bfd *, struct bfd_link_info *));
    400456
    401457/* Generic archive add symbol routine.  */
    402 extern boolean _bfd_generic_link_add_archive_symbols
     458extern bfd_boolean _bfd_generic_link_add_archive_symbols
    403459  PARAMS ((bfd *, struct bfd_link_info *,
    404            boolean (*checkfn) (bfd *, struct bfd_link_info *, boolean *)));
    405 
    406 
     460           bfd_boolean (*) (bfd *, struct bfd_link_info *, bfd_boolean *)));
    407461
    408462/* Forward declaration to avoid prototype errors.  */
     
    410464
    411465/* Generic routine to add a single symbol.  */
    412 extern boolean _bfd_generic_link_add_one_symbol
     466extern bfd_boolean _bfd_generic_link_add_one_symbol
    413467  PARAMS ((struct bfd_link_info *, bfd *, const char *name, flagword,
    414            asection *, bfd_vma, const char *, boolean copy,
    415            boolean constructor, struct bfd_link_hash_entry **));
     468           asection *, bfd_vma, const char *, bfd_boolean copy,
     469           bfd_boolean constructor, struct bfd_link_hash_entry **));
     470
     471/* Generic routine to mark section as supplying symbols only.  */
     472extern void _bfd_generic_link_just_syms
     473  PARAMS ((asection *, struct bfd_link_info *));
    416474
    417475/* Generic link routine.  */
    418 extern boolean _bfd_generic_final_link
     476extern bfd_boolean _bfd_generic_final_link
    419477  PARAMS ((bfd *, struct bfd_link_info *));
    420478
    421 extern boolean _bfd_generic_link_split_section
     479extern bfd_boolean _bfd_generic_link_split_section
    422480  PARAMS ((bfd *, struct sec *));
    423481
    424482/* Generic reloc_link_order processing routine.  */
    425 extern boolean _bfd_generic_reloc_link_order
     483extern bfd_boolean _bfd_generic_reloc_link_order
    426484  PARAMS ((bfd *, struct bfd_link_info *, asection *,
    427485           struct bfd_link_order *));
    428486
    429487/* Default link order processing routine.  */
    430 extern boolean _bfd_default_link_order
     488extern bfd_boolean _bfd_default_link_order
    431489  PARAMS ((bfd *, struct bfd_link_info *, asection *,
    432490           struct bfd_link_order *));
     
    439497extern bfd_reloc_status_type _bfd_final_link_relocate
    440498  PARAMS ((reloc_howto_type *, bfd *, asection *, bfd_byte *,
    441            bfd_vma address, bfd_vma value, bfd_vma addend));
     499           bfd_vma, bfd_vma, bfd_vma));
    442500
    443501/* Relocate a particular location by a howto and a value.  */
     
    447505/* Link stabs in sections in the first pass.  */
    448506
    449 extern boolean _bfd_link_section_stabs
     507extern bfd_boolean _bfd_link_section_stabs
    450508  PARAMS ((bfd *, PTR *, asection *, asection *, PTR *));
    451509
     510/* Eliminate stabs for discarded functions and symbols.  */
     511extern bfd_boolean _bfd_discard_section_stabs
     512  PARAMS ((bfd *, asection *, PTR,
     513           bfd_boolean (*) (bfd_vma, PTR), PTR));
     514
    452515/* Write out the .stab section when linking stabs in sections.  */
    453516
    454 extern boolean _bfd_write_section_stabs
     517extern bfd_boolean _bfd_write_section_stabs
    455518  PARAMS ((bfd *, PTR *, asection *, PTR *, bfd_byte *));
    456519
    457520/* Write out the .stabstr string table when linking stabs in sections.  */
    458521
    459 extern boolean _bfd_write_stab_strings PARAMS ((bfd *, PTR *));
     522extern bfd_boolean _bfd_write_stab_strings
     523  PARAMS ((bfd *, PTR *));
    460524
    461525/* Find an offset within a .stab section when linking stabs in
     
    465529  PARAMS ((bfd *, PTR *, asection *, PTR *, bfd_vma));
    466530
     531/* Attempt to merge a SEC_MERGE section.  */
     532
     533extern bfd_boolean _bfd_merge_section
     534  PARAMS ((bfd *, PTR *, asection *, PTR *));
     535
     536/* Attempt to merge SEC_MERGE sections.  */
     537
     538extern bfd_boolean _bfd_merge_sections
     539  PARAMS ((bfd *, PTR, void (*)(bfd *, asection *)));
     540
     541/* Write out a merged section.  */
     542
     543extern bfd_boolean _bfd_write_merged_section
     544  PARAMS ((bfd *, asection *, PTR));
     545
     546/* Find an offset within a modified SEC_MERGE section.  */
     547
     548extern bfd_vma _bfd_merged_section_offset
     549  PARAMS ((bfd *, asection **, PTR, bfd_vma, bfd_vma));
     550
    467551/* Create a string table.  */
    468 extern struct bfd_strtab_hash *_bfd_stringtab_init PARAMS ((void));
     552extern struct bfd_strtab_hash *_bfd_stringtab_init
     553  PARAMS ((void));
    469554
    470555/* Create an XCOFF .debug section style string table.  */
    471 extern struct bfd_strtab_hash *_bfd_xcoff_stringtab_init PARAMS ((void));
     556extern struct bfd_strtab_hash *_bfd_xcoff_stringtab_init
     557  PARAMS ((void));
    472558
    473559/* Free a string table.  */
    474 extern void _bfd_stringtab_free PARAMS ((struct bfd_strtab_hash *));
     560extern void _bfd_stringtab_free
     561  PARAMS ((struct bfd_strtab_hash *));
    475562
    476563/* Get the size of a string table.  */
    477 extern bfd_size_type _bfd_stringtab_size PARAMS ((struct bfd_strtab_hash *));
     564extern bfd_size_type _bfd_stringtab_size
     565  PARAMS ((struct bfd_strtab_hash *));
    478566
    479567/* Add a string to a string table.  */
    480568extern bfd_size_type _bfd_stringtab_add
    481   PARAMS ((struct bfd_strtab_hash *, const char *, boolean hash,
    482            boolean copy));
     569  PARAMS ((struct bfd_strtab_hash *, const char *, bfd_boolean hash,
     570           bfd_boolean copy));
    483571
    484572/* Write out a string table.  */
    485 extern boolean _bfd_stringtab_emit PARAMS ((bfd *, struct bfd_strtab_hash *));
     573extern bfd_boolean _bfd_stringtab_emit
     574  PARAMS ((bfd *, struct bfd_strtab_hash *));
    486575
    487576/* Check that endianness of input and output file match.  */
    488 extern boolean _bfd_generic_verify_endian_match PARAMS ((bfd *, bfd *));
     577extern bfd_boolean _bfd_generic_verify_endian_match
     578  PARAMS ((bfd *, bfd *));
    489579
    490580
     
    501591#define bfd_write_p(abfd) ((abfd)->direction == write_direction || (abfd)->direction == both_direction)
    502592
    503 void    bfd_assert PARAMS ((const char*,int));
     593void bfd_assert
     594  PARAMS ((const char*,int));
    504595
    505596#define BFD_ASSERT(x) \
     
    509600{ bfd_assert(__FILE__,__LINE__); }
    510601
    511 extern void _bfd_abort PARAMS ((const char *, int, const char *))
    512     ATTRIBUTE_NORETURN;
     602extern void _bfd_abort
     603  PARAMS ((const char *, int, const char *)) ATTRIBUTE_NORETURN;
    513604
    514605/* if gcc >= 2.6, we can give a function name, too */
     
    520611#define abort() _bfd_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__)
    521612
    522 FILE *  bfd_cache_lookup_worker PARAMS ((bfd *));
     613FILE *  bfd_cache_lookup_worker
     614  PARAMS ((bfd *));
    523615
    524616extern bfd *bfd_last_cache;
     
    529621extern const bfd_target *bfd_default_vector[];
    530622
     623/* List of associated target vectors.  */
     624extern const bfd_target * const *bfd_associated_vector;
     625
    531626/* Functions shared by the ECOFF and MIPS ELF backends, which have no
    532627   other common header files.  */
     
    536631#endif
    537632
    538 extern boolean _bfd_ecoff_locate_line
     633extern bfd_boolean _bfd_ecoff_locate_line
    539634  PARAMS ((bfd *, asection *, bfd_vma, struct ecoff_debug_info * const,
    540635           const struct ecoff_debug_swap * const, struct ecoff_find_line *,
    541636           const char **, const char **, unsigned int *));
    542 extern boolean _bfd_ecoff_get_accumulated_pdr PARAMS ((PTR, bfd_byte *));
    543 extern boolean _bfd_ecoff_get_accumulated_sym PARAMS ((PTR, bfd_byte *));
    544 extern boolean _bfd_ecoff_get_accumulated_ss PARAMS ((PTR, bfd_byte *));
    545 
    546 extern bfd_vma _bfd_get_gp_value PARAMS ((bfd *));
    547 extern void _bfd_set_gp_value PARAMS ((bfd *, bfd_vma));
     637extern bfd_boolean _bfd_ecoff_get_accumulated_pdr
     638  PARAMS ((PTR, bfd_byte *));
     639extern bfd_boolean _bfd_ecoff_get_accumulated_sym
     640  PARAMS ((PTR, bfd_byte *));
     641extern bfd_boolean _bfd_ecoff_get_accumulated_ss
     642  PARAMS ((PTR, bfd_byte *));
     643
     644extern bfd_vma _bfd_get_gp_value
     645  PARAMS ((bfd *));
     646extern void _bfd_set_gp_value
     647  PARAMS ((bfd *, bfd_vma));
    548648
    549649/* Function shared by the COFF and ELF SH backends, which have no
    550650   other common header files.  */
    551651
    552 extern boolean _bfd_sh_align_load_span
     652extern bfd_boolean _bfd_sh_align_load_span
    553653  PARAMS ((bfd *, asection *, bfd_byte *,
    554            boolean (*) (bfd *, asection *, PTR, bfd_byte *, bfd_vma),
    555            PTR, bfd_vma **, bfd_vma *, bfd_vma, bfd_vma, boolean *));
    556 
    557 /* And more follows */
    558 
     654           bfd_boolean (*) (bfd *, asection *, PTR, bfd_byte *, bfd_vma),
     655           PTR, bfd_vma **, bfd_vma *, bfd_vma, bfd_vma, bfd_boolean *));
     656
Note: See TracChangeset for help on using the changeset viewer.